diff --git a/.DS_Store b/.DS_Store index 0f75e544..6932e4b1 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/appointments/__pycache__/views.cpython-312.pyc b/appointments/__pycache__/views.cpython-312.pyc index 7fd22431..29ac94d5 100644 Binary files a/appointments/__pycache__/views.cpython-312.pyc and b/appointments/__pycache__/views.cpython-312.pyc differ diff --git a/appointments/views.py b/appointments/views.py index d9614743..eb643ade 100644 --- a/appointments/views.py +++ b/appointments/views.py @@ -10,7 +10,8 @@ from django.views.generic import ( ) from django.http import JsonResponse from django.contrib import messages -from django.db.models import Q, Count, Avg +from django.db.models.functions import Now +from django.db.models import Q, Count, Avg, Case, When, Value, DurationField, FloatField, F, ExpressionWrapper, IntegerField from django.utils import timezone from django.urls import reverse_lazy, reverse from django.core.paginator import Paginator @@ -29,6 +30,7 @@ from accounts.models import User from core.utils import AuditLogger + # ============================================================================ # DASHBOARD VIEW # ============================================================================ @@ -1334,32 +1336,74 @@ def available_slots(request): def queue_status(request, queue_id): """ HTMX view for queue status. + Shows queue entries plus aggregated stats with DB-side wait calculations. """ tenant = getattr(request, 'tenant', None) if not tenant: return JsonResponse({'error': 'No tenant found'}, status=400) - + queue = get_object_or_404(WaitingQueue, id=queue_id, tenant=tenant) - - # Get queue entries - queue_entries = QueueEntry.objects.filter( - queue=queue - ).order_by('position', 'created_at') - - # Calculate statistics + + queue_entries = ( + QueueEntry.objects + .filter(queue=queue) + .annotate( + wait_duration=Case( + When(status='WAITING', then=Now() - F('joined_at')), + When(served_at__isnull=False, then=F('served_at') - F('joined_at')), + default=Value(None), + output_field=DurationField(), + ), + ) + .annotate( + wait_minutes=Case( + When(wait_duration__isnull=False, + then=ExpressionWrapper( + F('wait_duration') / Value(timedelta(minutes=1)), + output_field=FloatField() + )), + default=Value(None), + output_field=FloatField(), + ), + waiting_rank=Case( + When(status='WAITING', then=F('queue_position')), + default=Value(None), output_field=IntegerField() + ), + ) + .select_related('assigned_provider', 'patient', 'appointment') # adjust if you need more + .order_by('queue_position', 'updated_at') + ) + + # Aggregates & stats + total_entries = queue_entries.count() + waiting_entries = queue_entries.filter(status='WAITING').count() + called_entries = queue_entries.filter(status='CALLED').count() + in_service_entries = queue_entries.filter(status='IN_SERVICE').count() + completed_entries = queue_entries.filter(status='COMPLETED').count() + + avg_completed_wait = ( + queue_entries + .filter(status='COMPLETED') + .aggregate(avg_wait=Avg('wait_minutes')) + .get('avg_wait') or 0 + ) + stats = { - 'total_entries': queue_entries.count(), - 'waiting_entries': queue_entries.filter(status='WAITING').count(), - 'in_progress_entries': queue_entries.filter(status='IN_PROGRESS').count(), - 'average_wait_time': queue_entries.filter( - status='COMPLETED' - ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + 'total_entries': total_entries, + 'waiting_entries': waiting_entries, + 'called_entries': called_entries, + 'in_service_entries': in_service_entries, + 'completed_entries': completed_entries, + # Average from COMPLETED cases only (rounded to 1 decimal) + 'average_wait_time_minutes': round(avg_completed_wait, 1), + # Quick estimate based on queue config + 'estimated_queue_wait_minutes': waiting_entries * queue.average_service_time_minutes, } - + return render(request, 'appointments/partials/queue_status.html', { 'queue': queue, - 'queue_entries': queue_entries, - 'stats': stats + 'queue_entries': queue_entries, # each has .wait_minutes + 'stats': stats, }) @@ -1536,7 +1580,7 @@ def next_in_queue(request, queue_id): return JsonResponse({ 'status': 'success', 'patient': str(next_entry.patient), - 'position': next_entry.position + 'position': next_entry.queue_position }) else: return JsonResponse({'status': 'no_patients'}) @@ -1708,12 +1752,19 @@ class SchedulingCalendarView(LoginRequiredMixin, TemplateView): return context -class QueueManagementView(LoginRequiredMixin, TemplateView): +class QueueManagementView(LoginRequiredMixin, ListView): """ Queue management view for appointments. """ - + model = QueueEntry template_name = 'appointments/queue_management.html' + context_object_name = 'queues' + + def get_queryset(self): + return QueueEntry.objects.filter( + appointment__tenant=self.request.user.tenant + ) + def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) diff --git a/blood_bank/__init__.py b/blood_bank/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/blood_bank/__pycache__/__init__.cpython-312.pyc b/blood_bank/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..e2639e1d Binary files /dev/null and b/blood_bank/__pycache__/__init__.cpython-312.pyc differ diff --git a/blood_bank/__pycache__/admin.cpython-312.pyc b/blood_bank/__pycache__/admin.cpython-312.pyc new file mode 100644 index 00000000..db951513 Binary files /dev/null and b/blood_bank/__pycache__/admin.cpython-312.pyc differ diff --git a/blood_bank/__pycache__/apps.cpython-312.pyc b/blood_bank/__pycache__/apps.cpython-312.pyc new file mode 100644 index 00000000..d0ecdb68 Binary files /dev/null and b/blood_bank/__pycache__/apps.cpython-312.pyc differ diff --git a/blood_bank/__pycache__/forms.cpython-312.pyc b/blood_bank/__pycache__/forms.cpython-312.pyc new file mode 100644 index 00000000..ba6b4189 Binary files /dev/null and b/blood_bank/__pycache__/forms.cpython-312.pyc differ diff --git a/blood_bank/__pycache__/models.cpython-312.pyc b/blood_bank/__pycache__/models.cpython-312.pyc new file mode 100644 index 00000000..1adafb18 Binary files /dev/null and b/blood_bank/__pycache__/models.cpython-312.pyc differ diff --git a/blood_bank/__pycache__/urls.cpython-312.pyc b/blood_bank/__pycache__/urls.cpython-312.pyc new file mode 100644 index 00000000..cae8fe80 Binary files /dev/null and b/blood_bank/__pycache__/urls.cpython-312.pyc differ diff --git a/blood_bank/__pycache__/views.cpython-312.pyc b/blood_bank/__pycache__/views.cpython-312.pyc new file mode 100644 index 00000000..b3de3f34 Binary files /dev/null and b/blood_bank/__pycache__/views.cpython-312.pyc differ diff --git a/blood_bank/admin.py b/blood_bank/admin.py new file mode 100644 index 00000000..dfd0d721 --- /dev/null +++ b/blood_bank/admin.py @@ -0,0 +1,387 @@ +from django.contrib import admin +from django.utils.html import format_html +from django.urls import reverse +from django.utils import timezone +from .models import ( + BloodGroup, Donor, BloodComponent, BloodUnit, BloodTest, CrossMatch, + BloodRequest, BloodIssue, Transfusion, AdverseReaction, InventoryLocation, + QualityControl +) + + +@admin.register(BloodGroup) +class BloodGroupAdmin(admin.ModelAdmin): + list_display = ['abo_type', 'rh_factor', 'display_name'] + list_filter = ['abo_type', 'rh_factor'] + ordering = ['abo_type', 'rh_factor'] + + +@admin.register(Donor) +class DonorAdmin(admin.ModelAdmin): + list_display = [ + 'donor_id', 'full_name', 'blood_group', 'age', 'status', + 'total_donations', 'last_donation_date', 'is_eligible_for_donation' + ] + list_filter = [ + 'status', 'donor_type', 'blood_group', 'gender', + 'registration_date', 'last_donation_date' + ] + search_fields = ['donor_id', 'first_name', 'last_name', 'phone', 'email'] + readonly_fields = ['registration_date', 'created_at', 'updated_at', 'age'] + fieldsets = ( + ('Personal Information', { + 'fields': ( + 'donor_id', 'first_name', 'last_name', 'date_of_birth', + 'gender', 'blood_group', 'weight', 'height' + ) + }), + ('Contact Information', { + 'fields': ( + 'phone', 'email', 'address', + 'emergency_contact_name', 'emergency_contact_phone' + ) + }), + ('Donation Information', { + 'fields': ( + 'donor_type', 'status', 'total_donations', + 'last_donation_date', 'notes' + ) + }), + ('System Information', { + 'fields': ('created_by', 'registration_date', 'created_at', 'updated_at'), + 'classes': ['collapse'] + }) + ) + + def is_eligible_for_donation(self, obj): + if obj.is_eligible_for_donation: + return format_html('✓ Eligible') + else: + return format_html('✗ Not Eligible') + + is_eligible_for_donation.short_description = 'Eligible' + + +@admin.register(BloodComponent) +class BloodComponentAdmin(admin.ModelAdmin): + list_display = ['name', 'shelf_life_days', 'storage_temperature', 'volume_ml', 'is_active'] + list_filter = ['is_active', 'shelf_life_days'] + search_fields = ['name', 'description'] + + +class BloodTestInline(admin.TabularInline): + model = BloodTest + extra = 0 + readonly_fields = ['test_date', 'verified_at'] + + +class CrossMatchInline(admin.TabularInline): + model = CrossMatch + extra = 0 + readonly_fields = ['test_date', 'verified_at'] + + +@admin.register(BloodUnit) +class BloodUnitAdmin(admin.ModelAdmin): + list_display = [ + 'unit_number', 'donor', 'component', 'blood_group', + 'collection_date', 'expiry_date', 'status', 'days_to_expiry', + 'is_available' + ] + list_filter = [ + 'status', 'component', 'blood_group', 'collection_date', + 'expiry_date', 'collection_site' + ] + search_fields = ['unit_number', 'donor__donor_id', 'donor__first_name', 'donor__last_name'] + readonly_fields = ['created_at', 'updated_at', 'days_to_expiry', 'is_expired'] + inlines = [BloodTestInline, CrossMatchInline] + + fieldsets = ( + ('Unit Information', { + 'fields': ( + 'unit_number', 'donor', 'component', 'blood_group', + 'volume_ml', 'status', 'location' + ) + }), + ('Collection Details', { + 'fields': ( + 'collection_date', 'expiry_date', 'collection_site', + 'bag_type', 'anticoagulant', 'collected_by' + ) + }), + ('Additional Information', { + 'fields': ('notes', 'created_at', 'updated_at'), + 'classes': ['collapse'] + }) + ) + + def days_to_expiry(self, obj): + days = obj.days_to_expiry + if days == 0: + return format_html('Expired') + elif days <= 3: + return format_html('{} days', days) + else: + return f"{days} days" + + days_to_expiry.short_description = 'Days to Expiry' + + def is_available(self, obj): + if obj.is_available: + return format_html('✓ Available') + else: + return format_html('✗ Not Available') + + is_available.short_description = 'Available' + + +@admin.register(BloodTest) +class BloodTestAdmin(admin.ModelAdmin): + list_display = [ + 'blood_unit', 'test_type', 'result', 'test_date', + 'tested_by', 'verified_by', 'verified_at' + ] + list_filter = ['test_type', 'result', 'test_date', 'verified_at'] + search_fields = ['blood_unit__unit_number', 'equipment_used', 'lot_number'] + readonly_fields = ['test_date', 'verified_at'] + + +@admin.register(CrossMatch) +class CrossMatchAdmin(admin.ModelAdmin): + list_display = [ + 'blood_unit', 'recipient', 'test_type', 'compatibility', + 'test_date', 'tested_by', 'verified_by' + ] + list_filter = ['test_type', 'compatibility', 'test_date'] + search_fields = [ + 'blood_unit__unit_number', 'recipient__first_name', + 'recipient__last_name', 'recipient__patient_id' + ] + readonly_fields = ['test_date', 'verified_at'] + + +class BloodIssueInline(admin.TabularInline): + model = BloodIssue + extra = 0 + readonly_fields = ['issue_date', 'expiry_time'] + + +@admin.register(BloodRequest) +class BloodRequestAdmin(admin.ModelAdmin): + list_display = [ + 'request_number', 'patient', 'component_requested', + 'units_requested', 'urgency', 'status', 'request_date', + 'required_by', 'is_overdue' + ] + list_filter = [ + 'urgency', 'status', 'component_requested', + 'requesting_department', 'request_date', 'required_by' + ] + search_fields = [ + 'request_number', 'patient__first_name', 'patient__last_name', + 'patient__patient_id', 'indication' + ] + readonly_fields = ['request_date', 'processed_at'] + inlines = [BloodIssueInline] + + fieldsets = ( + ('Request Information', { + 'fields': ( + 'request_number', 'patient', 'requesting_department', + 'requesting_physician', 'urgency', 'status' + ) + }), + ('Blood Requirements', { + 'fields': ( + 'component_requested', 'units_requested', 'patient_blood_group', + 'special_requirements' + ) + }), + ('Clinical Information', { + 'fields': ( + 'indication', 'hemoglobin_level', 'platelet_count' + ) + }), + ('Timeline', { + 'fields': ( + 'request_date', 'required_by', 'processed_by', 'processed_at' + ) + }), + ('Additional Information', { + 'fields': ('notes',), + 'classes': ['collapse'] + }) + ) + + def is_overdue(self, obj): + if obj.is_overdue: + return format_html('✗ Overdue') + else: + return format_html('✓ On Time') + + is_overdue.short_description = 'Status' + + +@admin.register(BloodIssue) +class BloodIssueAdmin(admin.ModelAdmin): + list_display = [ + 'blood_unit', 'blood_request', 'issued_by', 'issued_to', + 'issue_date', 'expiry_time', 'returned', 'is_expired' + ] + list_filter = ['returned', 'issue_date', 'expiry_time'] + search_fields = [ + 'blood_unit__unit_number', 'blood_request__request_number', + 'blood_request__patient__first_name', 'blood_request__patient__last_name' + ] + readonly_fields = ['issue_date', 'is_expired'] + + def is_expired(self, obj): + if obj.is_expired: + return format_html('✗ Expired') + else: + return format_html('✓ Valid') + + is_expired.short_description = 'Status' + + +class AdverseReactionInline(admin.TabularInline): + model = AdverseReaction + extra = 0 + readonly_fields = ['onset_time', 'report_date'] + + +@admin.register(Transfusion) +class TransfusionAdmin(admin.ModelAdmin): + list_display = [ + 'blood_issue', 'start_time', 'end_time', 'status', + 'volume_transfused', 'administered_by', 'duration_minutes' + ] + list_filter = ['status', 'start_time', 'patient_consent'] + search_fields = [ + 'blood_issue__blood_unit__unit_number', + 'blood_issue__blood_request__patient__first_name', + 'blood_issue__blood_request__patient__last_name' + ] + readonly_fields = ['duration_minutes'] + inlines = [AdverseReactionInline] + + fieldsets = ( + ('Transfusion Information', { + 'fields': ( + 'blood_issue', 'start_time', 'end_time', 'status', + 'volume_transfused', 'transfusion_rate' + ) + }), + ('Personnel', { + 'fields': ('administered_by', 'witnessed_by') + }), + ('Consent', { + 'fields': ('patient_consent', 'consent_date') + }), + ('Vital Signs', { + 'fields': ('pre_transfusion_vitals', 'post_transfusion_vitals'), + 'classes': ['collapse'] + }), + ('Additional Information', { + 'fields': ('notes',), + 'classes': ['collapse'] + }) + ) + + +@admin.register(AdverseReaction) +class AdverseReactionAdmin(admin.ModelAdmin): + list_display = [ + 'transfusion', 'reaction_type', 'severity', 'onset_time', + 'reported_by', 'regulatory_reported' + ] + list_filter = [ + 'reaction_type', 'severity', 'onset_time', + 'regulatory_reported' + ] + search_fields = [ + 'transfusion__blood_issue__blood_unit__unit_number', + 'symptoms', 'treatment_given' + ] + readonly_fields = ['onset_time', 'report_date'] + + fieldsets = ( + ('Reaction Information', { + 'fields': ( + 'transfusion', 'reaction_type', 'severity', + 'onset_time', 'symptoms' + ) + }), + ('Treatment', { + 'fields': ('treatment_given', 'outcome') + }), + ('Reporting', { + 'fields': ( + 'reported_by', 'investigated_by', 'investigation_notes', + 'regulatory_reported', 'report_date' + ) + }) + ) + + +@admin.register(InventoryLocation) +class InventoryLocationAdmin(admin.ModelAdmin): + list_display = [ + 'name', 'location_type', 'temperature_range', + 'current_stock', 'capacity', 'utilization_percentage', 'is_active' + ] + list_filter = ['location_type', 'is_active'] + search_fields = ['name', 'notes'] + + def utilization_percentage(self, obj): + percentage = obj.utilization_percentage + if percentage >= 90: + color = 'red' + elif percentage >= 75: + color = 'orange' + else: + color = 'green' + return format_html( + '{:.1f}%', + color, percentage + ) + + utilization_percentage.short_description = 'Utilization' + + +@admin.register(QualityControl) +class QualityControlAdmin(admin.ModelAdmin): + list_display = [ + 'test_type', 'test_date', 'equipment_tested', + 'status', 'performed_by', 'reviewed_by', 'next_test_date' + ] + list_filter = ['test_type', 'status', 'test_date', 'next_test_date'] + search_fields = ['equipment_tested', 'parameters_tested', 'corrective_action'] + readonly_fields = ['test_date'] + + fieldsets = ( + ('Test Information', { + 'fields': ( + 'test_type', 'test_date', 'equipment_tested', + 'parameters_tested' + ) + }), + ('Results', { + 'fields': ( + 'expected_results', 'actual_results', 'status' + ) + }), + ('Personnel', { + 'fields': ('performed_by', 'reviewed_by') + }), + ('Follow-up', { + 'fields': ('corrective_action', 'next_test_date') + }) + ) + + +# Custom admin site configuration +admin.site.site_header = "Blood Bank Management System" +admin.site.site_title = "Blood Bank Admin" +admin.site.index_title = "Blood Bank Administration" + diff --git a/blood_bank/apps.py b/blood_bank/apps.py new file mode 100644 index 00000000..d8016264 --- /dev/null +++ b/blood_bank/apps.py @@ -0,0 +1,8 @@ +from django.apps import AppConfig + + +class BloodBankConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'blood_bank' + verbose_name = 'Blood Bank Management' + diff --git a/blood_bank/forms.py b/blood_bank/forms.py new file mode 100644 index 00000000..a187e648 --- /dev/null +++ b/blood_bank/forms.py @@ -0,0 +1,429 @@ +from django import forms +from django.contrib.auth.models import User +from django.utils import timezone +from datetime import timedelta +from patients.models import PatientProfile +from core.models import Department +from .models import ( + BloodGroup, Donor, BloodComponent, BloodUnit, BloodTest, CrossMatch, + BloodRequest, BloodIssue, Transfusion, AdverseReaction, InventoryLocation, + QualityControl +) + + +class DonorForm(forms.ModelForm): + """Form for donor registration and updates""" + + class Meta: + model = Donor + fields = [ + 'donor_id', 'first_name', 'last_name', 'date_of_birth', + 'gender', 'blood_group', 'phone', 'email', 'address', + 'emergency_contact_name', 'emergency_contact_phone', + 'donor_type', 'status', 'weight', 'height', 'notes' + ] + widgets = { + 'date_of_birth': forms.DateInput(attrs={'type': 'date', 'class': 'form-control'}), + 'first_name': forms.TextInput(attrs={'class': 'form-control'}), + 'last_name': forms.TextInput(attrs={'class': 'form-control'}), + 'donor_id': forms.TextInput(attrs={'class': 'form-control'}), + 'gender': forms.Select(attrs={'class': 'form-select'}), + 'blood_group': forms.Select(attrs={'class': 'form-select'}), + 'phone': forms.TextInput(attrs={'class': 'form-control'}), + 'email': forms.EmailInput(attrs={'class': 'form-control'}), + 'address': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'emergency_contact_name': forms.TextInput(attrs={'class': 'form-control'}), + 'emergency_contact_phone': forms.TextInput(attrs={'class': 'form-control'}), + 'donor_type': forms.Select(attrs={'class': 'form-select'}), + 'status': forms.Select(attrs={'class': 'form-select'}), + 'weight': forms.NumberInput(attrs={'class': 'form-control', 'step': '0.1'}), + 'height': forms.NumberInput(attrs={'class': 'form-control', 'step': '0.1'}), + 'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + } + + def clean_weight(self): + weight = self.cleaned_data.get('weight') + if weight and weight < 45.0: + raise forms.ValidationError("Minimum weight for donation is 45 kg.") + return weight + + def clean_date_of_birth(self): + dob = self.cleaned_data.get('date_of_birth') + if dob: + today = timezone.now().date() + age = today.year - dob.year - ((today.month, today.day) < (dob.month, dob.day)) + if age < 18: + raise forms.ValidationError("Donor must be at least 18 years old.") + if age > 65: + raise forms.ValidationError("Donor must be under 65 years old.") + return dob + + +class BloodUnitForm(forms.ModelForm): + """Form for blood unit registration""" + + class Meta: + model = BloodUnit + fields = [ + 'unit_number', 'donor', 'component', 'blood_group', + 'collection_date', 'volume_ml', 'location', 'bag_type', + 'anticoagulant', 'collection_site', 'notes' + ] + widgets = { + 'unit_number': forms.TextInput(attrs={'class': 'form-control'}), + 'donor': forms.Select(attrs={'class': 'form-select'}), + 'component': forms.Select(attrs={'class': 'form-select'}), + 'blood_group': forms.Select(attrs={'class': 'form-select'}), + 'collection_date': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'volume_ml': forms.NumberInput(attrs={'class': 'form-control'}), + 'location': forms.TextInput(attrs={'class': 'form-control'}), + 'bag_type': forms.TextInput(attrs={'class': 'form-control'}), + 'anticoagulant': forms.TextInput(attrs={'class': 'form-control'}), + 'collection_site': forms.TextInput(attrs={'class': 'form-control'}), + 'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + # Filter active donors only + self.fields['donor'].queryset = Donor.objects.filter(status='active') + self.fields['component'].queryset = BloodComponent.objects.filter(is_active=True) + + def save(self, commit=True): + instance = super().save(commit=False) + if not instance.expiry_date: + # Calculate expiry date based on component + component = instance.component + instance.expiry_date = instance.collection_date + timedelta(days=component.shelf_life_days) + if commit: + instance.save() + return instance + + +class BloodTestForm(forms.ModelForm): + """Form for blood test results""" + + class Meta: + model = BloodTest + fields = [ + 'blood_unit', 'test_type', 'result', 'test_date', + 'equipment_used', 'lot_number', 'notes' + ] + widgets = { + 'blood_unit': forms.Select(attrs={'class': 'form-select'}), + 'test_type': forms.Select(attrs={'class': 'form-select'}), + 'result': forms.Select(attrs={'class': 'form-select'}), + 'test_date': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'equipment_used': forms.TextInput(attrs={'class': 'form-control'}), + 'lot_number': forms.TextInput(attrs={'class': 'form-control'}), + 'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + # Filter blood units that are in testing or quarantine + self.fields['blood_unit'].queryset = BloodUnit.objects.filter( + status__in=['collected', 'testing', 'quarantine'] + ) + + +class CrossMatchForm(forms.ModelForm): + """Form for crossmatch testing""" + + class Meta: + model = CrossMatch + fields = [ + 'blood_unit', 'recipient', 'test_type', 'compatibility', + 'test_date', 'temperature', 'incubation_time', 'notes' + ] + widgets = { + 'blood_unit': forms.Select(attrs={'class': 'form-select'}), + 'recipient': forms.Select(attrs={'class': 'form-select'}), + 'test_type': forms.Select(attrs={'class': 'form-select'}), + 'compatibility': forms.Select(attrs={'class': 'form-select'}), + 'test_date': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'temperature': forms.TextInput(attrs={'class': 'form-control'}), + 'incubation_time': forms.NumberInput(attrs={'class': 'form-control'}), + 'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + # Filter available blood units + self.fields['blood_unit'].queryset = BloodUnit.objects.filter( + status__in=['available', 'quarantine'] + ) + + +class BloodRequestForm(forms.ModelForm): + """Form for blood transfusion requests""" + + class Meta: + model = BloodRequest + fields = [ + 'patient', 'requesting_department', 'component_requested', + 'units_requested', 'urgency', 'indication', 'special_requirements', + 'patient_blood_group', 'hemoglobin_level', 'platelet_count', + 'required_by' + ] + widgets = { + 'patient': forms.Select(attrs={'class': 'form-select'}), + 'requesting_department': forms.Select(attrs={'class': 'form-select'}), + 'component_requested': forms.Select(attrs={'class': 'form-select'}), + 'units_requested': forms.NumberInput(attrs={'class': 'form-control', 'min': '1'}), + 'urgency': forms.Select(attrs={'class': 'form-select'}), + 'indication': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'special_requirements': forms.Textarea(attrs={'class': 'form-control', 'rows': 2}), + 'patient_blood_group': forms.Select(attrs={'class': 'form-select'}), + 'hemoglobin_level': forms.NumberInput(attrs={'class': 'form-control', 'step': '0.1'}), + 'platelet_count': forms.NumberInput(attrs={'class': 'form-control'}), + 'required_by': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.fields['component_requested'].queryset = BloodComponent.objects.filter(is_active=True) + + def clean_required_by(self): + required_by = self.cleaned_data.get('required_by') + if required_by and required_by <= timezone.now(): + raise forms.ValidationError("Required by date must be in the future.") + return required_by + + +class BloodIssueForm(forms.ModelForm): + """Form for blood unit issuance""" + + class Meta: + model = BloodIssue + fields = [ + 'blood_request', 'blood_unit', 'crossmatch', + 'issued_to', 'expiry_time', 'notes' + ] + widgets = { + 'blood_request': forms.Select(attrs={'class': 'form-select'}), + 'blood_unit': forms.Select(attrs={'class': 'form-select'}), + 'crossmatch': forms.Select(attrs={'class': 'form-select'}), + 'issued_to': forms.Select(attrs={'class': 'form-select'}), + 'expiry_time': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + # Filter pending/processing blood requests + self.fields['blood_request'].queryset = BloodRequest.objects.filter( + status__in=['pending', 'processing', 'ready'] + ) + # Filter available blood units + self.fields['blood_unit'].queryset = BloodUnit.objects.filter(status='available') + # Filter staff users + self.fields['issued_to'].queryset = User.objects.filter(is_staff=True) + + +class TransfusionForm(forms.ModelForm): + """Form for transfusion administration""" + + class Meta: + model = Transfusion + fields = [ + 'blood_issue', 'start_time', 'end_time', 'status', + 'volume_transfused', 'transfusion_rate', 'witnessed_by', + 'patient_consent', 'consent_date', 'notes' + ] + widgets = { + 'blood_issue': forms.Select(attrs={'class': 'form-select'}), + 'start_time': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'end_time': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'status': forms.Select(attrs={'class': 'form-select'}), + 'volume_transfused': forms.NumberInput(attrs={'class': 'form-control'}), + 'transfusion_rate': forms.TextInput(attrs={'class': 'form-control'}), + 'witnessed_by': forms.Select(attrs={'class': 'form-select'}), + 'patient_consent': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'consent_date': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + } + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + # Filter issued blood units + self.fields['blood_issue'].queryset = BloodIssue.objects.filter(returned=False) + # Filter staff users for witness + self.fields['witnessed_by'].queryset = User.objects.filter(is_staff=True) + + +class AdverseReactionForm(forms.ModelForm): + """Form for adverse reaction reporting""" + + class Meta: + model = AdverseReaction + fields = [ + 'transfusion', 'reaction_type', 'severity', 'onset_time', + 'symptoms', 'treatment_given', 'outcome', 'investigation_notes', + 'regulatory_reported' + ] + widgets = { + 'transfusion': forms.Select(attrs={'class': 'form-select'}), + 'reaction_type': forms.Select(attrs={'class': 'form-select'}), + 'severity': forms.Select(attrs={'class': 'form-select'}), + 'onset_time': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'symptoms': forms.Textarea(attrs={'class': 'form-control', 'rows': 4}), + 'treatment_given': forms.Textarea(attrs={'class': 'form-control', 'rows': 4}), + 'outcome': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'investigation_notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'regulatory_reported': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + } + + +class InventoryLocationForm(forms.ModelForm): + """Form for inventory location management""" + + class Meta: + model = InventoryLocation + fields = [ + 'name', 'location_type', 'temperature_range', + 'capacity', 'is_active', 'notes' + ] + widgets = { + 'name': forms.TextInput(attrs={'class': 'form-control'}), + 'location_type': forms.Select(attrs={'class': 'form-select'}), + 'temperature_range': forms.TextInput(attrs={'class': 'form-control'}), + 'capacity': forms.NumberInput(attrs={'class': 'form-control', 'min': '1'}), + 'is_active': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + } + + +class QualityControlForm(forms.ModelForm): + """Form for quality control testing""" + + class Meta: + model = QualityControl + fields = [ + 'test_type', 'test_date', 'equipment_tested', + 'parameters_tested', 'expected_results', 'actual_results', + 'status', 'corrective_action', 'next_test_date' + ] + widgets = { + 'test_type': forms.Select(attrs={'class': 'form-select'}), + 'test_date': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + 'equipment_tested': forms.TextInput(attrs={'class': 'form-control'}), + 'parameters_tested': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'expected_results': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'actual_results': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'status': forms.Select(attrs={'class': 'form-select'}), + 'corrective_action': forms.Textarea(attrs={'class': 'form-control', 'rows': 3}), + 'next_test_date': forms.DateTimeInput(attrs={'type': 'datetime-local', 'class': 'form-control'}), + } + + +class DonorEligibilityForm(forms.Form): + """Form for donor eligibility screening""" + + # Basic health questions + feeling_well = forms.BooleanField( + label="Are you feeling well today?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + adequate_sleep = forms.BooleanField( + label="Did you get adequate sleep last night?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + eaten_today = forms.BooleanField( + label="Have you eaten within the last 4 hours?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + # Medical history + recent_illness = forms.BooleanField( + required=False, + label="Have you had any illness in the past 2 weeks?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + medications = forms.BooleanField( + required=False, + label="Are you currently taking any medications?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + recent_travel = forms.BooleanField( + required=False, + label="Have you traveled outside the country in the past 3 months?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + # Risk factors + recent_tattoo = forms.BooleanField( + required=False, + label="Have you had a tattoo or piercing in the past 12 months?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + recent_surgery = forms.BooleanField( + required=False, + label="Have you had any surgery in the past 12 months?", + widget=forms.CheckboxInput(attrs={'class': 'form-check-input'}) + ) + + # Additional notes + notes = forms.CharField( + required=False, + label="Additional notes or concerns", + widget=forms.Textarea(attrs={'class': 'form-control', 'rows': 3}) + ) + + def clean(self): + cleaned_data = super().clean() + + # Check mandatory requirements + if not cleaned_data.get('feeling_well'): + raise forms.ValidationError("Donor must be feeling well to donate.") + + if not cleaned_data.get('adequate_sleep'): + raise forms.ValidationError("Donor must have adequate sleep before donation.") + + if not cleaned_data.get('eaten_today'): + raise forms.ValidationError("Donor must have eaten within the last 4 hours.") + + return cleaned_data + + +class BloodInventorySearchForm(forms.Form): + """Form for searching blood inventory""" + + blood_group = forms.ModelChoiceField( + queryset=BloodGroup.objects.all(), + required=False, + empty_label="All Blood Groups", + widget=forms.Select(attrs={'class': 'form-select'}) + ) + + component = forms.ModelChoiceField( + queryset=BloodComponent.objects.filter(is_active=True), + required=False, + empty_label="All Components", + widget=forms.Select(attrs={'class': 'form-select'}) + ) + + status = forms.ChoiceField( + choices=[('', 'All Statuses')] + BloodUnit.STATUS_CHOICES, + required=False, + widget=forms.Select(attrs={'class': 'form-select'}) + ) + + location = forms.ModelChoiceField( + queryset=InventoryLocation.objects.filter(is_active=True), + required=False, + empty_label="All Locations", + widget=forms.Select(attrs={'class': 'form-select'}) + ) + + expiry_days = forms.IntegerField( + required=False, + label="Expiring within (days)", + widget=forms.NumberInput(attrs={'class': 'form-control', 'min': '0'}) + ) + diff --git a/blood_bank/management/__init__.py b/blood_bank/management/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/blood_bank/management/__pycache__/__init__.cpython-312.pyc b/blood_bank/management/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..504142e7 Binary files /dev/null and b/blood_bank/management/__pycache__/__init__.cpython-312.pyc differ diff --git a/blood_bank/management/commands/__init__.py b/blood_bank/management/commands/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/blood_bank/management/commands/__pycache__/__init__.cpython-312.pyc b/blood_bank/management/commands/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..7bd5dba1 Binary files /dev/null and b/blood_bank/management/commands/__pycache__/__init__.cpython-312.pyc differ diff --git a/blood_bank/management/commands/__pycache__/blood_bank_data.cpython-312.pyc b/blood_bank/management/commands/__pycache__/blood_bank_data.cpython-312.pyc new file mode 100644 index 00000000..3527e5b4 Binary files /dev/null and b/blood_bank/management/commands/__pycache__/blood_bank_data.cpython-312.pyc differ diff --git a/blood_bank/management/commands/blood_bank_data.py b/blood_bank/management/commands/blood_bank_data.py new file mode 100644 index 00000000..4f894f03 --- /dev/null +++ b/blood_bank/management/commands/blood_bank_data.py @@ -0,0 +1,339 @@ +import random +from datetime import datetime, timedelta +from django.core.management.base import BaseCommand +from django.utils import timezone +from django.db import transaction + +from accounts.models import User +from blood_bank.models import ( + BloodGroup, Donor, BloodComponent, BloodUnit, BloodTest, + BloodRequest, InventoryLocation, QualityControl +) +from patients.models import PatientProfile +from core.models import Department + + +class Command(BaseCommand): + help = 'Generate Saudi-influenced blood bank test data' + + def add_arguments(self, parser): + parser.add_argument('--donors', type=int, default=50, help='Number of donors to create (default: 50)') + parser.add_argument('--units', type=int, default=100, help='Number of blood units to create (default: 100)') + + def handle(self, *args, **options): + self.stdout.write(self.style.SUCCESS('Starting Saudi blood bank data generation...')) + try: + with transaction.atomic(): + users = list(User.objects.all()) + patients = list(PatientProfile.objects.all()) + departments = list(Department.objects.all()) + + if not users: + self.stdout.write(self.style.ERROR('No users found. Please create users first.')) + return + + self.create_blood_groups() + self.create_blood_components() + self.create_inventory_locations() + + donors = self.create_saudi_donors(options['donors'], users) + blood_units = self.create_blood_units(options['units'], donors, users) + self.create_blood_tests(blood_units, users) + + if patients and departments: + self.create_blood_requests(20, patients, departments, users) + + self.create_quality_control_records(users) + + except Exception as e: + self.stdout.write(self.style.ERROR(f'Error: {str(e)}')) + return + + self.stdout.write(self.style.SUCCESS('Saudi blood bank data generation completed!')) + + # ---------- seeders ---------- + + def create_blood_groups(self): + """Create ABO/Rh blood groups with correct choices (POS/NEG).""" + blood_groups = [ + ('A', 'POS'), ('A', 'NEG'), + ('B', 'POS'), ('B', 'NEG'), + ('AB', 'POS'), ('AB', 'NEG'), + ('O', 'POS'), ('O', 'NEG'), + ] + for abo, rh in blood_groups: + BloodGroup.objects.get_or_create(abo_type=abo, rh_factor=rh) + self.stdout.write('✓ Created blood groups') + + def create_blood_components(self): + """Create blood components with required fields.""" + components = [ + # (name, volume_ml, shelf_life_days, storage_temperature, description) + ('whole_blood', 450, 35, '2–6°C', 'Whole blood unit'), + ('packed_rbc', 300, 42, '2–6°C', 'Packed red blood cells'), + ('fresh_frozen_plasma', 250, 365, '≤ -18°C', 'Fresh frozen plasma'), + ('platelets', 50, 5, '20–24°C with agitation', 'Platelet concentrate'), + # Optional extras (your model allows them) + ('cryoprecipitate', 15, 365, '≤ -18°C', 'Cryoprecipitated AHF'), + ('granulocytes', 200, 1, '20–24°C', 'Granulocyte concentrate'), + ] + for name, volume, shelf_life, temp, desc in components: + BloodComponent.objects.get_or_create( + name=name, + defaults={ + 'description': desc, + 'shelf_life_days': shelf_life, + 'storage_temperature': temp, + 'volume_ml': volume, + 'is_active': True + } + ) + self.stdout.write('✓ Created blood components') + + def create_inventory_locations(self): + """Create storage locations with required fields.""" + locations = [ + # (name, type, capacity, temperature_range) + ('Main Refrigerator A', 'refrigerator', 100, '2–6°C'), + ('Main Refrigerator B', 'refrigerator', 100, '2–6°C'), + ('Platelet Agitator 1', 'platelet_agitator', 30, '20–24°C'), + ('Plasma Freezer A', 'freezer', 200, '≤ -18°C'), + ('Quarantine Storage', 'quarantine', 50, '2–6°C'), + ('Testing Area 1', 'testing', 20, 'Room temp'), + ] + for name, loc_type, capacity, temp_range in locations: + InventoryLocation.objects.get_or_create( + name=name, + defaults={ + 'location_type': loc_type, + 'temperature_range': temp_range, + 'capacity': capacity, + 'is_active': True, + 'current_stock': 0, + } + ) + self.stdout.write('✓ Created inventory locations') + + def create_saudi_donors(self, count, users): + """Create Saudi-influenced donors aligned with Donor model fields.""" + saudi_male_names = [ + 'Abdullah', 'Mohammed', 'Ahmed', 'Ali', 'Omar', 'Khalid', 'Fahd', 'Salman', + 'Faisal', 'Turki', 'Nasser', 'Saud', 'Bandar', 'Majid', 'Waleed', 'Yazeed', + 'Abdulaziz', 'Abdulrahman', 'Ibrahim', 'Hassan', 'Hussein', 'Mansour' + ] + saudi_female_names = [ + 'Fatima', 'Aisha', 'Maryam', 'Khadija', 'Zainab', 'Noura', 'Sarah', 'Hala', + 'Reem', 'Lama', 'Nada', 'Rana', 'Dina', 'Lina', 'Maha', 'Wafa', 'Amal', + 'Najla', 'Huda', 'Layla', 'Nour', 'Ghada', 'Rania' + ] + saudi_family_names = [ + 'Al-Saud', 'Al-Rashid', 'Al-Otaibi', 'Al-Dosari', 'Al-Harbi', 'Al-Zahrani', + 'Al-Ghamdi', 'Al-Qahtani', 'Al-Mutairi', 'Al-Malki', 'Al-Subai', 'Al-Shehri', + 'Al-Dawsari', 'Al-Enezi', 'Al-Rasheed', 'Al-Faraj', 'Al-Mansour', 'Al-Nasser' + ] + + blood_groups = list(BloodGroup.objects.all()) + created_by = random.choice(users) + + donors = [] + for i in range(count): + try: + gender = random.choice(['M', 'F']) + first_name = random.choice(saudi_male_names if gender == 'M' else saudi_female_names) + last_name = random.choice(saudi_family_names) + + national_id = f"{random.choice([1, 2])}{random.randint(100000000, 999999999)}" # 10 digits + donor_id = f"SA{random.randint(100000, 999999)}" + + age = random.randint(18, 65) + birth_date = timezone.now().date() - timedelta(days=age * 365) + + phone = f"+966{random.choice([50, 51, 52, 53, 54, 55])}{random.randint(1000000, 9999999)}" + weight = random.randint(60, 120) if gender == 'M' else random.randint(45, 90) + height = random.randint(150, 190) + + blood_group = random.choice(blood_groups) + + donor = Donor.objects.create( + donor_id=donor_id, + first_name=first_name, + last_name=last_name, + date_of_birth=birth_date, + gender=gender, + blood_group=blood_group, + national_id=national_id, + phone=phone, # field is `phone` + email=f"{first_name.lower()}.{last_name.lower().replace('-', '').replace(' ', '')}@gmail.com", + address=f"{random.randint(1, 999)} King Fahd Road, Saudi Arabia", + emergency_contact_name=f"{random.choice(saudi_male_names + saudi_female_names)} {random.choice(saudi_family_names)}", + emergency_contact_phone=f"+966{random.choice([50, 51, 52, 53, 54, 55])}{random.randint(1000000, 9999999)}", + donor_type='voluntary', + status='active', + last_donation_date=timezone.now() - timedelta(days=random.randint(60, 365)) if random.random() < 0.6 else None, + total_donations=random.randint(0, 10), + weight=weight, + height=height, + notes="Saudi donor", + created_by=created_by, # required + ) + donors.append(donor) + except Exception as e: + self.stdout.write(f"Error creating donor {i}: {str(e)}") + continue + + self.stdout.write(f'✓ Created {len(donors)} Saudi donors') + return donors + + def create_blood_units(self, count, donors, users): + """Create blood units; save location as string and update stock.""" + if not donors: + self.stdout.write('No donors available for blood units') + return [] + + components = list(BloodComponent.objects.filter(is_active=True)) + locations = list(InventoryLocation.objects.filter(is_active=True)) + blood_units = [] + + for i in range(count): + try: + donor = random.choice(donors) + component = random.choice(components) + inv = random.choice(locations) + + unit_number = f"SA{timezone.now().year}{random.randint(100000, 999999)}" + collection_date = timezone.now() - timedelta(days=random.randint(0, 30)) + expiry_date = collection_date + timedelta(days=component.shelf_life_days) + + status = random.choice(['available', 'reserved', 'issued', 'collected', 'testing', 'quarantine']) + + blood_unit = BloodUnit.objects.create( + unit_number=unit_number, + donor=donor, + blood_group=donor.blood_group, + component=component, + volume_ml=component.volume_ml, + collection_date=collection_date, + expiry_date=expiry_date, + status=status, + location=inv.name, # CharField on model + collected_by=random.choice(users), + collection_site='King Fahd Medical City Blood Bank', + bag_type='single', + anticoagulant='CPDA-1', + notes=f"Collected from donor {donor.donor_id}" + ) + blood_units.append(blood_unit) + + # Update inventory stock (bounded by capacity) + inv.current_stock = min(inv.capacity, inv.current_stock + 1) + inv.save(update_fields=['current_stock']) + + except Exception as e: + self.stdout.write(f"Error creating blood unit {i}: {str(e)}") + continue + + self.stdout.write(f'✓ Created {len(blood_units)} blood units') + return blood_units + + def create_blood_tests(self, blood_units, users): + """Create infectious disease tests for each unit.""" + test_types = ['hiv', 'hbv', 'hcv', 'syphilis'] # must match TEST_TYPE_CHOICES keys + + for unit in blood_units: + try: + for test_type in test_types: + result = random.choices(['negative', 'positive'], weights=[0.95, 0.05])[0] + BloodTest.objects.create( + blood_unit=unit, + test_type=test_type, + result=result, + test_date=unit.collection_date + timedelta(hours=random.randint(2, 24)), + tested_by=random.choice(users), + equipment_used=f"Abbott PRISM {random.randint(1000, 9999)}", + lot_number=f"LOT{random.randint(100000, 999999)}", + notes="Routine infectious disease screening" + ) + except Exception as e: + self.stdout.write(f"Error creating tests for unit {unit.unit_number}: {str(e)}") + continue + + self.stdout.write(f'✓ Created blood tests for {len(blood_units)} units') + + def create_blood_requests(self, count, patients, departments, users): + """Create blood requests from departments.""" + components = list(BloodComponent.objects.filter(is_active=True)) + blood_groups = list(BloodGroup.objects.all()) + + for i in range(count): + try: + patient = random.choice(patients) + department = random.choice(departments) + component = random.choice(components) + + request_number = f"REQ{timezone.now().year}{random.randint(10000, 99999)}" + indications = [ + 'Surgical blood loss during cardiac surgery', + 'Anemia secondary to chronic kidney disease', + 'Postpartum hemorrhage', + 'Trauma-related blood loss', + 'Chemotherapy-induced anemia' + ] + urgency = random.choice(['routine', 'urgent', 'emergency']) + status = random.choice(['pending', 'processing', 'ready']) + + request_date = timezone.now() - timedelta(days=random.randint(0, 7)) + required_by = request_date + timedelta(hours=random.randint(2, 48)) + + BloodRequest.objects.create( + request_number=request_number, + patient=patient, + requesting_department=department, + requesting_physician=random.choice(users), + component_requested=component, + units_requested=random.randint(1, 3), + urgency=urgency, + indication=random.choice(indications), + patient_blood_group=random.choice(blood_groups), + hemoglobin_level=round(random.uniform(7.0, 12.0), 1), + status=status, + # auto_now_add request_date on model; we still set required_by + required_by=required_by, + notes=f"Request from {department.name}" + ) + except Exception as e: + self.stdout.write(f"Error creating blood request {i}: {str(e)}") + continue + + self.stdout.write('✓ Created blood requests') + + def create_quality_control_records(self, users): + """Create quality control records.""" + test_types = ['temperature_monitoring', 'equipment_calibration', 'reagent_testing'] + for i in range(10): + try: + test_type = random.choice(test_types) + status = random.choice(['pass', 'fail', 'pending']) + performed_by = random.choice(users) + qc = QualityControl.objects.create( + test_type=test_type, + test_date=timezone.now() - timedelta(days=random.randint(0, 30)), + equipment_tested=f"Equipment {random.randint(1000, 9999)}", + parameters_tested="Temperature range, accuracy", + expected_results="Within acceptable limits", + actual_results="Pass" if status == 'pass' else "Out of range" if status == 'fail' else "Pending", + status=status, + performed_by=performed_by, + corrective_action="Recalibration performed" if status == 'fail' else "", + next_test_date=timezone.now() + timedelta(days=30) + ) + # Optionally auto-review passes + if status == 'pass' and random.random() < 0.5: + qc.reviewed_by = random.choice(users) + qc.review_date = timezone.now() + qc.review_notes = "Reviewed and verified." + qc.save(update_fields=['reviewed_by', 'review_date', 'review_notes']) + except Exception as e: + self.stdout.write(f"Error creating QC record {i}: {str(e)}") + continue + + self.stdout.write('✓ Created quality control records') \ No newline at end of file diff --git a/blood_bank/migrations/0001_initial.py b/blood_bank/migrations/0001_initial.py new file mode 100644 index 00000000..5c595c34 --- /dev/null +++ b/blood_bank/migrations/0001_initial.py @@ -0,0 +1,925 @@ +# Generated by Django 5.2.4 on 2025-09-04 15:11 + +import django.core.validators +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ("core", "0001_initial"), + ("patients", "0007_alter_consenttemplate_category"), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name="BloodComponent", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "name", + models.CharField( + choices=[ + ("whole_blood", "Whole Blood"), + ("packed_rbc", "Packed Red Blood Cells"), + ("fresh_frozen_plasma", "Fresh Frozen Plasma"), + ("platelets", "Platelets"), + ("cryoprecipitate", "Cryoprecipitate"), + ("granulocytes", "Granulocytes"), + ], + max_length=50, + unique=True, + ), + ), + ("description", models.TextField()), + ("shelf_life_days", models.PositiveIntegerField()), + ("storage_temperature", models.CharField(max_length=50)), + ("volume_ml", models.PositiveIntegerField()), + ("is_active", models.BooleanField(default=True)), + ], + options={ + "ordering": ["name"], + }, + ), + migrations.CreateModel( + name="InventoryLocation", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("name", models.CharField(max_length=100, unique=True)), + ( + "location_type", + models.CharField( + choices=[ + ("refrigerator", "Refrigerator"), + ("freezer", "Freezer"), + ("platelet_agitator", "Platelet Agitator"), + ("quarantine", "Quarantine"), + ("testing", "Testing Area"), + ], + max_length=20, + ), + ), + ("temperature_range", models.CharField(max_length=50)), + ("temperature", models.FloatField(blank=True, null=True)), + ("capacity", models.PositiveIntegerField()), + ("current_stock", models.PositiveIntegerField(default=0)), + ("is_active", models.BooleanField(default=True)), + ("notes", models.TextField(blank=True)), + ], + options={ + "ordering": ["name"], + }, + ), + migrations.CreateModel( + name="BloodGroup", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "abo_type", + models.CharField( + choices=[("A", "A"), ("B", "B"), ("AB", "AB"), ("O", "O")], + max_length=2, + ), + ), + ( + "rh_factor", + models.CharField( + choices=[("POS", "Positive"), ("NEG", "Negative")], max_length=8 + ), + ), + ], + options={ + "ordering": ["abo_type", "rh_factor"], + "unique_together": {("abo_type", "rh_factor")}, + }, + ), + migrations.CreateModel( + name="BloodRequest", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("request_number", models.CharField(max_length=20, unique=True)), + ( + "units_requested", + models.PositiveIntegerField( + validators=[django.core.validators.MinValueValidator(1)] + ), + ), + ( + "urgency", + models.CharField( + choices=[ + ("routine", "Routine"), + ("urgent", "Urgent"), + ("emergency", "Emergency"), + ], + default="routine", + max_length=10, + ), + ), + ("indication", models.TextField()), + ("special_requirements", models.TextField(blank=True)), + ("hemoglobin_level", models.FloatField(blank=True, null=True)), + ("platelet_count", models.IntegerField(blank=True, null=True)), + ( + "status", + models.CharField( + choices=[ + ("pending", "Pending"), + ("processing", "Processing"), + ("ready", "Ready"), + ("issued", "Issued"), + ("completed", "Completed"), + ("cancelled", "Cancelled"), + ], + default="pending", + max_length=15, + ), + ), + ("request_date", models.DateTimeField(auto_now_add=True)), + ("required_by", models.DateTimeField()), + ("processed_at", models.DateTimeField(blank=True, null=True)), + ("notes", models.TextField(blank=True)), + ("cancellation_reason", models.TextField(blank=True)), + ("cancellation_date", models.DateTimeField(blank=True, null=True)), + ( + "cancelled_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="cancelled_requests", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "component_requested", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="blood_bank.bloodcomponent", + ), + ), + ( + "patient", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="blood_requests", + to="patients.patientprofile", + ), + ), + ( + "patient_blood_group", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="blood_bank.bloodgroup", + ), + ), + ( + "processed_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="processed_requests", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "requesting_department", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="core.department", + ), + ), + ( + "requesting_physician", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="blood_requests", + to=settings.AUTH_USER_MODEL, + ), + ), + ], + options={ + "ordering": ["-request_date"], + }, + ), + migrations.CreateModel( + name="BloodUnit", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("unit_number", models.CharField(max_length=20, unique=True)), + ("collection_date", models.DateTimeField()), + ("expiry_date", models.DateTimeField()), + ("volume_ml", models.PositiveIntegerField()), + ( + "status", + models.CharField( + choices=[ + ("collected", "Collected"), + ("testing", "Testing"), + ("quarantine", "Quarantine"), + ("available", "Available"), + ("reserved", "Reserved"), + ("issued", "Issued"), + ("transfused", "Transfused"), + ("expired", "Expired"), + ("discarded", "Discarded"), + ], + default="collected", + max_length=20, + ), + ), + ("location", models.CharField(max_length=100)), + ("bag_type", models.CharField(max_length=50)), + ("anticoagulant", models.CharField(default="CPDA-1", max_length=50)), + ("collection_site", models.CharField(max_length=100)), + ("notes", models.TextField(blank=True)), + ("created_at", models.DateTimeField(auto_now_add=True)), + ("updated_at", models.DateTimeField(auto_now=True)), + ( + "blood_group", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="blood_bank.bloodgroup", + ), + ), + ( + "collected_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="collected_units", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "component", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="blood_bank.bloodcomponent", + ), + ), + ], + options={ + "ordering": ["-collection_date"], + }, + ), + migrations.CreateModel( + name="CrossMatch", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "test_type", + models.CharField( + choices=[ + ("major", "Major Crossmatch"), + ("minor", "Minor Crossmatch"), + ("immediate_spin", "Immediate Spin"), + ("antiglobulin", "Antiglobulin Test"), + ], + max_length=20, + ), + ), + ( + "compatibility", + models.CharField( + choices=[ + ("compatible", "Compatible"), + ("incompatible", "Incompatible"), + ("pending", "Pending"), + ], + default="pending", + max_length=15, + ), + ), + ("test_date", models.DateTimeField()), + ("temperature", models.CharField(default="37°C", max_length=20)), + ("incubation_time", models.PositiveIntegerField(default=15)), + ("notes", models.TextField(blank=True)), + ("verified_at", models.DateTimeField(blank=True, null=True)), + ( + "blood_unit", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="crossmatches", + to="blood_bank.bloodunit", + ), + ), + ( + "recipient", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="patients.patientprofile", + ), + ), + ( + "tested_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "verified_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="verified_crossmatches", + to=settings.AUTH_USER_MODEL, + ), + ), + ], + options={ + "ordering": ["-test_date"], + }, + ), + migrations.CreateModel( + name="BloodIssue", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("issue_date", models.DateTimeField(auto_now_add=True)), + ("expiry_time", models.DateTimeField()), + ("returned", models.BooleanField(default=False)), + ("return_date", models.DateTimeField(blank=True, null=True)), + ("return_reason", models.TextField(blank=True)), + ("notes", models.TextField(blank=True)), + ( + "issued_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="issued_units", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "issued_to", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="received_units", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "blood_request", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="issues", + to="blood_bank.bloodrequest", + ), + ), + ( + "blood_unit", + models.OneToOneField( + on_delete=django.db.models.deletion.PROTECT, + related_name="issue", + to="blood_bank.bloodunit", + ), + ), + ( + "crossmatch", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + to="blood_bank.crossmatch", + ), + ), + ], + options={ + "ordering": ["-issue_date"], + }, + ), + migrations.CreateModel( + name="Donor", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("donor_id", models.CharField(max_length=20, unique=True)), + ("first_name", models.CharField(max_length=100)), + ("last_name", models.CharField(max_length=100)), + ("date_of_birth", models.DateField()), + ( + "gender", + models.CharField( + choices=[ + ("male", "Male"), + ("female", "Female"), + ("other", "Other"), + ], + max_length=10, + ), + ), + ("phone", models.CharField(max_length=20)), + ("email", models.EmailField(blank=True, max_length=254)), + ("address", models.TextField()), + ("emergency_contact_name", models.CharField(max_length=100)), + ("emergency_contact_phone", models.CharField(max_length=20)), + ( + "donor_type", + models.CharField( + choices=[ + ("voluntary", "Voluntary"), + ("replacement", "Replacement"), + ("autologous", "Autologous"), + ("directed", "Directed"), + ], + default="voluntary", + max_length=20, + ), + ), + ( + "status", + models.CharField( + choices=[ + ("active", "Active"), + ("deferred", "Deferred"), + ("permanently_deferred", "Permanently Deferred"), + ("inactive", "Inactive"), + ], + default="active", + max_length=20, + ), + ), + ("registration_date", models.DateTimeField(auto_now_add=True)), + ("last_donation_date", models.DateTimeField(blank=True, null=True)), + ("total_donations", models.PositiveIntegerField(default=0)), + ( + "weight", + models.FloatField( + validators=[django.core.validators.MinValueValidator(45.0)] + ), + ), + ( + "height", + models.FloatField( + validators=[django.core.validators.MinValueValidator(140.0)] + ), + ), + ("notes", models.TextField(blank=True)), + ("created_at", models.DateTimeField(auto_now_add=True)), + ("updated_at", models.DateTimeField(auto_now=True)), + ( + "blood_group", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="blood_bank.bloodgroup", + ), + ), + ( + "created_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="created_donors", + to=settings.AUTH_USER_MODEL, + ), + ), + ], + options={ + "ordering": ["-registration_date"], + }, + ), + migrations.AddField( + model_name="bloodunit", + name="donor", + field=models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="blood_units", + to="blood_bank.donor", + ), + ), + migrations.CreateModel( + name="QualityControl", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "test_type", + models.CharField( + choices=[ + ("temperature_monitoring", "Temperature Monitoring"), + ("equipment_calibration", "Equipment Calibration"), + ("reagent_testing", "Reagent Testing"), + ("proficiency_testing", "Proficiency Testing"), + ("process_validation", "Process Validation"), + ], + max_length=30, + ), + ), + ("test_date", models.DateTimeField()), + ("equipment_tested", models.CharField(blank=True, max_length=100)), + ("parameters_tested", models.TextField()), + ("expected_results", models.TextField()), + ("actual_results", models.TextField()), + ( + "status", + models.CharField( + choices=[ + ("pass", "Pass"), + ("fail", "Fail"), + ("pending", "Pending"), + ], + max_length=10, + ), + ), + ("review_date", models.DateTimeField(blank=True, null=True)), + ("review_notes", models.TextField(blank=True)), + ("corrective_action", models.TextField(blank=True)), + ("next_test_date", models.DateTimeField(blank=True, null=True)), + ("capa_initiated", models.BooleanField(default=False)), + ("capa_number", models.CharField(blank=True, max_length=50)), + ( + "capa_priority", + models.CharField( + blank=True, + choices=[ + ("low", "Low"), + ("medium", "Medium"), + ("high", "High"), + ], + max_length=10, + ), + ), + ("capa_date", models.DateTimeField(blank=True, null=True)), + ("capa_assessment", models.TextField(blank=True)), + ( + "capa_status", + models.CharField( + blank=True, + choices=[ + ("open", "Open"), + ("in_progress", "In Progress"), + ("closed", "Closed"), + ], + max_length=20, + ), + ), + ( + "capa_initiated_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="initiated_capas", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "performed_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="qc_tests", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "reviewed_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="reviewed_qc_tests", + to=settings.AUTH_USER_MODEL, + ), + ), + ], + options={ + "ordering": ["-test_date"], + }, + ), + migrations.CreateModel( + name="Transfusion", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("start_time", models.DateTimeField()), + ("end_time", models.DateTimeField(blank=True, null=True)), + ( + "status", + models.CharField( + choices=[ + ("started", "Started"), + ("in_progress", "In Progress"), + ("completed", "Completed"), + ("stopped", "Stopped"), + ("adverse_reaction", "Adverse Reaction"), + ], + default="started", + max_length=20, + ), + ), + ( + "volume_transfused", + models.PositiveIntegerField(blank=True, null=True), + ), + ("transfusion_rate", models.CharField(blank=True, max_length=50)), + ("pre_transfusion_vitals", models.JSONField(default=dict)), + ("post_transfusion_vitals", models.JSONField(default=dict)), + ("vital_signs_history", models.JSONField(default=list)), + ("current_blood_pressure", models.CharField(blank=True, max_length=20)), + ("current_heart_rate", models.IntegerField(blank=True, null=True)), + ("current_temperature", models.FloatField(blank=True, null=True)), + ( + "current_respiratory_rate", + models.IntegerField(blank=True, null=True), + ), + ( + "current_oxygen_saturation", + models.IntegerField(blank=True, null=True), + ), + ("last_vitals_check", models.DateTimeField(blank=True, null=True)), + ("patient_consent", models.BooleanField(default=False)), + ("consent_date", models.DateTimeField(blank=True, null=True)), + ("notes", models.TextField(blank=True)), + ("stop_reason", models.TextField(blank=True)), + ("completion_notes", models.TextField(blank=True)), + ( + "administered_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="administered_transfusions", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "blood_issue", + models.OneToOneField( + on_delete=django.db.models.deletion.PROTECT, + related_name="transfusion", + to="blood_bank.bloodissue", + ), + ), + ( + "completed_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="completed_transfusions", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "stopped_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="stopped_transfusions", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "witnessed_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="witnessed_transfusions", + to=settings.AUTH_USER_MODEL, + ), + ), + ], + options={ + "ordering": ["-start_time"], + }, + ), + migrations.CreateModel( + name="AdverseReaction", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "reaction_type", + models.CharField( + choices=[ + ("febrile", "Febrile Non-Hemolytic"), + ("allergic", "Allergic"), + ("hemolytic_acute", "Acute Hemolytic"), + ("hemolytic_delayed", "Delayed Hemolytic"), + ("anaphylactic", "Anaphylactic"), + ("septic", "Septic"), + ("circulatory_overload", "Circulatory Overload"), + ("lung_injury", "Transfusion-Related Acute Lung Injury"), + ("other", "Other"), + ], + max_length=30, + ), + ), + ( + "severity", + models.CharField( + choices=[ + ("mild", "Mild"), + ("moderate", "Moderate"), + ("severe", "Severe"), + ("life_threatening", "Life Threatening"), + ], + max_length=20, + ), + ), + ("onset_time", models.DateTimeField()), + ("symptoms", models.TextField()), + ("treatment_given", models.TextField()), + ("outcome", models.TextField()), + ("investigation_notes", models.TextField(blank=True)), + ("regulatory_reported", models.BooleanField(default=False)), + ("report_date", models.DateTimeField(blank=True, null=True)), + ( + "investigated_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="investigated_reactions", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "reported_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + related_name="reported_reactions", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "transfusion", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="adverse_reactions", + to="blood_bank.transfusion", + ), + ), + ], + options={ + "ordering": ["-onset_time"], + }, + ), + migrations.CreateModel( + name="BloodTest", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "test_type", + models.CharField( + choices=[ + ("abo_rh", "ABO/Rh Typing"), + ("antibody_screen", "Antibody Screening"), + ("hiv", "HIV"), + ("hbv", "Hepatitis B"), + ("hcv", "Hepatitis C"), + ("syphilis", "Syphilis"), + ("htlv", "HTLV"), + ("cmv", "CMV"), + ("malaria", "Malaria"), + ], + max_length=20, + ), + ), + ( + "result", + models.CharField( + choices=[ + ("positive", "Positive"), + ("negative", "Negative"), + ("indeterminate", "Indeterminate"), + ("pending", "Pending"), + ], + default="pending", + max_length=15, + ), + ), + ("test_date", models.DateTimeField()), + ("equipment_used", models.CharField(blank=True, max_length=100)), + ("lot_number", models.CharField(blank=True, max_length=50)), + ("notes", models.TextField(blank=True)), + ("verified_at", models.DateTimeField(blank=True, null=True)), + ( + "tested_by", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "verified_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.PROTECT, + related_name="verified_tests", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "blood_unit", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="tests", + to="blood_bank.bloodunit", + ), + ), + ], + options={ + "ordering": ["-test_date"], + "unique_together": {("blood_unit", "test_type")}, + }, + ), + ] diff --git a/blood_bank/migrations/0002_donor_national_id_alter_donor_gender.py b/blood_bank/migrations/0002_donor_national_id_alter_donor_gender.py new file mode 100644 index 00000000..e1bc71a6 --- /dev/null +++ b/blood_bank/migrations/0002_donor_national_id_alter_donor_gender.py @@ -0,0 +1,26 @@ +# Generated by Django 5.2.4 on 2025-09-04 15:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("blood_bank", "0001_initial"), + ] + + operations = [ + migrations.AddField( + model_name="donor", + name="national_id", + field=models.CharField(default=1129632798, max_length=10, unique=True), + preserve_default=False, + ), + migrations.AlterField( + model_name="donor", + name="gender", + field=models.CharField( + choices=[("M", "Male"), ("F", "Female"), ("O", "Other")], max_length=10 + ), + ), + ] diff --git a/blood_bank/migrations/__init__.py b/blood_bank/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/blood_bank/migrations/__pycache__/0001_initial.cpython-312.pyc b/blood_bank/migrations/__pycache__/0001_initial.cpython-312.pyc new file mode 100644 index 00000000..0f14a3dc Binary files /dev/null and b/blood_bank/migrations/__pycache__/0001_initial.cpython-312.pyc differ diff --git a/blood_bank/migrations/__pycache__/0002_donor_national_id_alter_donor_gender.cpython-312.pyc b/blood_bank/migrations/__pycache__/0002_donor_national_id_alter_donor_gender.cpython-312.pyc new file mode 100644 index 00000000..84e96f43 Binary files /dev/null and b/blood_bank/migrations/__pycache__/0002_donor_national_id_alter_donor_gender.cpython-312.pyc differ diff --git a/blood_bank/migrations/__pycache__/__init__.cpython-312.pyc b/blood_bank/migrations/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..5a889652 Binary files /dev/null and b/blood_bank/migrations/__pycache__/__init__.cpython-312.pyc differ diff --git a/blood_bank/models.py b/blood_bank/models.py new file mode 100644 index 00000000..bc0abfc0 --- /dev/null +++ b/blood_bank/models.py @@ -0,0 +1,525 @@ +from django.db import models +# from django.contrib.auth.models import User +from django.core.validators import MinValueValidator, MaxValueValidator +from django.utils import timezone +from datetime import timedelta +from core.models import Department +from patients.models import PatientProfile +from accounts.models import User + +class BloodGroup(models.Model): + """Blood group types (A, B, AB, O) with Rh factor""" + ABO_CHOICES = [ + ('A', 'A'), + ('B', 'B'), + ('AB', 'AB'), + ('O', 'O'), + ] + + RH_CHOICES = [ + ('POS', 'Positive'), + ('NEG', 'Negative'), + ] + + abo_type = models.CharField(max_length=2, choices=ABO_CHOICES) + rh_factor = models.CharField(max_length=8, choices=RH_CHOICES) + + class Meta: + unique_together = ['abo_type', 'rh_factor'] + ordering = ['abo_type', 'rh_factor'] + + def __str__(self): + return f"{self.abo_type} {self.rh_factor.capitalize()}" + + @property + def display_name(self): + rh_symbol = '+' if self.rh_factor == 'POS' else '-' + return f"{self.abo_type}{rh_symbol}" + + +class Donor(models.Model): + """Blood donor information and eligibility""" + DONOR_TYPE_CHOICES = [ + ('voluntary', 'Voluntary'), + ('replacement', 'Replacement'), + ('autologous', 'Autologous'), + ('directed', 'Directed'), + ] + + STATUS_CHOICES = [ + ('active', 'Active'), + ('deferred', 'Deferred'), + ('permanently_deferred', 'Permanently Deferred'), + ('inactive', 'Inactive'), + ] + + donor_id = models.CharField(max_length=20, unique=True) + first_name = models.CharField(max_length=100) + last_name = models.CharField(max_length=100) + date_of_birth = models.DateField() + gender = models.CharField(max_length=10, choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')]) + national_id = models.CharField(max_length=10, unique=True) + blood_group = models.ForeignKey(BloodGroup, on_delete=models.PROTECT) + phone = models.CharField(max_length=20) + email = models.EmailField(blank=True) + address = models.TextField() + emergency_contact_name = models.CharField(max_length=100) + emergency_contact_phone = models.CharField(max_length=20) + donor_type = models.CharField(max_length=20, choices=DONOR_TYPE_CHOICES, default='voluntary') + status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='active') + registration_date = models.DateTimeField(auto_now_add=True) + last_donation_date = models.DateTimeField(null=True, blank=True) + total_donations = models.PositiveIntegerField(default=0) + weight = models.FloatField(validators=[MinValueValidator(45.0)]) # Minimum weight for donation + height = models.FloatField(validators=[MinValueValidator(140.0)]) # In cm + notes = models.TextField(blank=True) + created_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='created_donors') + created_at = models.DateTimeField(auto_now_add=True) + updated_at = models.DateTimeField(auto_now=True) + + class Meta: + ordering = ['-registration_date'] + + def __str__(self): + return f"{self.donor_id} - {self.first_name} {self.last_name}" + + @property + def full_name(self): + return f"{self.first_name} {self.last_name}" + + @property + def age(self): + today = timezone.now().date() + return today.year - self.date_of_birth.year - ( + (today.month, today.day) < (self.date_of_birth.month, self.date_of_birth.day)) + + @property + def is_eligible_for_donation(self): + """Check if donor is eligible for donation based on last donation date""" + if self.status != 'active': + return False + + if not self.last_donation_date: + return True + + # Minimum 56 days between whole blood donations + days_since_last = (timezone.now() - self.last_donation_date).days + return days_since_last >= 56 + + @property + def next_eligible_date(self): + """Calculate next eligible donation date""" + if not self.last_donation_date: + return timezone.now().date() + + return (self.last_donation_date + timedelta(days=56)).date() + + +class BloodComponent(models.Model): + """Types of blood components (Whole Blood, RBC, Plasma, Platelets, etc.)""" + COMPONENT_CHOICES = [ + ('whole_blood', 'Whole Blood'), + ('packed_rbc', 'Packed Red Blood Cells'), + ('fresh_frozen_plasma', 'Fresh Frozen Plasma'), + ('platelets', 'Platelets'), + ('cryoprecipitate', 'Cryoprecipitate'), + ('granulocytes', 'Granulocytes'), + ] + + name = models.CharField(max_length=50, choices=COMPONENT_CHOICES, unique=True) + description = models.TextField() + shelf_life_days = models.PositiveIntegerField() # Storage duration in days + storage_temperature = models.CharField(max_length=50) # Storage requirements + volume_ml = models.PositiveIntegerField() # Standard volume in ml + is_active = models.BooleanField(default=True) + + class Meta: + ordering = ['name'] + + def __str__(self): + return self.get_name_display() + + +class BloodUnit(models.Model): + """Individual blood unit from donation to disposal""" + STATUS_CHOICES = [ + ('collected', 'Collected'), + ('testing', 'Testing'), + ('quarantine', 'Quarantine'), + ('available', 'Available'), + ('reserved', 'Reserved'), + ('issued', 'Issued'), + ('transfused', 'Transfused'), + ('expired', 'Expired'), + ('discarded', 'Discarded'), + ] + + unit_number = models.CharField(max_length=20, unique=True) + donor = models.ForeignKey(Donor, on_delete=models.PROTECT, related_name='blood_units') + component = models.ForeignKey(BloodComponent, on_delete=models.PROTECT) + blood_group = models.ForeignKey(BloodGroup, on_delete=models.PROTECT) + collection_date = models.DateTimeField() + expiry_date = models.DateTimeField() + volume_ml = models.PositiveIntegerField() + status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='collected') + location = models.CharField(max_length=100) # Storage location/refrigerator + bag_type = models.CharField(max_length=50) + anticoagulant = models.CharField(max_length=50, default='CPDA-1') + collection_site = models.CharField(max_length=100) + collected_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='collected_units') + notes = models.TextField(blank=True) + created_at = models.DateTimeField(auto_now_add=True) + updated_at = models.DateTimeField(auto_now=True) + + class Meta: + ordering = ['-collection_date'] + + def __str__(self): + return f"{self.unit_number} - {self.component} ({self.blood_group})" + + @property + def is_expired(self): + return timezone.now() > self.expiry_date + + @property + def days_to_expiry(self): + delta = self.expiry_date - timezone.now() + return delta.days if delta.days > 0 else 0 + + @property + def is_available(self): + return self.status == 'available' and not self.is_expired + + +class BloodTest(models.Model): + """Blood testing results for infectious diseases and compatibility""" + TEST_TYPE_CHOICES = [ + ('abo_rh', 'ABO/Rh Typing'), + ('antibody_screen', 'Antibody Screening'), + ('hiv', 'HIV'), + ('hbv', 'Hepatitis B'), + ('hcv', 'Hepatitis C'), + ('syphilis', 'Syphilis'), + ('htlv', 'HTLV'), + ('cmv', 'CMV'), + ('malaria', 'Malaria'), + ] + + RESULT_CHOICES = [ + ('positive', 'Positive'), + ('negative', 'Negative'), + ('indeterminate', 'Indeterminate'), + ('pending', 'Pending'), + ] + + blood_unit = models.ForeignKey(BloodUnit, on_delete=models.CASCADE, related_name='tests') + test_type = models.CharField(max_length=20, choices=TEST_TYPE_CHOICES) + result = models.CharField(max_length=15, choices=RESULT_CHOICES, default='pending') + test_date = models.DateTimeField() + tested_by = models.ForeignKey(User, on_delete=models.PROTECT) + equipment_used = models.CharField(max_length=100, blank=True) + lot_number = models.CharField(max_length=50, blank=True) + notes = models.TextField(blank=True) + verified_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='verified_tests', null=True, + blank=True) + verified_at = models.DateTimeField(null=True, blank=True) + + class Meta: + unique_together = ['blood_unit', 'test_type'] + ordering = ['-test_date'] + + def __str__(self): + return f"{self.blood_unit.unit_number} - {self.get_test_type_display()}: {self.result}" + + +class CrossMatch(models.Model): + """Cross-matching tests between donor blood and recipient""" + COMPATIBILITY_CHOICES = [ + ('compatible', 'Compatible'), + ('incompatible', 'Incompatible'), + ('pending', 'Pending'), + ] + + TEST_TYPE_CHOICES = [ + ('major', 'Major Crossmatch'), + ('minor', 'Minor Crossmatch'), + ('immediate_spin', 'Immediate Spin'), + ('antiglobulin', 'Antiglobulin Test'), + ] + + blood_unit = models.ForeignKey(BloodUnit, on_delete=models.CASCADE, related_name='crossmatches') + recipient = models.ForeignKey(PatientProfile, on_delete=models.PROTECT) + test_type = models.CharField(max_length=20, choices=TEST_TYPE_CHOICES) + compatibility = models.CharField(max_length=15, choices=COMPATIBILITY_CHOICES, default='pending') + test_date = models.DateTimeField() + tested_by = models.ForeignKey(User, on_delete=models.PROTECT) + temperature = models.CharField(max_length=20, default='37°C') + incubation_time = models.PositiveIntegerField(default=15) # minutes + notes = models.TextField(blank=True) + verified_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='verified_crossmatches', null=True, + blank=True) + verified_at = models.DateTimeField(null=True, blank=True) + + class Meta: + ordering = ['-test_date'] + + def __str__(self): + return f"{self.blood_unit.unit_number} x {self.recipient} - {self.compatibility}" + + +class BloodRequest(models.Model): + """Blood transfusion requests from clinical departments""" + URGENCY_CHOICES = [ + ('routine', 'Routine'), + ('urgent', 'Urgent'), + ('emergency', 'Emergency'), + ] + + STATUS_CHOICES = [ + ('pending', 'Pending'), + ('processing', 'Processing'), + ('ready', 'Ready'), + ('issued', 'Issued'), + ('completed', 'Completed'), + ('cancelled', 'Cancelled'), + ] + + request_number = models.CharField(max_length=20, unique=True) + patient = models.ForeignKey(PatientProfile, on_delete=models.PROTECT, related_name='blood_requests') + requesting_department = models.ForeignKey(Department, on_delete=models.PROTECT) + requesting_physician = models.ForeignKey(User, on_delete=models.PROTECT, related_name='blood_requests') + component_requested = models.ForeignKey(BloodComponent, on_delete=models.PROTECT) + units_requested = models.PositiveIntegerField(validators=[MinValueValidator(1)]) + urgency = models.CharField(max_length=10, choices=URGENCY_CHOICES, default='routine') + indication = models.TextField() # Clinical indication for transfusion + special_requirements = models.TextField(blank=True) # CMV negative, irradiated, etc. + patient_blood_group = models.ForeignKey(BloodGroup, on_delete=models.PROTECT) + hemoglobin_level = models.FloatField(null=True, blank=True) + platelet_count = models.IntegerField(null=True, blank=True) + status = models.CharField(max_length=15, choices=STATUS_CHOICES, default='pending') + request_date = models.DateTimeField(auto_now_add=True) + required_by = models.DateTimeField() + processed_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='processed_requests', null=True, + blank=True) + processed_at = models.DateTimeField(null=True, blank=True) + notes = models.TextField(blank=True) + + # Cancellation fields + cancellation_reason = models.TextField(blank=True) + cancelled_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='cancelled_requests', null=True, + blank=True) + cancellation_date = models.DateTimeField(null=True, blank=True) + + class Meta: + ordering = ['-request_date'] + + def __str__(self): + return f"{self.request_number} - {self.patient} ({self.component_requested})" + + @property + def is_overdue(self): + return timezone.now() > self.required_by and self.status not in ['completed', 'cancelled'] + + +class BloodIssue(models.Model): + """Blood unit issuance to patients""" + blood_request = models.ForeignKey(BloodRequest, on_delete=models.PROTECT, related_name='issues') + blood_unit = models.OneToOneField(BloodUnit, on_delete=models.PROTECT, related_name='issue') + crossmatch = models.ForeignKey(CrossMatch, on_delete=models.PROTECT, null=True, blank=True) + issued_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='issued_units') + issued_to = models.ForeignKey(User, on_delete=models.PROTECT, related_name='received_units') # Nurse/physician + issue_date = models.DateTimeField(auto_now_add=True) + expiry_time = models.DateTimeField() # 4 hours from issue for RBC + returned = models.BooleanField(default=False) + return_date = models.DateTimeField(null=True, blank=True) + return_reason = models.TextField(blank=True) + notes = models.TextField(blank=True) + + class Meta: + ordering = ['-issue_date'] + + def __str__(self): + return f"{self.blood_unit.unit_number} issued to {self.blood_request.patient}" + + @property + def is_expired(self): + return timezone.now() > self.expiry_time and not self.returned + + +class Transfusion(models.Model): + """Blood transfusion administration records""" + STATUS_CHOICES = [ + ('started', 'Started'), + ('in_progress', 'In Progress'), + ('completed', 'Completed'), + ('stopped', 'Stopped'), + ('adverse_reaction', 'Adverse Reaction'), + ] + + blood_issue = models.OneToOneField(BloodIssue, on_delete=models.PROTECT, related_name='transfusion') + start_time = models.DateTimeField() + end_time = models.DateTimeField(null=True, blank=True) + status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='started') + volume_transfused = models.PositiveIntegerField(null=True, blank=True) # ml + transfusion_rate = models.CharField(max_length=50, blank=True) # ml/hour + administered_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='administered_transfusions') + witnessed_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='witnessed_transfusions', null=True, + blank=True) + pre_transfusion_vitals = models.JSONField(default=dict) # BP, HR, Temp, etc. + post_transfusion_vitals = models.JSONField(default=dict) + vital_signs_history = models.JSONField(default=list) # Array of vital signs during transfusion + current_blood_pressure = models.CharField(max_length=20, blank=True) + current_heart_rate = models.IntegerField(null=True, blank=True) + current_temperature = models.FloatField(null=True, blank=True) + current_respiratory_rate = models.IntegerField(null=True, blank=True) + current_oxygen_saturation = models.IntegerField(null=True, blank=True) + last_vitals_check = models.DateTimeField(null=True, blank=True) + patient_consent = models.BooleanField(default=False) + consent_date = models.DateTimeField(null=True, blank=True) + notes = models.TextField(blank=True) + + # Completion/Stop fields + stop_reason = models.TextField(blank=True) + stopped_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='stopped_transfusions', null=True, + blank=True) + completed_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='completed_transfusions', null=True, + blank=True) + completion_notes = models.TextField(blank=True) + + class Meta: + ordering = ['-start_time'] + + def __str__(self): + return f"Transfusion: {self.blood_issue.blood_unit.unit_number} to {self.blood_issue.blood_request.patient}" + + @property + def duration_minutes(self): + if self.end_time: + return int((self.end_time - self.start_time).total_seconds() / 60) + return None + + +class AdverseReaction(models.Model): + """Adverse transfusion reactions""" + SEVERITY_CHOICES = [ + ('mild', 'Mild'), + ('moderate', 'Moderate'), + ('severe', 'Severe'), + ('life_threatening', 'Life Threatening'), + ] + + REACTION_TYPE_CHOICES = [ + ('febrile', 'Febrile Non-Hemolytic'), + ('allergic', 'Allergic'), + ('hemolytic_acute', 'Acute Hemolytic'), + ('hemolytic_delayed', 'Delayed Hemolytic'), + ('anaphylactic', 'Anaphylactic'), + ('septic', 'Septic'), + ('circulatory_overload', 'Circulatory Overload'), + ('lung_injury', 'Transfusion-Related Acute Lung Injury'), + ('other', 'Other'), + ] + + transfusion = models.ForeignKey(Transfusion, on_delete=models.CASCADE, related_name='adverse_reactions') + reaction_type = models.CharField(max_length=30, choices=REACTION_TYPE_CHOICES) + severity = models.CharField(max_length=20, choices=SEVERITY_CHOICES) + onset_time = models.DateTimeField() + symptoms = models.TextField() + treatment_given = models.TextField() + outcome = models.TextField() + reported_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='reported_reactions') + investigated_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='investigated_reactions', + null=True, blank=True) + investigation_notes = models.TextField(blank=True) + regulatory_reported = models.BooleanField(default=False) + report_date = models.DateTimeField(null=True, blank=True) + + class Meta: + ordering = ['-onset_time'] + + def __str__(self): + return f"{self.get_reaction_type_display()} - {self.severity} ({self.transfusion.blood_issue.blood_request.patient})" + + +class InventoryLocation(models.Model): + """Blood bank storage locations""" + LOCATION_TYPE_CHOICES = [ + ('refrigerator', 'Refrigerator'), + ('freezer', 'Freezer'), + ('platelet_agitator', 'Platelet Agitator'), + ('quarantine', 'Quarantine'), + ('testing', 'Testing Area'), + ] + + name = models.CharField(max_length=100, unique=True) + location_type = models.CharField(max_length=20, choices=LOCATION_TYPE_CHOICES) + temperature_range = models.CharField(max_length=50) + temperature = models.FloatField(null=True, blank=True) # Current temperature + capacity = models.PositiveIntegerField() # Number of units + current_stock = models.PositiveIntegerField(default=0) + is_active = models.BooleanField(default=True) + notes = models.TextField(blank=True) + + class Meta: + ordering = ['name'] + + def __str__(self): + return f"{self.name} ({self.get_location_type_display()})" + + @property + def utilization_percentage(self): + if self.capacity == 0: + return 0 + return (self.current_stock / self.capacity) * 100 + + +class QualityControl(models.Model): + """Quality control tests and monitoring""" + TEST_TYPE_CHOICES = [ + ('temperature_monitoring', 'Temperature Monitoring'), + ('equipment_calibration', 'Equipment Calibration'), + ('reagent_testing', 'Reagent Testing'), + ('proficiency_testing', 'Proficiency Testing'), + ('process_validation', 'Process Validation'), + ] + + STATUS_CHOICES = [ + ('pass', 'Pass'), + ('fail', 'Fail'), + ('pending', 'Pending'), + ] + + test_type = models.CharField(max_length=30, choices=TEST_TYPE_CHOICES) + test_date = models.DateTimeField() + equipment_tested = models.CharField(max_length=100, blank=True) + parameters_tested = models.TextField() + expected_results = models.TextField() + actual_results = models.TextField() + status = models.CharField(max_length=10, choices=STATUS_CHOICES) + performed_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='qc_tests') + reviewed_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='reviewed_qc_tests', null=True, + blank=True) + review_date = models.DateTimeField(null=True, blank=True) + review_notes = models.TextField(blank=True) + corrective_action = models.TextField(blank=True) + next_test_date = models.DateTimeField(null=True, blank=True) + + # CAPA (Corrective and Preventive Action) fields + capa_initiated = models.BooleanField(default=False) + capa_number = models.CharField(max_length=50, blank=True) + capa_priority = models.CharField(max_length=10, choices=[('low', 'Low'), ('medium', 'Medium'), ('high', 'High')], + blank=True) + capa_initiated_by = models.ForeignKey(User, on_delete=models.PROTECT, related_name='initiated_capas', null=True, + blank=True) + capa_date = models.DateTimeField(null=True, blank=True) + capa_assessment = models.TextField(blank=True) + capa_status = models.CharField(max_length=20, + choices=[('open', 'Open'), ('in_progress', 'In Progress'), ('closed', 'Closed')], + blank=True) + + class Meta: + ordering = ['-test_date'] + + def __str__(self): + return f"{self.get_test_type_display()} - {self.test_date.strftime('%Y-%m-%d')} ({self.status})" + diff --git a/blood_bank/tests.py b/blood_bank/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/blood_bank/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/blood_bank/urls.py b/blood_bank/urls.py new file mode 100644 index 00000000..2d2164f9 --- /dev/null +++ b/blood_bank/urls.py @@ -0,0 +1,78 @@ +from django.urls import path +from . import views + +app_name = 'blood_bank' + +urlpatterns = [ + # Dashboard + path('', views.dashboard, name='dashboard'), + + # Donor Management + path('donors/', views.donor_list, name='donor_list'), + path('donors//', views.donor_detail, name='donor_detail'), + path('donors/create/', views.donor_create, name='donor_create'), + path('donors//update/', views.donor_update, name='donor_update'), + path('donors//eligibility/', views.donor_eligibility_check, name='donor_eligibility'), + + # Blood Unit Management + path('units/', views.blood_unit_list, name='blood_unit_list'), + path('units//', views.blood_unit_detail, name='blood_unit_detail'), + path('units/create/', views.blood_unit_create, name='blood_unit_create'), + path('units/create//', views.blood_unit_create, name='blood_unit_create_for_donor'), + + # Blood Testing + path('units//test/', views.blood_test_create, name='blood_test_create'), + path('units//crossmatch//', views.crossmatch_create, name='crossmatch_create'), + + # Blood Requests + path('requests/', views.blood_request_list, name='blood_request_list'), + path('requests//', views.blood_request_detail, name='blood_request_detail'), + path('requests/create/', views.blood_request_create, name='blood_request_create'), + + # Blood Issue and Transfusion + path('requests//issue/', views.blood_issue_create, name='blood_issue_create'), + path('transfusions/', views.transfusion_list, name='transfusion_list'), + path('transfusions//', views.transfusion_detail, name='transfusion_detail'), + path('issues//transfusion/', views.transfusion_create, name='transfusion_create'), + + # Inventory Management + path('inventory/', views.inventory_overview, name='inventory_overview'), + + # Quality Control + path('quality-control/', views.quality_control_list, name='quality_control_list'), + path('quality-control/create/', views.quality_control_create, name='quality_control_create'), + + # Reports + path('reports/', views.reports_dashboard, name='reports_dashboard'), + + # API Endpoints + path('api/blood-availability/', views.api_blood_availability, name='api_blood_availability'), + path('api/donor-search/', views.api_donor_search, name='api_donor_search'), + + # Blood Unit Management APIs + path('api/units//move/', views.api_move_unit, name='api_move_unit'), + path('api/expiry-report/', views.api_expiry_report, name='api_expiry_report'), + + # Blood Request Management APIs + path('api/requests//cancel/', views.api_cancel_request, name='api_cancel_request'), + path('api/check-availability/', views.api_check_availability, name='api_check_availability'), + path('api/urgency-report/', views.api_urgency_report, name='api_urgency_report'), + + # Quality Control APIs + path('api/initiate-capa/', views.api_initiate_capa, name='api_initiate_capa'), + path('api/review-results/', views.api_review_results, name='api_review_results'), + + # Transfusion Management APIs + path('api/record-vital-signs/', views.api_record_vital_signs, name='api_record_vital_signs'), + path('api/transfusions//stop/', views.api_stop_transfusion, name='api_stop_transfusion'), + path('api/transfusions//complete/', views.api_complete_transfusion, + name='api_complete_transfusion'), + + # Inventory Management APIs + path('api/inventory-locations/', views.api_inventory_locations, name='api_inventory_locations'), + path('api/locations//update/', views.api_update_location, name='api_update_location'), + + # Export and Utility APIs + path('api/export-csv/', views.api_export_csv, name='api_export_csv'), +] + diff --git a/blood_bank/views.py b/blood_bank/views.py new file mode 100644 index 00000000..64a01258 --- /dev/null +++ b/blood_bank/views.py @@ -0,0 +1,1228 @@ +from django.shortcuts import render, get_object_or_404, redirect +from django.contrib.auth.decorators import login_required, permission_required +from django.contrib import messages +from django.http import JsonResponse, HttpResponse +from django.core.paginator import Paginator +from django.db.models import Q, Count, Sum, Avg +from django.utils import timezone +from django.views.decorators.http import require_http_methods +from django.contrib.auth.models import User +from datetime import timedelta +import json + +from .models import ( + BloodGroup, Donor, BloodComponent, BloodUnit, BloodTest, CrossMatch, + BloodRequest, BloodIssue, Transfusion, AdverseReaction, InventoryLocation, + QualityControl +) +from .forms import ( + DonorForm, BloodUnitForm, BloodTestForm, CrossMatchForm, BloodRequestForm, + BloodIssueForm, TransfusionForm, AdverseReactionForm, InventoryLocationForm, + QualityControlForm, DonorEligibilityForm, BloodInventorySearchForm +) + + +@login_required +def dashboard(request): + """Blood bank dashboard with key metrics""" + context = { + 'total_donors': Donor.objects.filter(status='active').count(), + 'total_units': BloodUnit.objects.filter(status='available').count(), + 'pending_requests': BloodRequest.objects.filter(status='pending').count(), + 'expiring_soon': BloodUnit.objects.filter( + expiry_date__lte=timezone.now() + timedelta(days=7), + status='available' + ).count(), + 'recent_donations': BloodUnit.objects.filter( + collection_date__gte=timezone.now() - timedelta(days=7) + ).count(), + 'active_transfusions': Transfusion.objects.filter( + status__in=['started', 'in_progress'] + ).count(), + } + + # Blood group distribution + blood_group_stats = BloodUnit.objects.filter(status='available').values( + 'blood_group__abo_type', 'blood_group__rh_factor' + ).annotate(count=Count('id')) + + context['blood_group_stats'] = blood_group_stats + + # Recent activities + context['recent_units'] = BloodUnit.objects.select_related( + 'donor', 'component', 'blood_group' + ).order_by('-collection_date')[:10] + + context['urgent_requests'] = BloodRequest.objects.filter( + urgency='emergency', status__in=['pending', 'processing'] + ).select_related('patient', 'component_requested')[:5] + + return render(request, 'blood_bank/dashboard.html', context) + + +# Donor Management Views +@login_required +def donor_list(request): + """List all donors with filtering and search""" + donors = Donor.objects.select_related('blood_group').order_by('-registration_date') + + # Search functionality + search_query = request.GET.get('search') + if search_query: + donors = donors.filter( + Q(donor_id__icontains=search_query) | + Q(first_name__icontains=search_query) | + Q(last_name__icontains=search_query) | + Q(phone__icontains=search_query) + ) + + # Filter by status + status_filter = request.GET.get('status') + if status_filter: + donors = donors.filter(status=status_filter) + + # Filter by blood group + blood_group_filter = request.GET.get('blood_group') + if blood_group_filter: + donors = donors.filter(blood_group_id=blood_group_filter) + + paginator = Paginator(donors, 25) + page_number = request.GET.get('page') + page_obj = paginator.get_page(page_number) + + context = { + 'page_obj': page_obj, + 'blood_groups': BloodGroup.objects.all(), + 'status_choices': Donor.STATUS_CHOICES, + 'search_query': search_query, + 'status_filter': status_filter, + 'blood_group_filter': blood_group_filter, + } + + return render(request, 'blood_bank/donors/donor_list.html', context) + + +@login_required +def donor_detail(request, donor_id): + """Donor detail view with donation history""" + donor = get_object_or_404(Donor, id=donor_id) + + # Get donation history + blood_units = BloodUnit.objects.filter(donor=donor).select_related( + 'component', 'blood_group' + ).order_by('-collection_date') + + context = { + 'donor': donor, + 'blood_units': blood_units, + 'total_donations': blood_units.count(), + 'last_donation': blood_units.first(), + } + + return render(request, 'blood_bank/donors/donor_detail.html', context) + + +@login_required +@permission_required('blood_bank.add_donor') +def donor_create(request): + """Create new donor""" + if request.method == 'POST': + form = DonorForm(request.POST) + if form.is_valid(): + donor = form.save(commit=False) + donor.created_by = request.user + donor.save() + messages.success(request, f'Donor {donor.donor_id} created successfully.') + return redirect('blood_bank:donor_detail', donor_id=donor.id) + else: + form = DonorForm() + + return render(request, 'blood_bank/donors/donor_form.html', {'form': form, 'title': 'Add New Donor'}) + + +@login_required +@permission_required('blood_bank.change_donor') +def donor_update(request, donor_id): + """Update donor information""" + donor = get_object_or_404(Donor, id=donor_id) + + if request.method == 'POST': + form = DonorForm(request.POST, instance=donor) + if form.is_valid(): + form.save() + messages.success(request, f'Donor {donor.donor_id} updated successfully.') + return redirect('blood_bank:donor_detail', donor_id=donor.id) + else: + form = DonorForm(instance=donor) + + return render(request, 'blood_bank/donors/donor_form.html', { + 'form': form, 'donor': donor, 'title': 'Update Donor' + }) + + +@login_required +def donor_eligibility_check(request, donor_id): + """Check donor eligibility for donation""" + donor = get_object_or_404(Donor, id=donor_id) + + if request.method == 'POST': + form = DonorEligibilityForm(request.POST) + if form.is_valid(): + # Process eligibility check + messages.success(request, f'Donor {donor.donor_id} is eligible for donation.') + return redirect('blood_bank:blood_unit_create', donor_id=donor.id) + else: + form = DonorEligibilityForm() + + context = { + 'donor': donor, + 'form': form, + 'is_eligible': donor.is_eligible_for_donation, + 'next_eligible_date': donor.next_eligible_date, + } + + return render(request, 'blood_bank/donors/donor_eligibility.html', context) + + +# Blood Unit Management Views +@login_required +def blood_unit_list(request): + """List all blood units with filtering""" + form = BloodInventorySearchForm(request.GET) + blood_units = BloodUnit.objects.select_related( + 'donor', 'component', 'blood_group' + ).order_by('-collection_date') + + if form.is_valid(): + if form.cleaned_data['blood_group']: + blood_units = blood_units.filter(blood_group=form.cleaned_data['blood_group']) + + if form.cleaned_data['component']: + blood_units = blood_units.filter(component=form.cleaned_data['component']) + + if form.cleaned_data['status']: + blood_units = blood_units.filter(status=form.cleaned_data['status']) + + if form.cleaned_data['expiry_days']: + expiry_date = timezone.now() + timedelta(days=form.cleaned_data['expiry_days']) + blood_units = blood_units.filter(expiry_date__lte=expiry_date) + + paginator = Paginator(blood_units, 25) + page_number = request.GET.get('page') + page_obj = paginator.get_page(page_number) + + context = { + 'page_obj': page_obj, + 'form': form, + } + + return render(request, 'blood_bank/units/blood_unit_list.html', context) + + +@login_required +def blood_unit_detail(request, unit_id): + """Blood unit detail view with test results""" + blood_unit = get_object_or_404(BloodUnit, id=unit_id) + + # Get test results + tests = BloodTest.objects.filter(blood_unit=blood_unit).select_related('tested_by') + crossmatches = CrossMatch.objects.filter(blood_unit=blood_unit).select_related( + 'recipient', 'tested_by' + ) + + context = { + 'blood_unit': blood_unit, + 'tests': tests, + 'crossmatches': crossmatches, + } + + return render(request, 'blood_bank/units/blood_unit_detail.html', context) + + +@login_required +@permission_required('blood_bank.add_bloodunit') +def blood_unit_create(request, donor_id=None): + """Create new blood unit""" + donor = None + if donor_id: + donor = get_object_or_404(Donor, id=donor_id) + + if request.method == 'POST': + form = BloodUnitForm(request.POST) + if form.is_valid(): + blood_unit = form.save(commit=False) + blood_unit.collected_by = request.user + blood_unit.save() + + # Update donor's last donation date and total donations + if blood_unit.donor: + blood_unit.donor.last_donation_date = blood_unit.collection_date + blood_unit.donor.total_donations += 1 + blood_unit.donor.save() + + messages.success(request, f'Blood unit {blood_unit.unit_number} created successfully.') + return redirect('blood_bank:blood_unit_detail', unit_id=blood_unit.id) + else: + initial_data = {} + if donor: + initial_data['donor'] = donor + initial_data['blood_group'] = donor.blood_group + form = BloodUnitForm(initial=initial_data) + + return render(request, 'blood_bank/units/blood_unit_form.html', { + 'form': form, 'donor': donor, 'title': 'Register Blood Unit' + }) + + +# Blood Request Management Views +@login_required +def blood_request_list(request): + """List all blood requests""" + requests = BloodRequest.objects.select_related( + 'patient', 'requesting_department', 'requesting_physician', 'component_requested' + ).order_by('-request_date') + + # Filter by status + status_filter = request.GET.get('status') + if status_filter: + requests = requests.filter(status=status_filter) + + # Filter by urgency + urgency_filter = request.GET.get('urgency') + if urgency_filter: + requests = requests.filter(urgency=urgency_filter) + + paginator = Paginator(requests, 25) + page_number = request.GET.get('page') + page_obj = paginator.get_page(page_number) + + context = { + 'page_obj': page_obj, + 'status_choices': BloodRequest.STATUS_CHOICES, + 'urgency_choices': BloodRequest.URGENCY_CHOICES, + 'status_filter': status_filter, + 'urgency_filter': urgency_filter, + } + + return render(request, 'blood_bank/requests/blood_request_list.html', context) + + +@login_required +def blood_request_detail(request, request_id): + """Blood request detail view""" + blood_request = get_object_or_404(BloodRequest, id=request_id) + + # Get issued units for this request + issues = BloodIssue.objects.filter(blood_request=blood_request).select_related( + 'blood_unit', 'issued_by', 'issued_to' + ) + + context = { + 'blood_request': blood_request, + 'issues': issues, + } + + return render(request, 'blood_bank/requests/blood_request_detail.html', context) + + +@login_required +@permission_required('blood_bank.add_bloodrequest') +def blood_request_create(request): + """Create new blood request""" + if request.method == 'POST': + form = BloodRequestForm(request.POST) + if form.is_valid(): + blood_request = form.save(commit=False) + blood_request.requesting_physician = request.user + # Generate request number + blood_request.request_number = f"BR{timezone.now().strftime('%Y%m%d')}{BloodRequest.objects.count() + 1:04d}" + blood_request.save() + messages.success(request, f'Blood request {blood_request.request_number} created successfully.') + return redirect('blood_bank:blood_request_detail', request_id=blood_request.id) + else: + form = BloodRequestForm() + + return render(request, 'blood_bank/requests/blood_request_form.html', { + 'form': form, 'title': 'Create Blood Request' + }) + + +# Blood Issue and Transfusion Views +@login_required +@permission_required('blood_bank.add_bloodissue') +def blood_issue_create(request, request_id): + """Issue blood unit for a request""" + blood_request = get_object_or_404(BloodRequest, id=request_id) + + if request.method == 'POST': + form = BloodIssueForm(request.POST) + if form.is_valid(): + blood_issue = form.save(commit=False) + blood_issue.issued_by = request.user + blood_issue.save() + + # Update blood unit status + blood_issue.blood_unit.status = 'issued' + blood_issue.blood_unit.save() + + # Update request status + blood_request.status = 'issued' + blood_request.processed_by = request.user + blood_request.processed_at = timezone.now() + blood_request.save() + + messages.success(request, f'Blood unit {blood_issue.blood_unit.unit_number} issued successfully.') + return redirect('blood_bank:blood_request_detail', request_id=blood_request.id) + else: + # Filter compatible blood units + compatible_units = BloodUnit.objects.filter( + blood_group=blood_request.patient_blood_group, + component=blood_request.component_requested, + status='available' + ) + + form = BloodIssueForm(initial={ + 'blood_request': blood_request, + 'expiry_time': timezone.now() + timedelta(hours=4) + }) + form.fields['blood_unit'].queryset = compatible_units + + context = { + 'form': form, + 'blood_request': blood_request, + 'title': 'Issue Blood Unit' + } + + return render(request, 'blood_bank/issues/blood_issue_form.html', context) + + +@login_required +def transfusion_list(request): + """List all transfusions""" + transfusions = Transfusion.objects.select_related( + 'blood_issue__blood_unit', 'blood_issue__blood_request__patient', + 'administered_by' + ).order_by('-start_time') + + paginator = Paginator(transfusions, 25) + page_number = request.GET.get('page') + page_obj = paginator.get_page(page_number) + + return render(request, 'blood_bank/transfusions/transfusion_list.html', {'page_obj': page_obj}) + + +@login_required +def transfusion_detail(request, transfusion_id): + """Transfusion detail view""" + transfusion = get_object_or_404(Transfusion, id=transfusion_id) + + # Get adverse reactions + reactions = AdverseReaction.objects.filter(transfusion=transfusion) + + context = { + 'transfusion': transfusion, + 'reactions': reactions, + } + + return render(request, 'blood_bank/transfusions/transfusion_detail.html', context) + + +@login_required +@permission_required('blood_bank.add_transfusion') +def transfusion_create(request, issue_id): + """Start transfusion""" + blood_issue = get_object_or_404(BloodIssue, id=issue_id) + + if request.method == 'POST': + form = TransfusionForm(request.POST) + if form.is_valid(): + transfusion = form.save(commit=False) + transfusion.administered_by = request.user + transfusion.save() + + # Update blood unit status + blood_issue.blood_unit.status = 'transfused' + blood_issue.blood_unit.save() + + messages.success(request, 'Transfusion started successfully.') + return redirect('blood_bank:transfusion_detail', transfusion_id=transfusion.id) + else: + form = TransfusionForm(initial={ + 'blood_issue': blood_issue, + 'start_time': timezone.now() + }) + + context = { + 'form': form, + 'blood_issue': blood_issue, + 'title': 'Start Transfusion' + } + + return render(request, 'blood_bank/transfusions/transfusion_form.html', context) + + +# Testing Views +@login_required +@permission_required('blood_bank.add_bloodtest') +def blood_test_create(request, unit_id): + """Add test result for blood unit""" + blood_unit = get_object_or_404(BloodUnit, id=unit_id) + + if request.method == 'POST': + form = BloodTestForm(request.POST) + if form.is_valid(): + test = form.save(commit=False) + test.tested_by = request.user + test.save() + + # Update blood unit status based on test results + if test.result == 'positive' and test.test_type in ['hiv', 'hbv', 'hcv', 'syphilis']: + blood_unit.status = 'discarded' + blood_unit.save() + + messages.success(request, f'Test result for {test.get_test_type_display()} added successfully.') + return redirect('blood_bank:blood_unit_detail', unit_id=blood_unit.id) + else: + form = BloodTestForm(initial={ + 'blood_unit': blood_unit, + 'test_date': timezone.now() + }) + + context = { + 'form': form, + 'blood_unit': blood_unit, + 'title': 'Add Test Result' + } + + return render(request, 'blood_bank/tests/blood_test_form.html', context) + + +@login_required +@permission_required('blood_bank.add_crossmatch') +def crossmatch_create(request, unit_id, patient_id): + """Create crossmatch test""" + blood_unit = get_object_or_404(BloodUnit, id=unit_id) + + if request.method == 'POST': + form = CrossMatchForm(request.POST) + if form.is_valid(): + crossmatch = form.save(commit=False) + crossmatch.tested_by = request.user + crossmatch.save() + + messages.success(request, 'Crossmatch test created successfully.') + return redirect('blood_bank:blood_unit_detail', unit_id=blood_unit.id) + else: + form = CrossMatchForm(initial={ + 'blood_unit': blood_unit, + 'test_date': timezone.now() + }) + + context = { + 'form': form, + 'blood_unit': blood_unit, + 'title': 'Crossmatch Test' + } + + return render(request, 'blood_bank/crossmatch/crossmatch_form.html', context) + + +# Inventory Management Views +@login_required +def inventory_overview(request): + """Blood inventory overview""" + # Get inventory by blood group and component + inventory_data = BloodUnit.objects.filter(status='available').values( + 'blood_group__abo_type', 'blood_group__rh_factor', 'component__name' + ).annotate(count=Count('id')).order_by( + 'blood_group__abo_type', 'blood_group__rh_factor', 'component__name' + ) + + # Get expiring units + expiring_units = BloodUnit.objects.filter( + status='available', + expiry_date__lte=timezone.now() + timedelta(days=7) + ).select_related('component', 'blood_group').order_by('expiry_date') + + # Get location utilization + locations = InventoryLocation.objects.filter(is_active=True) + + context = { + 'inventory_data': inventory_data, + 'expiring_units': expiring_units, + 'locations': locations, + } + + return render(request, 'blood_bank/inventory/inventory_overview.html', context) + + +# Quality Control Views +@login_required +def quality_control_list(request): + """List quality control tests""" + qc_tests = QualityControl.objects.select_related( + 'performed_by', 'reviewed_by' + ).order_by('-test_date') + + paginator = Paginator(qc_tests, 25) + page_number = request.GET.get('page') + page_obj = paginator.get_page(page_number) + + return render(request, 'blood_bank/quality_control/quality_control_list.html', {'page_obj': page_obj}) + + +@login_required +@permission_required('blood_bank.add_qualitycontrol') +def quality_control_create(request): + """Create quality control test""" + if request.method == 'POST': + form = QualityControlForm(request.POST) + if form.is_valid(): + qc_test = form.save(commit=False) + qc_test.performed_by = request.user + qc_test.save() + messages.success(request, 'Quality control test created successfully.') + return redirect('blood_bank:quality_control_list') + else: + form = QualityControlForm(initial={'test_date': timezone.now()}) + + return render(request, 'blood_bank/quality_control/quality_control_form.html', { + 'form': form, 'title': 'Create QC Test' + }) + + +# API Views for AJAX requests +@login_required +@require_http_methods(["GET"]) +def api_blood_availability(request): + """API endpoint for checking blood availability""" + blood_group_id = request.GET.get('blood_group') + component_id = request.GET.get('component') + + if not blood_group_id or not component_id: + return JsonResponse({'error': 'Missing parameters'}, status=400) + + available_units = BloodUnit.objects.filter( + blood_group_id=blood_group_id, + component_id=component_id, + status='available' + ).count() + + return JsonResponse({'available_units': available_units}) + + +@login_required +@require_http_methods(["GET"]) +def api_donor_search(request): + """API endpoint for donor search""" + query = request.GET.get('q', '') + + if len(query) < 2: + return JsonResponse({'donors': []}) + + donors = Donor.objects.filter( + Q(donor_id__icontains=query) | + Q(first_name__icontains=query) | + Q(last_name__icontains=query) + ).filter(status='active')[:10] + + donor_data = [{ + 'id': donor.id, + 'donor_id': donor.donor_id, + 'name': donor.full_name, + 'blood_group': str(donor.blood_group), + 'is_eligible': donor.is_eligible_for_donation + } for donor in donors] + + return JsonResponse({'donors': donor_data}) + + +# Reports Views +@login_required +def reports_dashboard(request): + """Blood bank reports dashboard""" + # Get date range from request + start_date = request.GET.get('start_date') + end_date = request.GET.get('end_date') + + if not start_date: + start_date = timezone.now() - timedelta(days=30) + else: + start_date = timezone.datetime.strptime(start_date, '%Y-%m-%d').date() + + if not end_date: + end_date = timezone.now().date() + else: + end_date = timezone.datetime.strptime(end_date, '%Y-%m-%d').date() + + # Collection statistics + collections = BloodUnit.objects.filter( + collection_date__date__range=[start_date, end_date] + ) + + # Transfusion statistics + transfusions = Transfusion.objects.filter( + start_time__date__range=[start_date, end_date] + ) + + # Adverse reactions + reactions = AdverseReaction.objects.filter( + onset_time__date__range=[start_date, end_date] + ) + + context = { + 'start_date': start_date, + 'end_date': end_date, + 'total_collections': collections.count(), + 'total_transfusions': transfusions.count(), + 'total_reactions': reactions.count(), + 'collections_by_type': collections.values('component__name').annotate(count=Count('id')), + 'transfusions_by_type': transfusions.values( + 'blood_issue__blood_unit__component__name' + ).annotate(count=Count('id')), + 'reactions_by_type': reactions.values('reaction_type').annotate(count=Count('id')), + } + + return render(request, 'blood_bank/reports_dashboard.html', context) + + +# Additional API Views for JavaScript functions +@login_required +@require_http_methods(["POST"]) +def api_move_unit(request, unit_id): + """API endpoint for moving blood unit to different location""" + try: + unit = BloodUnit.objects.get(id=unit_id) + new_location_id = request.POST.get('location_id') + + if not new_location_id: + return JsonResponse({'error': 'Location ID required'}, status=400) + + try: + new_location = InventoryLocation.objects.get(id=new_location_id) + except InventoryLocation.DoesNotExist: + return JsonResponse({'error': 'Invalid location'}, status=400) + + # Check location capacity + current_units = BloodUnit.objects.filter( + current_location=new_location, + status__in=['available', 'quarantined'] + ).count() + + if current_units >= new_location.capacity: + return JsonResponse({'error': 'Location at capacity'}, status=400) + + old_location = unit.current_location + unit.current_location = new_location + unit.save() + + return JsonResponse({ + 'success': True, + 'message': f'Unit moved from {old_location} to {new_location}', + 'new_location': str(new_location) + }) + + except BloodUnit.DoesNotExist: + return JsonResponse({'error': 'Blood unit not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + + +@login_required +@require_http_methods(["GET"]) +def api_expiry_report(request): + """API endpoint for expiry report""" + days_ahead = int(request.GET.get('days', 7)) + + expiring_units = BloodUnit.objects.filter( + expiry_date__lte=timezone.now() + timedelta(days=days_ahead), + status='available' + ).select_related('blood_group', 'component', 'current_location') + + report_data = [] + for unit in expiring_units: + days_to_expiry = (unit.expiry_date - timezone.now().date()).days + report_data.append({ + 'unit_number': unit.unit_number, + 'blood_group': str(unit.blood_group), + 'component': unit.component.get_name_display(), + 'expiry_date': unit.expiry_date.strftime('%Y-%m-%d'), + 'days_to_expiry': days_to_expiry, + 'location': str(unit.current_location), + 'urgency': 'critical' if days_to_expiry <= 2 else 'warning' if days_to_expiry <= 5 else 'normal' + }) + + return JsonResponse({ + 'units': report_data, + 'total_expiring': len(report_data), + 'critical_count': len([u for u in report_data if u['urgency'] == 'critical']), + 'warning_count': len([u for u in report_data if u['urgency'] == 'warning']) + }) + + +@login_required +@require_http_methods(["POST"]) +def api_cancel_request(request, request_id): + """API endpoint for cancelling blood request""" + try: + blood_request = BloodRequest.objects.get(id=request_id) + + if blood_request.status in ['completed', 'cancelled']: + return JsonResponse({'error': 'Request cannot be cancelled'}, status=400) + + cancellation_reason = request.POST.get('reason', '') + if not cancellation_reason: + return JsonResponse({'error': 'Cancellation reason required'}, status=400) + + # Release any reserved units + reserved_units = BloodUnit.objects.filter( + reserved_for_request=blood_request, + status='reserved' + ) + reserved_units.update(status='available', reserved_for_request=None) + + blood_request.status = 'cancelled' + blood_request.cancellation_reason = cancellation_reason + blood_request.cancelled_by = request.user + blood_request.cancellation_date = timezone.now() + blood_request.save() + + return JsonResponse({ + 'success': True, + 'message': 'Blood request cancelled successfully', + 'released_units': reserved_units.count() + }) + + except BloodRequest.DoesNotExist: + return JsonResponse({'error': 'Blood request not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + + +@login_required +@require_http_methods(["GET"]) +def api_check_availability(request): + """API endpoint for real-time blood availability checking""" + blood_group_id = request.GET.get('blood_group') + component_id = request.GET.get('component') + quantity = int(request.GET.get('quantity', 1)) + + if not blood_group_id or not component_id: + return JsonResponse({'error': 'Missing parameters'}, status=400) + + available_units = BloodUnit.objects.filter( + blood_group_id=blood_group_id, + component_id=component_id, + status='available' + ).order_by('expiry_date') + + total_available = available_units.count() + expiring_soon = available_units.filter( + expiry_date__lte=timezone.now() + timedelta(days=7) + ).count() + + # Get units by location + location_breakdown = {} + for unit in available_units: + location = str(unit.current_location) + if location not in location_breakdown: + location_breakdown[location] = 0 + location_breakdown[location] += 1 + + return JsonResponse({ + 'total_available': total_available, + 'requested_quantity': quantity, + 'can_fulfill': total_available >= quantity, + 'expiring_soon': expiring_soon, + 'location_breakdown': location_breakdown, + 'oldest_unit_expiry': available_units.first().expiry_date.strftime( + '%Y-%m-%d') if available_units.exists() else None + }) + + +@login_required +@require_http_methods(["GET"]) +def api_urgency_report(request): + """API endpoint for urgency statistics report""" + # Get requests by urgency level + urgency_stats = BloodRequest.objects.values('urgency').annotate( + count=Count('id'), + pending=Count('id', filter=Q(status='pending')), + completed=Count('id', filter=Q(status='completed')) + ) + + # Get emergency requests from last 24 hours + emergency_requests = BloodRequest.objects.filter( + urgency='emergency', + created_at__gte=timezone.now() - timedelta(hours=24) + ).count() + + # Average response time for urgent requests + urgent_completed = BloodRequest.objects.filter( + urgency__in=['urgent', 'emergency'], + status='completed', + completed_at__isnull=False + ) + + avg_response_times = {} + for request in urgent_completed: + urgency = request.urgency + response_time = (request.completed_at - request.created_at).total_seconds() / 60 # minutes + if urgency not in avg_response_times: + avg_response_times[urgency] = [] + avg_response_times[urgency].append(response_time) + + # Calculate averages + for urgency in avg_response_times: + times = avg_response_times[urgency] + avg_response_times[urgency] = sum(times) / len(times) if times else 0 + + return JsonResponse({ + 'urgency_breakdown': list(urgency_stats), + 'emergency_last_24h': emergency_requests, + 'avg_response_times': avg_response_times, + 'total_pending': BloodRequest.objects.filter(status='pending').count() + }) + + +@login_required +@require_http_methods(["POST"]) +def api_initiate_capa(request): + """API endpoint for initiating CAPA (Corrective and Preventive Action)""" + qc_record_id = request.POST.get('qc_record_id') + priority = request.POST.get('priority', 'medium') + assessment = request.POST.get('assessment', '') + + if not qc_record_id: + return JsonResponse({'error': 'QC record ID required'}, status=400) + + try: + qc_record = QualityControl.objects.get(id=qc_record_id) + + if qc_record.capa_initiated: + return JsonResponse({'error': 'CAPA already initiated'}, status=400) + + # Generate CAPA number + capa_number = f"CAPA-{qc_record.id}-{timezone.now().strftime('%Y%m%d')}" + + qc_record.capa_initiated = True + qc_record.capa_number = capa_number + qc_record.capa_priority = priority + qc_record.capa_initiated_by = request.user + qc_record.capa_date = timezone.now() + qc_record.capa_assessment = assessment + qc_record.capa_status = 'open' + qc_record.save() + + return JsonResponse({ + 'success': True, + 'capa_number': capa_number, + 'message': f'CAPA {capa_number} initiated successfully' + }) + + except QualityControl.DoesNotExist: + return JsonResponse({'error': 'QC record not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + + +@login_required +@require_http_methods(["POST"]) +def api_review_results(request): + """API endpoint for reviewing QC results""" + qc_record_id = request.POST.get('qc_record_id') + review_notes = request.POST.get('review_notes', '') + + if not qc_record_id: + return JsonResponse({'error': 'QC record ID required'}, status=400) + + try: + qc_record = QualityControl.objects.get(id=qc_record_id) + + if qc_record.reviewed_by: + return JsonResponse({'error': 'Results already reviewed'}, status=400) + + qc_record.reviewed_by = request.user + qc_record.review_date = timezone.now() + qc_record.review_notes = review_notes + qc_record.save() + + return JsonResponse({ + 'success': True, + 'reviewed_by': request.user.get_full_name(), + 'review_date': qc_record.review_date.strftime('%Y-%m-%d %H:%M'), + 'message': 'QC results reviewed successfully' + }) + + except QualityControl.DoesNotExist: + return JsonResponse({'error': 'QC record not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + + +@login_required +@require_http_methods(["POST"]) +def api_record_vital_signs(request): + """API endpoint for recording vital signs during transfusion""" + transfusion_id = request.POST.get('transfusion_id') + + if not transfusion_id: + return JsonResponse({'error': 'Transfusion ID required'}, status=400) + + try: + transfusion = Transfusion.objects.get(id=transfusion_id) + + vital_signs = { + 'blood_pressure': request.POST.get('blood_pressure'), + 'heart_rate': request.POST.get('heart_rate'), + 'temperature': request.POST.get('temperature'), + 'respiratory_rate': request.POST.get('respiratory_rate'), + 'oxygen_saturation': request.POST.get('oxygen_saturation'), + 'recorded_at': timezone.now().isoformat(), + 'recorded_by': request.user.get_full_name() + } + + # Add to existing vital signs history + if transfusion.vital_signs_history: + vital_signs_list = json.loads(transfusion.vital_signs_history) + else: + vital_signs_list = [] + + vital_signs_list.append(vital_signs) + transfusion.vital_signs_history = json.dumps(vital_signs_list) + + # Update current vital signs + transfusion.current_blood_pressure = vital_signs['blood_pressure'] + transfusion.current_heart_rate = vital_signs['heart_rate'] + transfusion.current_temperature = vital_signs['temperature'] + transfusion.current_respiratory_rate = vital_signs['respiratory_rate'] + transfusion.current_oxygen_saturation = vital_signs['oxygen_saturation'] + transfusion.last_vitals_check = timezone.now() + + transfusion.save() + + return JsonResponse({ + 'success': True, + 'message': 'Vital signs recorded successfully', + 'vital_signs': vital_signs + }) + + except Transfusion.DoesNotExist: + return JsonResponse({'error': 'Transfusion not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + + +@login_required +@require_http_methods(["POST"]) +def api_stop_transfusion(request): + """API endpoint for emergency stop of transfusion""" + transfusion_id = request.POST.get('transfusion_id') + stop_reason = request.POST.get('stop_reason', '') + + if not transfusion_id: + return JsonResponse({'error': 'Transfusion ID required'}, status=400) + + try: + transfusion = Transfusion.objects.get(id=transfusion_id) + + if transfusion.status not in ['started', 'in_progress']: + return JsonResponse({'error': 'Transfusion cannot be stopped'}, status=400) + + transfusion.status = 'stopped' + transfusion.end_time = timezone.now() + transfusion.stop_reason = stop_reason + transfusion.stopped_by = request.user + + # Calculate volume transfused based on time elapsed + if transfusion.start_time: + elapsed_minutes = (timezone.now() - transfusion.start_time).total_seconds() / 60 + rate_ml_per_min = transfusion.transfusion_rate / 60 if transfusion.transfusion_rate else 0 + volume_transfused = min(elapsed_minutes * rate_ml_per_min, transfusion.blood_unit.volume_ml) + transfusion.volume_transfused = volume_transfused + + transfusion.save() + + return JsonResponse({ + 'success': True, + 'message': 'Transfusion stopped successfully', + 'volume_transfused': transfusion.volume_transfused, + 'stop_time': transfusion.end_time.strftime('%Y-%m-%d %H:%M:%S') + }) + + except Transfusion.DoesNotExist: + return JsonResponse({'error': 'Transfusion not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + + +@login_required +@require_http_methods(["POST"]) +def api_complete_transfusion(request): + """API endpoint for completing transfusion""" + transfusion_id = request.POST.get('transfusion_id') + completion_notes = request.POST.get('completion_notes', '') + + if not transfusion_id: + return JsonResponse({'error': 'Transfusion ID required'}, status=400) + + try: + transfusion = Transfusion.objects.get(id=transfusion_id) + + if transfusion.status not in ['started', 'in_progress']: + return JsonResponse({'error': 'Transfusion cannot be completed'}, status=400) + + transfusion.status = 'completed' + transfusion.end_time = timezone.now() + transfusion.completion_notes = completion_notes + transfusion.completed_by = request.user + + # Set volume transfused to full unit if not already set + if not transfusion.volume_transfused: + transfusion.volume_transfused = transfusion.blood_unit.volume_ml + + transfusion.save() + + # Update blood unit status + blood_unit = transfusion.blood_unit + blood_unit.status = 'transfused' + blood_unit.save() + + return JsonResponse({ + 'success': True, + 'message': 'Transfusion completed successfully', + 'completion_time': transfusion.end_time.strftime('%Y-%m-%d %H:%M:%S'), + 'total_volume': transfusion.volume_transfused + }) + + except Transfusion.DoesNotExist: + return JsonResponse({'error': 'Transfusion not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + + +@login_required +@require_http_methods(["GET"]) +def api_export_csv(request): + """API endpoint for exporting data to CSV""" + import csv + from django.http import HttpResponse + + export_type = request.GET.get('type', 'donors') + + response = HttpResponse(content_type='text/csv') + response['Content-Disposition'] = f'attachment; filename="{export_type}_{timezone.now().strftime("%Y%m%d")}.csv"' + + writer = csv.writer(response) + + if export_type == 'donors': + writer.writerow(['Donor ID', 'Name', 'Blood Group', 'Status', 'Last Donation', 'Total Donations']) + donors = Donor.objects.select_related('blood_group').all() + for donor in donors: + last_donation = donor.blood_units.order_by('-collection_date').first() + writer.writerow([ + donor.donor_id, + donor.full_name, + str(donor.blood_group), + donor.get_status_display(), + last_donation.collection_date.strftime('%Y-%m-%d') if last_donation else 'Never', + donor.blood_units.count() + ]) + + elif export_type == 'units': + writer.writerow( + ['Unit Number', 'Blood Group', 'Component', 'Status', 'Collection Date', 'Expiry Date', 'Location']) + units = BloodUnit.objects.select_related('blood_group', 'component', 'current_location').all() + for unit in units: + writer.writerow([ + unit.unit_number, + str(unit.blood_group), + unit.component.get_name_display(), + unit.get_status_display(), + unit.collection_date.strftime('%Y-%m-%d'), + unit.expiry_date.strftime('%Y-%m-%d'), + str(unit.current_location) + ]) + + elif export_type == 'requests': + writer.writerow( + ['Request Number', 'Patient', 'Blood Group', 'Component', 'Quantity', 'Urgency', 'Status', 'Created Date']) + requests = BloodRequest.objects.select_related('patient', 'component').all() + for req in requests: + writer.writerow([ + req.request_number, + req.patient.full_name, + str(req.patient.blood_group), + req.component.get_name_display(), + req.quantity_requested, + req.get_urgency_display(), + req.get_status_display(), + req.created_at.strftime('%Y-%m-%d %H:%M') + ]) + + return response + + +@login_required +@require_http_methods(["GET"]) +def api_inventory_locations(request): + """API endpoint for inventory location management""" + locations = InventoryLocation.objects.all() + + location_data = [] + for location in locations: + current_units = BloodUnit.objects.filter( + current_location=location, + status__in=['available', 'quarantined'] + ).count() + + location_data.append({ + 'id': location.id, + 'name': location.name, + 'location_type': location.get_location_type_display(), + 'capacity': location.capacity, + 'current_units': current_units, + 'available_space': location.capacity - current_units, + 'temperature': location.temperature, + 'is_active': location.is_active, + 'utilization_percent': round((current_units / location.capacity) * 100, 1) if location.capacity > 0 else 0 + }) + + return JsonResponse({'locations': location_data}) + + +@login_required +@require_http_methods(["POST"]) +def api_update_location(request, location_id): + """API endpoint for updating inventory location""" + try: + location = InventoryLocation.objects.get(id=location_id) + + # Update fields if provided + if 'temperature' in request.POST: + location.temperature = float(request.POST['temperature']) + + if 'is_active' in request.POST: + location.is_active = request.POST['is_active'].lower() == 'true' + + if 'notes' in request.POST: + location.notes = request.POST['notes'] + + location.save() + + return JsonResponse({ + 'success': True, + 'message': 'Location updated successfully', + 'location': { + 'id': location.id, + 'name': location.name, + 'temperature': location.temperature, + 'is_active': location.is_active + } + }) + + except InventoryLocation.DoesNotExist: + return JsonResponse({'error': 'Location not found'}, status=404) + except Exception as e: + return JsonResponse({'error': str(e)}, status=500) + diff --git a/core/templatetags/__pycache__/custom_filters.cpython-312.pyc b/core/templatetags/__pycache__/custom_filters.cpython-312.pyc index 35fcc78a..a33beab2 100644 Binary files a/core/templatetags/__pycache__/custom_filters.cpython-312.pyc and b/core/templatetags/__pycache__/custom_filters.cpython-312.pyc differ diff --git a/core/templatetags/custom_filters.py b/core/templatetags/custom_filters.py index 6a7871a0..81a20d89 100644 --- a/core/templatetags/custom_filters.py +++ b/core/templatetags/custom_filters.py @@ -3,6 +3,11 @@ from django.db.models import Sum, F from decimal import Decimal import operator from functools import reduce +from django.utils import timezone +from datetime import datetime, date +from dateutil.relativedelta import relativedelta # pip install python-dateutil +import math + register = template.Library() @@ -320,3 +325,112 @@ def calculate_stock_value(inventory_items): return Decimal('0.00') + + + +def _to_datetime(d): + """Coerce date or datetime to an aware datetime in current timezone.""" + if isinstance(d, datetime): + dt = d + elif isinstance(d, date): + dt = datetime(d.year, d.month, d.day) + else: + return None + if timezone.is_naive(dt): + dt = timezone.make_aware(dt, timezone.get_current_timezone()) + return dt + + +def _age_breakdown(dob, now=None): + """ + Returns (value:int, unit:str) choosing one of hours/days/months/years. + Auto logic: + - < 48 hours -> hours + - < 60 days -> days + - < 24 months -> months + - otherwise -> years + """ + dt_dob = _to_datetime(dob) + if not dt_dob: + return (0, "days") + + now = now or timezone.now() + if dt_dob > now: # future DOB guard + return (0, "days") + + # Raw time diff + delta = now - dt_dob + total_hours = delta.total_seconds() / 3600.0 + total_days = delta.days + + # Months/years via relativedelta for calendar accuracy + rd = relativedelta(now, dt_dob) + total_months = rd.years * 12 + rd.months + years = rd.years + + if total_hours < 24: + return (int(math.floor(total_hours)), "hours") + if total_days < 30: + return (int(total_days), "days") + if total_months < 12: + return (int(total_months), "months") + return (int(years), "years") + + +def _age_in_unit(dob, unit, now=None): + """Force a specific unit: hours/days/months/years.""" + dt_dob = _to_datetime(dob) + if not dt_dob: + return 0, unit + + now = now or timezone.now() + if dt_dob > now: + return 0, unit + + delta = now - dt_dob + if unit == "hours": + val = int(delta.total_seconds() // 3600) + elif unit == "days": + val = delta.days + elif unit == "months": + rd = relativedelta(now, dt_dob) + val = rd.years * 12 + rd.months + elif unit == "years": + rd = relativedelta(now, dt_dob) + val = rd.years + else: + # Fallback to auto if unit invalid + return _age_breakdown(dob, now) + return val, unit + + +@register.filter +def age_label(dob, mode="auto"): + """ + Returns a human-friendly string like: "12 hours", "17 days", "3 months", "5 years". + Usage: + {{ person.dob|age_label }} -> auto unit + {{ person.dob|age_label:"months" }} -> force months + """ + if mode in ("hours", "days", "months", "years"): + value, unit = _age_in_unit(dob, mode) + else: + value, unit = _age_breakdown(dob) + return f"{value} {unit}" + + +@register.simple_tag +def age_parts(dob, mode="auto"): + """ + Returns a dict with separate value and unit for flexible rendering. + Usage: + {% age_parts person.dob as a %} + {{ a.value }} {{ a.unit }} + # Or force a unit: + {% age_parts person.dob "months" as a %} + """ + if mode in ("hours", "days", "months", "years"): + value, unit = _age_in_unit(dob, mode) + else: + value, unit = _age_breakdown(dob) + return {"value": value, "unit": unit} \ No newline at end of file diff --git a/db.sqlite3 b/db.sqlite3 index 254681eb..1bbada67 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/hospital_management/__pycache__/settings.cpython-312.pyc b/hospital_management/__pycache__/settings.cpython-312.pyc index 721430c8..dbcf00eb 100644 Binary files a/hospital_management/__pycache__/settings.cpython-312.pyc and b/hospital_management/__pycache__/settings.cpython-312.pyc differ diff --git a/hospital_management/__pycache__/urls.cpython-312.pyc b/hospital_management/__pycache__/urls.cpython-312.pyc index 940f918e..c9378f24 100644 Binary files a/hospital_management/__pycache__/urls.cpython-312.pyc and b/hospital_management/__pycache__/urls.cpython-312.pyc differ diff --git a/hospital_management/settings.py b/hospital_management/settings.py index ada39acb..d5b04d12 100644 --- a/hospital_management/settings.py +++ b/hospital_management/settings.py @@ -52,6 +52,7 @@ THIRD_PARTY_APPS = [ LOCAL_APPS = [ 'core', 'accounts', + 'blood_bank', 'patients', 'appointments', 'inpatients', diff --git a/hospital_management/urls.py b/hospital_management/urls.py index bd029cb6..810507cc 100644 --- a/hospital_management/urls.py +++ b/hospital_management/urls.py @@ -37,6 +37,7 @@ urlpatterns += i18n_patterns( path('admin/', admin.site.urls), path('', include('core.urls')), path('accounts/', include('accounts.urls')), + path('blood-bank/', include('blood_bank.urls')), path('patients/', include('patients.urls')), path('appointments/', include('appointments.urls')), path('inpatients/', include('inpatients.urls')), diff --git a/inpatients/__pycache__/models.cpython-312.pyc b/inpatients/__pycache__/models.cpython-312.pyc index 3151c5a7..f8cb56af 100644 Binary files a/inpatients/__pycache__/models.cpython-312.pyc and b/inpatients/__pycache__/models.cpython-312.pyc differ diff --git a/inpatients/migrations/0004_bed_is_active_bed_is_active_out_of_service_and_more.py b/inpatients/migrations/0004_bed_is_active_bed_is_active_out_of_service_and_more.py new file mode 100644 index 00000000..8e22d5bb --- /dev/null +++ b/inpatients/migrations/0004_bed_is_active_bed_is_active_out_of_service_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 5.2.4 on 2025-09-03 15:57 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("inpatients", "0003_alter_bed_bed_position"), + ] + + operations = [ + migrations.AddField( + model_name="bed", + name="is_active", + field=models.BooleanField(default=True, help_text="Active status"), + ), + migrations.AddField( + model_name="bed", + name="is_active_out_of_service", + field=models.BooleanField(default=True), + ), + migrations.AddField( + model_name="bed", + name="is_operational", + field=models.BooleanField(default=True, help_text="Operational status"), + ), + ] diff --git a/inpatients/migrations/__pycache__/0004_bed_is_active_bed_is_active_out_of_service_and_more.cpython-312.pyc b/inpatients/migrations/__pycache__/0004_bed_is_active_bed_is_active_out_of_service_and_more.cpython-312.pyc new file mode 100644 index 00000000..d4470ef8 Binary files /dev/null and b/inpatients/migrations/__pycache__/0004_bed_is_active_bed_is_active_out_of_service_and_more.cpython-312.pyc differ diff --git a/inpatients/models.py b/inpatients/models.py index 5db2e8a2..04ac18af 100644 --- a/inpatients/models.py +++ b/inpatients/models.py @@ -340,7 +340,17 @@ class Bed(models.Model): default='STANDARD', help_text='Type of bed' ) - + is_operational = models.BooleanField( + default=True, + help_text='Operational status' + ) + is_active = models.BooleanField( + default=True, + help_text='Active status' + ) + is_active_out_of_service = models.BooleanField( + default=True, + ) room_type = models.CharField( max_length=20, choices=ROOM_TYPE_CHOICES, diff --git a/logs/hospital_management.log b/logs/hospital_management.log index e73624b3..760022f4 100644 --- a/logs/hospital_management.log +++ b/logs/hospital_management.log @@ -121558,3 +121558,55998 @@ INFO 2025-09-02 15:12:09,809 basehttp 81907 6159511552 "GET /en/laboratory/order INFO 2025-09-02 15:12:09,847 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 INFO 2025-09-02 15:13:09,851 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 INFO 2025-09-02 15:14:09,860 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:15:09,863 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:16:09,867 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:17:09,866 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:18:09,869 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:19:09,869 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:20:09,866 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:21:09,875 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:22:09,877 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:23:09,880 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:24:09,885 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:25:09,887 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:26:10,315 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:27:12,312 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:29:04,313 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:31:04,327 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:33:04,298 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:34:04,304 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:35:04,303 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:36:04,346 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:37:04,343 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:38:04,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:39:04,354 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:40:04,348 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:41:04,354 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:42:04,360 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:43:04,362 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:44:04,363 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:45:04,366 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:46:04,366 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:47:05,333 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:48:07,334 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:50:04,338 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:52:04,343 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:53:04,345 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:55:04,345 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:56:04,341 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:58:04,336 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 15:59:04,342 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:01:04,337 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:02:04,341 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:04:04,332 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:05:04,337 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:07:04,332 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:08:04,334 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:10:04,331 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:11:04,334 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:13:04,329 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:14:04,333 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:16:04,327 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:17:04,329 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:19:04,323 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:20:04,330 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:21:44,949 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:22:45,322 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:23:47,321 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:25:04,318 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:26:04,332 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:27:04,324 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:29:04,315 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:30:04,319 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:31:04,318 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:33:04,315 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:34:04,314 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:35:04,317 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:36:04,316 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:38:04,334 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:40:04,326 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:41:04,328 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:43:04,327 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:44:04,326 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:45:04,330 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:46:04,331 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:48:04,326 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:49:04,322 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:50:04,325 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:52:04,359 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:53:04,358 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:54:04,361 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:55:04,360 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:57:04,356 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:58:04,369 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 16:59:04,361 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:01:04,357 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:02:04,361 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:03:04,354 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:05:04,357 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:06:04,356 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:07:04,340 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:08:04,337 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:10:04,331 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:11:04,333 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:13:04,334 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:14:04,334 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:16:04,332 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:17:04,334 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:19:04,336 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:20:04,332 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:21:17,426 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:22:17,425 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:23:17,429 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:24:17,433 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:25:17,436 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:26:17,427 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:27:17,436 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:28:17,442 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:29:17,442 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:30:17,443 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:31:17,445 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:32:18,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:33:20,351 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:35:04,355 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:37:04,355 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:39:04,356 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:40:04,351 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:42:04,352 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:43:04,353 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:45:04,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:46:04,351 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:47:04,348 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:49:04,347 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:50:04,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:52:04,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:53:04,348 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:54:04,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:55:04,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:57:04,347 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 17:58:04,351 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:00:04,352 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:01:04,350 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:03:04,343 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:04:05,355 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:05:07,344 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:07:04,349 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:08:04,344 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:09:04,347 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:11:04,348 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:13:04,344 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:14:04,346 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:16:04,340 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:18:04,346 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:20:04,344 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:22:04,343 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:23:04,344 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:25:04,346 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:27:04,341 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:28:04,346 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:29:04,343 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:31:04,339 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:33:04,340 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:34:04,356 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:35:04,371 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:37:04,337 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 18:39:04,362 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 19:36:37,711 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 19:59:37,047 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:01:37,032 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:02:37,032 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:03:37,033 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:07:07,399 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:11:03,300 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:12:33,636 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:14:28,031 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:20:35,181 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:22:55,413 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:30:41,648 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:33:54,630 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:35:59,047 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:36:59,038 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:38:58,958 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:39:58,955 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:41:58,957 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:42:58,958 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:44:58,954 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:46:58,952 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:48:58,949 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:49:58,952 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:51:58,960 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:52:58,942 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:54:58,939 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:56:58,935 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:57:58,939 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 20:59:58,931 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:00:58,935 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:02:58,933 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:04:58,926 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:05:58,933 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:06:58,930 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:08:58,941 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:09:58,941 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:11:58,937 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:12:58,938 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:14:58,938 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:15:58,940 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:17:59,037 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:18:59,030 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:19:59,035 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:21:59,025 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:22:59,035 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:24:59,033 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:25:59,033 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:27:59,036 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:29:59,039 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:31:59,033 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:32:58,944 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:33:58,964 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:38:50,318 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:51:25,717 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:52:25,723 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:53:25,724 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:55:25,722 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:56:25,751 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 21:58:25,717 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:00:25,713 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:02:25,712 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:04:25,712 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:05:25,713 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:07:25,803 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:09:25,799 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:10:25,804 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:12:25,792 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:13:25,807 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:14:25,805 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:16:25,805 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:17:25,858 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:19:25,809 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:21:25,816 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:22:25,830 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:23:25,844 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:24:25,850 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:26:25,841 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:27:25,843 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:29:25,842 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:30:25,842 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:32:25,845 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:33:25,843 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:34:25,846 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:36:25,847 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:37:25,812 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:39:25,755 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:40:25,768 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:42:25,770 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:43:25,770 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:45:25,763 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:46:25,767 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:48:25,765 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:49:25,765 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:51:25,760 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-02 22:52:52,092 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 22:52:52,100 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 22:52:52,122 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 22:52:52,125 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 22:53:52,082 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 22:53:52,087 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 22:53:52,107 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 22:53:52,109 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 22:55:52,086 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 22:55:52,096 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 22:55:52,116 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 22:55:52,118 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 22:56:52,087 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 22:56:52,097 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 22:56:52,117 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 22:56:52,119 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 22:58:52,094 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 22:58:52,101 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 22:58:52,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 22:58:52,123 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 22:59:52,086 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 22:59:52,095 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 22:59:52,115 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 22:59:52,117 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:01:52,079 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:01:52,087 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:01:52,104 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:01:52,109 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:02:52,086 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:02:52,095 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:02:52,115 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:02:52,119 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:04:52,081 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:04:52,091 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:04:52,111 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:04:52,113 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:05:52,086 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:05:52,094 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:05:52,117 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:05:52,119 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:07:52,081 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:07:52,092 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:07:52,114 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:07:52,115 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:08:52,084 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:08:52,094 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:08:52,118 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:08:52,120 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:10:52,078 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:10:52,087 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:10:52,106 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:10:52,108 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:11:52,081 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:11:52,088 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:11:52,110 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:11:52,112 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:13:52,082 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:13:52,091 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:13:52,112 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:13:52,114 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:15:52,077 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:15:52,088 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:15:52,109 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:15:52,111 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:16:52,080 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:16:52,089 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:16:52,109 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:16:52,110 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:18:52,081 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:18:52,090 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:18:52,112 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:18:52,113 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:19:52,082 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:19:52,091 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:19:52,111 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:19:52,113 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:21:52,077 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:21:52,086 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:21:52,108 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:21:52,110 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:23:51,971 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:23:51,981 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:23:51,996 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:23:51,998 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:24:51,969 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:24:51,977 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:24:51,997 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:24:51,999 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:25:51,972 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:25:51,981 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:25:52,001 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:25:52,003 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:27:51,970 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:27:51,979 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:27:52,002 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:27:52,004 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:28:51,968 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:28:51,975 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:28:51,995 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:28:51,996 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:29:51,970 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:29:51,978 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:29:52,000 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:29:52,001 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:31:51,963 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:31:51,972 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:31:51,993 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:31:51,995 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:33:51,960 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:33:51,977 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:33:51,999 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:33:52,001 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:34:51,959 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:34:51,968 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:34:51,987 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:34:51,989 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:35:51,959 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:35:51,967 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:35:51,991 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:35:51,992 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:37:51,949 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:37:51,956 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:37:51,971 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:37:51,972 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:38:51,960 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:38:51,969 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:38:51,990 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:38:51,991 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:40:51,954 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:40:51,963 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:40:51,982 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:40:51,984 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:41:51,949 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:41:51,956 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:41:51,974 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:41:51,975 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:42:51,954 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:42:51,963 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:42:51,985 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:42:51,986 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:44:51,950 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:44:51,961 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:44:51,984 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:44:51,986 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:46:51,946 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:46:51,955 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:46:51,974 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:46:51,976 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:47:51,948 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:47:51,956 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:47:51,976 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:47:51,978 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:48:51,947 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:48:51,956 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:48:51,977 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:48:51,979 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:50:51,943 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:50:51,952 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:50:51,974 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:50:51,976 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:51:51,943 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:51:51,947 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:51:51,965 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:51:51,967 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-02 23:55:36,247 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-02 23:55:36,259 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-02 23:55:36,274 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-02 23:55:36,276 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:00:31,504 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:00:31,517 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:00:31,534 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:00:31,535 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:03:32,527 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:03:32,536 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:03:32,556 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:03:32,557 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:05:32,483 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:05:32,492 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:05:32,514 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:05:32,515 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:06:32,490 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:06:32,499 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:06:32,518 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:06:32,520 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:07:32,492 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:07:32,500 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:07:32,520 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:07:32,521 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:09:32,483 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:09:32,493 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:09:32,514 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:09:32,516 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:10:32,411 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:10:32,421 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:10:32,442 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:10:32,444 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:12:32,421 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:12:32,427 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:12:32,446 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:12:32,448 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:14:32,409 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:14:32,419 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:14:32,439 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:14:32,442 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:16:32,409 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:16:32,420 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:16:32,442 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:16:32,444 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:17:32,409 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:17:32,419 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:17:32,439 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:17:32,440 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:19:32,417 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:19:32,426 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:19:32,444 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:19:32,446 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:20:32,409 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:20:32,418 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:20:32,440 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:20:32,442 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:22:32,415 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:22:32,424 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:22:32,444 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:22:32,446 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:24:32,412 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:24:32,420 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:24:32,437 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:24:32,439 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:25:32,405 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:25:32,414 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:25:32,434 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:25:32,436 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:27:32,505 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:27:32,514 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:27:32,534 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:27:32,535 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:28:32,522 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:28:32,531 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:28:32,551 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:28:32,553 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:30:32,508 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:30:32,517 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:30:32,536 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:30:32,537 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:32:32,525 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:32:32,534 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:32:32,553 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:32:32,554 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:34:32,517 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:34:32,525 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:34:32,546 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:34:32,548 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:35:32,511 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:35:32,518 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:35:32,537 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:35:32,538 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:37:32,522 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:37:32,530 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:37:32,548 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:37:32,549 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:39:32,517 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:39:32,524 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:39:32,541 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:39:32,543 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:40:32,514 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:40:32,523 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:40:32,542 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:40:32,544 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:42:32,519 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:42:32,528 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:42:32,548 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:42:32,550 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:44:32,530 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:44:32,539 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:44:32,559 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:44:32,561 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:45:32,525 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:45:32,534 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:45:32,549 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:45:32,550 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:47:32,517 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:47:32,527 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:47:32,548 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:47:32,550 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:48:32,526 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:48:32,534 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:48:32,555 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:48:32,556 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:50:32,534 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:50:32,542 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:50:32,563 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:50:32,564 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:52:32,529 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:52:32,540 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:52:32,560 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:52:32,562 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:54:32,523 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:54:32,536 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:54:32,556 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:54:32,557 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:55:32,528 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:55:32,537 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:55:32,557 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:55:32,559 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:56:32,571 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:56:32,580 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:56:32,601 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:56:32,603 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:58:32,508 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:58:32,514 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:58:32,529 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:58:32,530 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 00:59:32,510 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 00:59:32,520 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 00:59:32,543 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 00:59:32,544 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:00:32,512 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:00:32,517 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:00:32,534 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:00:32,536 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:01:32,514 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:01:32,523 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:01:32,537 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:01:32,539 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:05:02,950 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:05:02,958 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:05:02,977 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:05:02,979 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:15:00,286 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:15:00,296 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:15:00,317 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:15:00,319 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:18:21,364 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:18:21,371 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:18:21,391 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:18:21,393 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:21:13,060 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:21:13,069 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:21:13,090 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:21:13,092 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:23:13,059 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:23:13,068 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:23:13,088 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:23:13,089 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:25:13,064 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:25:13,072 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:25:13,092 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:25:13,094 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:26:13,071 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:26:13,082 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:26:13,099 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:26:13,101 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:27:13,067 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:27:13,075 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:27:13,093 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:27:13,095 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:29:13,063 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:29:13,074 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:29:13,094 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:29:13,096 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:30:13,066 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:30:13,076 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:30:13,097 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:30:13,099 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:31:13,068 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:31:13,072 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:31:13,090 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:31:13,092 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:33:13,066 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:33:13,075 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:33:13,096 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:33:13,098 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:35:13,080 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:35:13,088 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:35:13,109 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:35:13,110 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:37:13,086 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:37:13,093 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:37:13,112 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:37:13,113 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:38:13,089 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:38:13,098 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:38:13,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:38:13,122 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:40:13,089 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:40:13,100 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:40:13,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:40:13,123 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:41:13,089 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:41:13,098 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:41:13,119 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:41:13,120 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:42:13,093 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:42:13,103 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:42:13,123 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:42:13,125 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:44:13,098 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:44:13,107 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:44:13,130 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:44:13,132 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:46:13,096 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:46:13,105 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:46:13,126 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:46:13,128 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:48:13,098 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:48:13,108 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:48:13,130 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:48:13,132 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:49:13,097 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:49:13,105 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:49:13,124 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:49:13,126 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:50:13,098 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:50:13,105 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:50:13,126 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:50:13,128 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:52:13,108 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:52:13,118 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:52:13,140 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:52:13,141 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:54:13,108 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:54:13,118 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:54:13,139 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:54:13,141 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:55:13,111 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:55:13,125 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:55:13,141 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:55:13,142 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:56:13,110 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:56:13,114 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:56:13,132 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:56:13,134 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:58:13,113 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:58:13,123 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:58:13,144 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:58:13,146 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 01:59:13,116 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 01:59:13,125 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 01:59:13,147 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 01:59:13,149 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:01:13,112 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:01:13,119 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:01:13,137 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:01:13,139 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:03:13,115 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:03:13,124 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:03:13,144 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:03:13,146 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:05:13,122 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:05:13,132 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:05:13,152 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:05:13,154 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:07:13,101 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:07:13,110 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:07:13,130 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:07:13,132 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:08:13,093 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:08:13,099 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:08:13,114 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:08:13,116 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:10:13,098 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:10:13,104 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:10:13,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:10:13,123 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:12:13,097 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:12:13,105 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:12:13,124 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:12:13,126 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:13:13,102 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:13:13,110 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:13:13,130 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:13:13,132 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:14:13,104 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:14:13,112 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:14:13,136 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:14:13,138 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:16:13,104 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:16:13,114 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:16:13,135 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:16:13,137 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:18:13,106 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:18:13,117 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:18:13,139 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:18:13,142 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:19:13,103 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:19:13,110 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:19:13,128 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:19:13,129 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:21:13,101 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:21:13,107 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:21:13,124 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:21:13,126 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:26:33,300 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:26:33,313 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:26:33,329 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:26:33,330 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:34:13,149 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:34:13,160 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:34:13,181 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:34:13,183 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:36:47,888 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:36:47,897 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:36:47,919 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:36:47,922 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:46:58,706 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:46:58,717 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:46:58,730 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:46:58,732 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 02:57:03,267 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 02:57:03,277 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 02:57:03,298 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 02:57:03,300 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:04:39,600 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:04:39,609 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:04:39,628 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:04:39,630 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:06:56,898 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:06:56,908 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:06:56,926 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:06:56,928 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:16:56,076 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:16:56,086 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:16:56,108 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:16:56,110 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:17:56,078 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:17:56,088 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:17:56,108 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:17:56,110 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:19:55,908 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:19:55,918 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:19:55,939 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:19:55,940 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:20:55,913 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:20:55,921 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:20:55,941 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:20:55,943 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:21:55,911 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:21:55,921 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:21:55,942 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:21:55,944 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:23:55,914 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:23:55,918 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:23:55,937 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:23:55,939 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:25:55,904 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:25:55,914 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:25:55,936 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:25:55,938 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:27:55,911 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:27:55,919 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:27:55,939 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:27:55,941 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:28:55,910 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:28:55,919 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:28:55,940 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:28:55,942 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:30:55,902 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:30:55,909 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:30:55,926 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:30:55,928 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:31:55,910 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:31:55,915 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:31:55,930 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:31:55,931 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:32:55,917 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:32:55,924 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:32:55,945 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:32:55,946 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:34:55,822 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:34:55,830 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:34:55,851 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:34:55,852 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:35:55,815 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:35:55,825 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:35:55,848 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:35:55,849 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:37:55,819 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:37:55,829 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:37:55,849 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:37:55,851 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:39:55,816 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:39:55,843 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:39:55,864 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:39:55,865 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:41:55,805 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:41:55,815 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:41:55,836 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:41:55,839 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:43:55,800 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:43:55,812 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:43:55,833 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:43:55,852 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:44:55,798 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:44:55,808 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:44:55,863 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:44:55,865 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:46:55,794 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:46:55,799 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:46:55,813 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:46:55,815 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:48:55,794 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:48:55,804 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:48:55,824 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:48:55,842 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:50:55,769 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:50:55,777 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:50:55,797 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:50:55,799 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:51:55,744 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:51:55,753 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:51:55,775 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:51:55,776 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:52:55,744 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:52:55,755 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:52:55,776 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:52:55,777 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:53:55,855 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:53:55,917 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:53:55,941 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:53:55,943 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:55:55,733 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:55:55,743 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:55:55,764 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:55:55,765 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:56:55,732 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:56:55,741 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:56:55,762 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:56:55,764 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:57:55,732 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:57:55,739 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:57:55,759 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:57:55,761 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 03:59:55,734 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 03:59:55,738 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 03:59:55,752 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 03:59:55,795 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:01:55,722 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:01:55,732 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:01:55,753 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:01:55,755 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:02:55,721 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:02:55,729 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:02:55,749 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:02:55,750 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:04:55,729 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:04:55,738 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:04:55,757 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:04:55,908 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:05:55,732 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:05:55,741 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:05:55,761 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:05:55,762 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:06:55,736 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:06:55,744 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:06:55,766 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:06:55,767 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:08:55,715 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:08:55,720 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:08:55,736 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:08:55,738 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:09:55,701 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:09:55,709 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:09:55,732 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:09:55,734 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:10:55,745 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:10:55,753 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:10:55,774 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:10:55,776 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:12:55,696 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:12:55,705 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:12:55,727 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:12:55,729 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:13:55,697 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:13:55,708 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:13:55,730 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:13:55,732 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:15:55,702 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:15:55,711 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:15:55,732 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:15:55,734 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:16:55,700 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:16:55,708 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:16:55,727 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:16:55,729 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:21:14,235 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:21:14,244 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:21:14,263 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:21:14,264 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:28:02,845 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:28:02,855 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:28:02,875 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:28:02,877 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:29:10,967 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:29:10,971 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:29:10,989 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:29:10,991 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:35:41,017 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:35:41,025 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:35:41,045 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:35:41,047 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:45:39,729 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:45:39,736 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:45:39,754 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:45:39,756 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:51:44,976 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:51:44,986 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:51:45,006 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:51:45,008 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:53:44,979 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:53:44,988 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:53:45,011 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:53:45,012 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:55:44,972 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:55:44,979 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:55:44,999 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:55:45,000 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:57:44,977 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:57:44,986 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:57:45,007 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:57:45,008 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:58:44,968 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:58:44,977 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:58:44,996 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:58:44,998 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 04:59:44,967 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 04:59:44,974 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 04:59:44,994 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 04:59:44,996 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:01:44,965 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:01:44,976 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:01:44,996 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:01:44,998 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:03:44,960 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:03:44,970 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:03:44,993 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:03:44,995 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:04:44,954 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:04:44,959 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:04:44,979 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:04:44,981 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:05:44,963 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:05:44,974 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:05:44,995 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:05:44,997 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:07:44,965 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:07:44,975 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:07:44,996 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:07:44,998 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:09:44,961 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:09:44,971 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:09:44,992 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:09:44,994 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:10:44,961 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:10:44,969 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:10:44,988 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:10:44,990 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:11:44,961 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:11:44,969 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:11:44,988 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:11:44,990 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:12:44,961 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:12:44,970 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:12:44,991 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:12:45,023 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:13:44,961 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:13:44,971 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:13:44,991 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:13:44,993 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:15:44,954 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:15:44,963 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:15:44,992 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:15:44,995 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:16:44,952 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:16:44,961 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:16:44,981 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:16:44,983 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:17:44,954 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:17:44,962 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:17:44,982 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:17:44,984 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:19:44,950 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:19:44,957 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:19:44,977 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:19:44,979 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:21:44,968 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:21:44,974 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:21:44,989 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:21:44,991 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:22:44,976 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:22:44,983 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:22:45,002 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:22:45,004 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:23:44,981 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:23:44,989 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:23:45,007 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:23:45,009 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:24:44,978 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:24:44,987 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:24:45,008 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:24:45,010 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:26:44,984 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:26:44,992 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:26:45,011 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:26:45,013 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:28:44,969 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:28:44,976 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:28:44,995 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:28:44,997 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:29:44,969 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:29:44,977 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:29:44,999 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:29:45,000 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:31:44,967 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:31:44,976 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:31:44,997 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:31:44,999 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:33:44,960 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:33:44,968 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:33:44,985 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:33:44,986 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:34:44,965 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:34:44,972 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:34:44,990 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:34:44,991 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:35:44,975 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:35:44,985 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:35:44,999 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:35:45,000 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:37:45,005 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:37:45,016 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:37:45,037 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:37:45,039 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:39:44,999 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:39:45,009 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:39:45,031 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:39:45,033 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:40:45,000 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:40:45,007 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:40:45,026 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:40:45,028 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:42:44,990 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:42:44,996 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:42:45,010 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:42:45,012 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:44:44,997 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:44:45,007 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:44:45,028 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:44:45,030 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:45:45,000 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:45:45,011 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:45:45,032 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:45:45,034 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:46:44,999 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:46:45,003 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:46:45,020 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:46:45,022 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:48:44,999 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:48:45,008 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:48:45,029 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:48:45,030 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:49:44,998 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:49:45,007 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:49:45,028 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:49:45,030 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 05:52:32,648 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 05:52:32,661 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 05:52:32,683 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 05:52:32,723 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:05:11,163 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:05:11,172 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:05:11,194 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:05:11,196 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:12:13,971 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:12:13,979 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:12:14,022 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:12:14,024 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:14:13,962 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:14:13,972 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:14:13,993 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:14:14,018 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:16:13,960 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:16:13,968 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:16:13,988 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:16:13,990 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:17:13,963 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:17:13,967 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:17:13,990 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:17:13,992 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:18:13,970 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:18:13,979 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:18:13,998 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:18:13,999 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:20:13,951 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:20:13,958 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:20:13,975 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:20:13,977 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:21:13,961 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:21:13,972 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:21:13,993 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:21:13,995 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:23:13,970 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:23:13,977 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:23:13,995 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:23:13,996 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:24:13,968 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:24:13,975 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:24:14,027 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:24:14,029 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:26:13,989 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:26:13,999 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:26:14,020 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:26:14,022 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:27:14,205 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:27:14,217 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:27:14,239 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:27:14,241 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:29:14,224 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:29:14,230 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:29:14,242 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:29:14,243 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:31:14,179 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:31:14,188 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:31:14,209 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:31:14,211 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:33:14,188 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:33:14,197 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:33:14,217 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:33:14,219 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:35:14,192 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:35:14,199 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:35:14,218 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:35:14,253 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:36:14,182 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:36:14,187 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:36:14,201 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:36:14,202 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:37:14,197 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:37:14,205 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:37:14,224 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:37:14,226 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:39:14,193 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:39:14,207 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:39:14,226 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:39:14,227 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:40:14,185 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:40:14,193 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:40:14,212 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:40:14,214 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:42:14,193 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:42:14,203 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:42:14,224 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:42:14,226 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:44:14,203 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:44:14,209 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:44:14,225 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:44:14,226 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:46:14,195 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:46:14,205 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:46:14,225 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:46:14,226 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:47:14,203 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:47:14,213 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:47:14,233 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:47:14,235 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:49:14,204 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:49:14,214 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:49:14,235 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:49:14,237 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:50:14,208 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:50:14,219 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:50:14,243 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:50:14,244 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:52:14,200 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:52:14,207 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:52:14,225 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:52:14,227 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:53:14,210 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:53:14,219 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:53:14,241 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:53:14,242 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:54:14,213 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:54:14,222 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:54:14,243 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:54:14,245 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:56:14,217 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:56:14,226 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:56:14,247 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:56:14,249 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:57:14,201 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:57:14,211 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:57:14,232 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:57:14,233 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 06:58:14,197 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 06:58:14,205 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 06:58:14,225 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 06:58:14,226 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:00:14,201 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:00:14,209 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:00:14,228 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:00:14,229 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:01:14,202 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:01:14,212 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:01:14,233 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:01:14,235 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:03:14,201 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:03:14,212 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:03:14,234 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:03:14,236 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:04:14,201 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:04:14,210 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:04:14,229 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:04:14,231 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:05:14,215 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:05:14,223 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:05:14,240 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:05:14,241 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:07:14,207 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:07:14,218 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:07:14,239 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:07:14,241 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:09:14,204 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:09:14,215 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:09:14,236 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:09:14,238 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:10:14,218 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:10:14,225 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:10:14,243 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:10:14,245 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:11:14,221 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:11:14,232 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:11:14,247 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:11:14,283 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:19:23,928 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:19:23,936 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:19:23,955 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:19:23,957 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:21:46,064 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:21:46,071 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:21:46,089 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:21:46,091 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:25:47,777 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:25:47,784 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:25:47,802 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:25:47,804 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:35:44,741 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:35:44,745 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:35:44,758 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:35:44,759 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:36:44,737 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:36:44,745 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:36:44,760 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:36:44,762 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:38:44,739 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:38:44,750 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:38:44,772 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:38:44,774 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:40:44,753 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:40:44,760 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:40:44,780 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:40:44,782 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:42:44,739 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:42:44,747 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:42:44,768 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:42:44,771 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:43:44,747 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:43:44,757 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:43:44,777 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:43:44,779 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:44:57,073 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:44:57,079 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:44:57,095 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:44:57,097 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:46:57,093 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:46:57,100 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:46:57,113 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:46:57,115 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:48:57,079 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:48:57,089 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:48:57,110 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:48:57,112 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:50:57,082 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:50:57,090 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:50:57,111 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:50:57,113 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:51:57,087 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:51:57,096 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:51:57,115 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:51:57,117 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:53:57,087 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:53:57,096 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:53:57,117 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:53:57,119 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:54:57,105 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:54:57,114 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:54:57,134 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:54:57,136 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:56:57,093 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:56:57,099 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:56:57,115 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:56:57,116 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:57:57,095 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:57:57,104 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:57:57,123 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:57:57,125 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 07:59:57,103 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 07:59:57,111 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 07:59:57,130 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 07:59:57,132 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:00:57,094 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:00:57,102 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:00:57,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:00:57,123 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:01:57,099 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:01:57,109 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:01:57,131 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:01:57,133 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:03:57,097 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:03:57,106 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:03:57,128 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:03:57,130 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:04:57,101 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:04:57,112 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:04:57,135 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:04:57,136 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:05:57,098 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:05:57,106 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:05:57,126 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:05:57,128 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:06:57,099 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:06:57,108 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:06:57,127 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:06:57,128 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:08:57,100 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:08:57,110 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:08:57,132 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:08:57,133 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:09:57,100 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:09:57,109 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:09:57,129 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:09:57,131 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:11:57,103 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:11:57,112 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:11:57,133 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:11:57,135 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:13:57,106 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:13:57,117 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:13:57,137 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:13:57,139 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:14:57,104 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:14:57,109 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:14:57,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:14:57,122 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:15:57,108 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:15:57,115 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:15:57,134 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:15:57,136 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:17:57,120 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:17:57,128 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:17:57,147 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:17:57,149 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:19:57,115 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:19:57,125 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:19:57,147 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:19:57,149 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:20:57,115 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:20:57,126 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:20:57,148 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:20:57,150 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:22:57,113 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:22:57,122 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:22:57,144 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:22:57,145 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:24:57,123 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:24:57,132 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:24:57,152 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:24:57,154 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:26:57,118 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:26:57,128 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:26:57,149 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:26:57,151 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:28:57,121 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:28:57,130 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:28:57,153 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:28:57,155 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:29:57,122 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:29:57,130 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:29:57,152 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:29:57,154 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:31:57,125 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:31:57,135 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:31:57,156 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:31:57,158 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:32:57,125 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:32:57,136 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:32:57,156 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:32:57,158 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:33:57,129 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:33:57,138 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:33:57,156 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:33:57,158 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:34:57,133 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:34:57,141 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:34:57,162 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:34:57,163 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:36:57,133 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:36:57,142 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:36:57,163 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:36:57,165 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:38:57,082 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:38:57,093 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:38:57,114 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:38:57,116 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:39:57,087 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:39:57,102 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:39:57,118 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:39:57,120 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:40:57,088 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:40:57,097 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:40:57,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:40:57,122 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:41:57,088 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:41:57,093 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:41:57,110 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:41:57,112 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:42:57,094 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:42:57,103 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:42:57,124 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:42:57,127 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:44:57,090 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:44:57,100 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:44:57,121 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:44:57,123 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:45:57,092 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:45:57,099 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:45:57,118 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:45:57,120 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:48:26,156 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:48:26,164 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:48:26,185 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:48:26,187 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:51:01,586 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:51:01,595 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:51:01,617 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:51:01,619 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:54:11,385 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:54:11,392 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:54:11,409 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:54:11,410 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:55:11,384 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:55:11,395 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:55:11,418 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:55:11,420 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:57:11,382 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:57:11,393 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:57:11,412 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:57:11,445 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 08:59:11,396 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 08:59:11,405 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 08:59:11,423 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 08:59:11,425 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:00:11,386 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:00:11,395 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:00:11,416 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:00:11,418 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:02:11,392 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:02:11,400 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:02:11,418 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:02:11,419 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:03:11,385 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:03:11,395 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:03:11,414 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:03:11,415 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:05:11,200 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:05:11,208 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:05:11,226 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:05:11,228 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:06:11,198 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:06:11,208 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:06:11,227 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:06:11,228 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:08:11,194 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:08:11,201 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:08:11,219 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:08:11,220 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:09:11,202 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:09:11,212 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:09:11,228 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:09:11,229 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:11:11,216 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:11:11,224 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:11:11,242 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:11:11,243 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:13:11,184 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:13:11,190 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:13:11,206 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:13:11,207 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:14:11,185 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:14:11,194 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:14:11,213 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:14:11,214 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:15:11,185 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:15:11,194 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:15:11,214 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:15:11,216 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:17:11,202 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:17:11,209 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:17:11,227 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:17:11,228 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:19:11,259 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:19:11,268 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:19:11,286 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:19:11,287 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:21:11,254 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:21:11,262 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:21:11,280 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:21:11,281 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:23:11,258 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:23:11,263 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:23:11,276 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:23:11,277 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:25:11,242 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:25:11,253 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:25:11,274 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:25:11,276 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:26:11,242 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:26:11,246 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:26:11,264 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:26:11,266 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:27:11,240 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:27:11,248 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:27:11,273 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:27:11,274 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:29:11,241 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:29:11,251 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:29:11,273 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:29:11,275 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:31:11,245 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:31:11,253 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:31:11,271 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:31:11,273 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:32:11,247 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:32:11,254 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:32:11,272 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:32:11,274 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:33:11,249 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:33:11,258 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:33:11,276 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:33:11,278 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:35:11,219 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:35:11,229 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:35:11,251 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:35:11,293 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:37:11,231 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:37:11,239 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:37:11,258 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:37:11,260 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:38:11,228 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:38:11,235 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:38:11,253 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:38:11,255 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:39:11,222 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:39:11,231 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:39:11,249 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:39:11,250 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:41:11,216 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:41:11,226 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:41:11,247 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:41:11,249 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:42:11,233 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:42:11,242 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:42:11,262 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:42:11,263 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:44:11,225 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:44:11,232 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:44:11,249 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:44:11,250 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:45:11,216 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:45:11,225 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:45:11,246 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:45:11,248 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:47:11,223 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:47:11,231 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:47:11,249 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:47:11,250 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:48:11,226 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:48:11,234 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:48:11,252 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:48:11,254 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:49:11,218 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:49:11,228 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:49:11,249 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:49:11,252 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:51:11,226 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:51:11,233 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:51:11,254 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:51:11,256 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:52:11,251 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:52:11,260 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:52:11,282 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:52:11,283 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 09:56:53,175 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 09:56:53,184 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 09:56:53,204 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 09:56:53,206 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:00:17,667 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:00:17,676 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:00:17,696 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:00:17,698 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:03:31,992 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:03:32,000 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:03:32,020 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:03:32,022 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:07:29,850 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:07:29,855 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:07:29,874 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:07:29,875 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:11:22,817 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:11:22,826 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:11:22,845 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:11:22,847 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:15:00,380 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:15:00,389 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:15:00,410 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:15:00,412 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:16:25,499 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:16:25,507 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:16:25,527 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:16:25,528 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:18:32,661 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:18:32,670 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:18:32,692 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:18:32,694 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:19:32,658 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:19:32,667 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:19:32,687 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:19:32,689 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:21:32,650 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:21:32,660 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:21:32,682 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:21:32,684 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:22:32,655 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:22:32,663 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:22:32,683 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:22:32,685 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:23:32,652 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:23:32,662 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:23:32,684 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:23:32,686 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:25:32,648 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:25:32,657 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:25:32,678 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:25:32,680 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:27:32,645 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:27:32,660 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:27:32,684 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:27:32,686 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:28:32,636 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:28:32,641 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:28:32,657 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:28:32,659 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:29:32,642 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:29:32,655 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:29:32,670 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:29:32,672 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:31:32,634 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:31:32,643 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:31:32,665 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:31:32,667 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:32:32,635 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:32:32,645 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:32:32,666 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:32:32,668 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:34:32,631 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:34:32,639 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:34:32,658 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:34:32,660 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:35:32,630 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:35:32,640 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:35:32,660 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:35:32,662 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:37:32,624 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:37:32,634 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:37:32,655 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:37:32,657 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:38:32,625 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:38:32,635 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:38:32,659 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:38:32,661 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:40:32,621 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:40:32,629 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:40:32,648 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:40:32,650 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:41:32,616 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:41:32,624 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:41:32,648 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:41:32,650 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:43:32,615 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:43:32,625 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:43:32,646 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:43:32,649 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:45:32,631 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:45:32,641 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:45:32,663 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:45:32,664 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:46:32,634 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:46:32,642 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:46:32,661 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:46:32,663 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:48:32,630 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:48:32,639 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:48:32,660 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:48:32,662 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:50:32,627 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:50:32,636 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:50:32,659 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:50:32,661 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:51:32,620 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:51:32,628 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:51:32,644 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:51:32,646 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:52:32,625 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:52:32,633 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:52:32,653 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:52:32,654 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:54:32,622 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:54:32,630 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:54:32,651 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:54:32,653 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:55:32,612 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:55:32,616 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:55:32,629 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:55:32,631 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:57:32,610 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:57:32,617 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:57:32,632 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:57:32,634 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 10:58:32,616 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 10:58:32,621 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 10:58:32,641 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 10:58:32,643 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:00:32,639 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:00:32,648 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:00:32,669 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:00:32,671 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:02:32,636 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:02:32,645 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:02:32,666 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:02:32,668 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:03:32,637 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:03:32,647 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:03:32,669 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:03:32,671 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:04:32,636 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:04:32,644 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:04:32,663 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:04:32,665 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:05:32,639 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:05:32,647 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:05:32,668 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:05:32,669 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:07:32,629 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:07:32,639 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:07:32,660 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:07:32,662 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:09:32,629 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:09:32,638 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:09:32,658 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:09:32,660 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:11:32,620 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:11:32,628 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:11:32,646 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:11:32,648 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:13:32,622 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:13:32,632 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:13:32,653 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:13:32,655 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:15:32,652 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:15:32,663 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:15:32,684 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:15:32,685 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:18:19,923 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:18:19,928 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:18:19,943 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:18:19,944 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:19:19,928 basehttp 81907 6325039104 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:19:19,932 basehttp 81907 6325039104 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:19:19,947 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:19:19,948 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:21:19,922 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:21:19,926 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:21:19,938 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:21:19,939 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:22:19,925 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:22:19,929 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:22:19,943 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:22:19,944 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:23:19,927 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:23:19,932 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:23:19,944 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:23:19,947 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:24:19,933 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:24:19,938 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:24:19,951 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:24:19,952 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:26:19,924 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:26:19,928 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:26:19,940 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:26:19,942 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:27:19,924 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:27:19,928 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:27:19,943 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:27:19,944 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:28:19,923 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:28:19,928 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:28:19,940 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:28:19,942 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:30:19,934 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:30:19,939 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:30:19,952 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:30:19,953 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:31:19,930 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:31:19,935 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:31:19,947 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:31:19,948 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:32:19,933 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:32:19,938 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:32:19,950 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:32:19,951 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:34:19,934 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:34:19,939 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:34:19,953 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:34:19,954 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:35:19,930 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:35:19,934 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:35:19,946 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:35:19,947 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:37:54,886 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:37:54,895 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:37:54,913 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:37:54,915 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:39:54,936 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:39:54,946 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:39:54,969 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:39:54,971 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:40:54,932 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:40:54,943 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:40:54,964 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:40:54,966 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:41:54,936 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:41:54,946 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:41:54,967 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:41:54,969 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:42:54,935 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:42:54,943 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:42:54,962 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:42:54,964 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:44:54,950 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:44:54,958 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:44:54,978 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:44:54,980 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:45:54,953 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:45:54,962 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:45:54,983 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:45:54,985 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:47:54,953 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:47:54,963 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:47:54,985 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:47:54,987 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:48:54,953 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:48:54,961 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:48:54,980 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:48:54,982 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:49:54,957 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:49:54,964 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:49:54,985 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:49:54,987 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:51:54,956 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:51:54,965 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:51:54,985 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:51:54,987 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:53:54,955 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:53:54,965 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:53:54,985 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:53:54,987 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:55:54,960 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:55:54,973 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:55:54,986 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:55:54,987 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:56:54,955 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:56:54,962 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:56:54,979 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:56:54,981 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:57:54,961 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:57:54,970 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:57:54,992 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:57:54,993 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 11:59:54,971 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 11:59:54,975 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 11:59:54,988 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 11:59:54,990 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:00:54,967 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:00:54,974 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:00:54,991 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:00:54,993 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:01:54,974 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:01:54,981 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:01:55,001 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:01:55,003 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:03:54,973 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:03:54,983 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:03:55,004 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:03:55,006 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:05:54,974 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:05:54,985 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:05:55,006 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:05:55,008 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:07:54,976 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:07:54,984 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:07:55,006 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:07:55,008 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:09:54,986 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:09:54,994 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:09:55,012 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:09:55,014 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:11:54,974 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:11:54,984 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:11:55,005 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:11:55,007 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:12:54,972 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:12:54,977 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:12:54,990 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:12:54,992 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:13:54,981 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:13:54,987 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:13:55,004 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:13:55,006 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:15:55,017 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:15:55,027 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:15:55,049 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:15:55,051 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:17:55,011 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:17:55,022 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:17:55,043 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:17:55,045 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:18:55,015 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:18:55,022 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:18:55,041 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:18:55,043 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:19:55,019 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:19:55,026 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:19:55,046 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:19:55,048 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:21:55,013 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:21:55,020 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:21:55,036 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:21:55,038 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:22:55,019 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:22:55,029 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:22:55,050 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:22:55,052 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:23:55,023 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:23:55,033 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:23:55,054 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:23:55,056 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:25:55,023 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:25:55,032 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:25:55,053 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:25:55,054 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:27:55,023 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:27:55,033 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:27:55,053 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:27:55,055 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:28:55,023 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:28:55,032 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:28:55,054 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:28:55,056 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:30:55,017 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:30:55,025 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:30:55,044 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:30:55,046 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:31:55,012 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:31:55,018 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:31:55,034 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:31:55,036 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:32:55,021 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:32:55,030 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:32:55,051 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:32:55,053 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:34:55,017 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:34:55,027 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:34:55,050 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:34:55,052 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:35:55,021 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:35:55,031 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:35:55,052 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:35:55,054 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:37:55,021 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:37:55,029 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:37:55,048 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:37:55,050 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:46:18,827 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:46:18,832 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:46:18,844 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:46:18,845 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:47:18,830 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:47:18,834 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:47:18,846 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:47:18,847 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 12:53:16,131 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 12:53:16,141 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 12:53:16,161 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 12:53:16,163 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 13:24:44,930 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 13:24:44,938 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 13:24:44,958 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 13:24:44,960 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:01:31,003 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:01:31,010 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:01:31,024 log 81907 6325039104 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:01:31,026 basehttp 81907 6325039104 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:04:40,776 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:04:40,782 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:04:40,797 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:04:40,799 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:05:40,771 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:05:40,776 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:05:40,787 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:05:40,788 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:06:40,771 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:06:40,775 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:06:40,787 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:06:40,788 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:08:40,772 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:08:40,779 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:08:40,791 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:08:40,792 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:09:40,782 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:09:40,789 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:09:40,809 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:09:40,810 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:10:40,773 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:10:40,782 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:10:40,802 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:10:40,804 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:12:40,770 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:12:40,781 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:12:40,802 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:12:40,803 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:13:40,771 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:13:40,778 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:13:40,798 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:13:40,800 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:15:40,767 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:15:40,774 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:15:40,791 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:15:40,793 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:17:40,773 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:17:40,782 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:17:40,804 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:17:40,806 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:18:40,776 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:18:40,787 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:18:40,808 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:18:40,809 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:19:40,779 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:19:40,795 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:19:40,810 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:19:40,812 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:21:40,766 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:21:40,774 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:21:40,791 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:21:40,793 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:22:40,774 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:22:40,785 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:22:40,807 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:22:40,809 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:24:40,770 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:24:40,779 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:24:40,799 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:24:40,801 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:25:40,770 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:25:40,777 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:25:40,794 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:25:40,795 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:27:40,773 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:27:40,782 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:27:40,804 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:27:40,805 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:29:40,778 basehttp 81907 6159511552 "GET /en/htmx/system-notifications/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:29:40,788 basehttp 81907 6159511552 "GET /accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:29:40,808 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:29:40,809 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/htmx/system-notifications/ HTTP/1.1" 500 161445 +INFO 2025-09-03 14:30:04,236 basehttp 81907 6159511552 "GET /en/admin/laboratory/labtest/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:30:04,248 basehttp 81907 6159511552 "GET /en/admin/login/?next=/en/admin/laboratory/labtest/ HTTP/1.1" 200 4250 +INFO 2025-09-03 14:30:04,270 basehttp 81907 6341865472 "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810 +INFO 2025-09-03 14:30:04,271 basehttp 81907 6358691840 "GET /static/admin/css/login.css HTTP/1.1" 200 951 +INFO 2025-09-03 14:30:04,271 basehttp 81907 6325039104 "GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2808 +INFO 2025-09-03 14:30:04,271 basehttp 81907 6159511552 "GET /static/admin/css/base.css HTTP/1.1" 200 22120 +INFO 2025-09-03 14:30:04,271 basehttp 81907 6375518208 "GET /static/admin/css/responsive.css HTTP/1.1" 200 16565 +INFO 2025-09-03 14:30:04,272 basehttp 81907 6392344576 "GET /static/admin/js/theme.js HTTP/1.1" 200 1653 +INFO 2025-09-03 14:30:04,273 basehttp 81907 6375518208 "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063 +WARNING 2025-09-03 14:30:04,295 log 81907 6375518208 Not Found: /favicon.ico +WARNING 2025-09-03 14:30:04,295 basehttp 81907 6375518208 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-03 14:30:10,532 basehttp 81907 6375518208 "GET /en/laboratory/orders/create/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:30:10,542 basehttp 81907 6375518208 "GET /accounts/login/?next=/en/laboratory/orders/create/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:30:10,563 log 81907 6159511552 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:30:10,564 basehttp 81907 6159511552 "GET /en/accounts/login/?next=/en/laboratory/orders/create/ HTTP/1.1" 500 161343 +INFO 2025-09-03 14:31:27,541 autoreload 87393 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 14:31:30,694 log 87393 6125072384 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:31:30,696 basehttp 87393 6125072384 "GET /en/accounts/login/?next=/en/laboratory/orders/create/ HTTP/1.1" 500 161343 +ERROR 2025-09-03 14:31:31,412 log 87393 6125072384 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:31:31,414 basehttp 87393 6125072384 "GET /en/accounts/login/?next=/en/laboratory/orders/create/ HTTP/1.1" 500 161343 +ERROR 2025-09-03 14:31:32,374 log 87393 6125072384 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:31:32,376 basehttp 87393 6125072384 "GET /en/accounts/login/?next=/en/laboratory/orders/create/ HTTP/1.1" 500 161343 +INFO 2025-09-03 14:31:37,304 basehttp 87393 6125072384 "GET /en/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:31:37,313 basehttp 87393 6125072384 "GET /accounts/login/?next=/en/ HTTP/1.1" 302 0 +ERROR 2025-09-03 14:31:37,333 log 87393 6141898752 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-03 14:31:37,334 basehttp 87393 6141898752 "GET /en/accounts/login/?next=/en/ HTTP/1.1" 500 160320 +INFO 2025-09-03 14:31:42,550 basehttp 87393 6141898752 "GET /en/admin HTTP/1.1" 301 0 +INFO 2025-09-03 14:31:42,585 basehttp 87393 6125072384 "GET /en/admin/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:31:42,597 basehttp 87393 6125072384 "GET /en/admin/login/?next=/en/admin/ HTTP/1.1" 200 4212 +INFO 2025-09-03 14:31:44,700 basehttp 87393 6125072384 "POST /en/admin/login/?next=/en/admin/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:31:44,724 basehttp 87393 6125072384 "GET /en/admin/ HTTP/1.1" 200 88951 +INFO 2025-09-03 14:31:44,740 basehttp 87393 6125072384 "GET /static/admin/css/dashboard.css HTTP/1.1" 200 441 +INFO 2025-09-03 14:31:44,742 basehttp 87393 6125072384 "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 +INFO 2025-09-03 14:31:44,742 basehttp 87393 6141898752 "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380 +INFO 2025-09-03 14:31:47,447 basehttp 87393 6141898752 "GET / HTTP/1.1" 302 0 +INFO 2025-09-03 14:31:47,475 basehttp 87393 6125072384 "GET /en/ HTTP/1.1" 200 49863 +INFO 2025-09-03 14:31:47,488 basehttp 87393 6158725120 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-03 14:31:47,492 basehttp 87393 6125072384 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-03 14:31:47,493 basehttp 87393 6158725120 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-03 14:31:47,493 basehttp 87393 13338013696 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 14:31:47,498 basehttp 87393 13321187328 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 14:31:47,499 basehttp 87393 6141898752 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 14:31:47,499 basehttp 87393 13304360960 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 14:31:47,505 basehttp 87393 13338013696 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 14:31:47,507 basehttp 87393 6125072384 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 14:31:47,868 basehttp 87393 6141898752 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 14:31:47,868 basehttp 87393 13338013696 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 14:31:47,868 basehttp 87393 6125072384 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 14:31:47,869 basehttp 87393 13304360960 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 14:31:47,869 basehttp 87393 13321187328 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 14:31:47,871 basehttp 87393 6158725120 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 14:31:47,872 basehttp 87393 13338013696 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 14:31:47,873 basehttp 87393 6141898752 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 14:31:47,873 basehttp 87393 6125072384 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 14:31:47,874 basehttp 87393 13321187328 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 14:31:47,875 basehttp 87393 13304360960 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 14:31:47,875 basehttp 87393 13338013696 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 14:31:47,877 basehttp 87393 6141898752 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 14:31:47,877 basehttp 87393 6125072384 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 14:31:47,878 basehttp 87393 6158725120 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 14:31:47,879 basehttp 87393 13304360960 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 14:31:47,880 basehttp 87393 13321187328 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 14:31:47,881 basehttp 87393 6125072384 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 14:31:47,882 basehttp 87393 6141898752 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 14:31:47,882 basehttp 87393 6158725120 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 14:31:47,883 basehttp 87393 6141898752 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 14:31:47,884 basehttp 87393 13338013696 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-03 14:31:47,885 basehttp 87393 6141898752 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-03 14:31:47,906 basehttp 87393 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:31:47,910 basehttp 87393 6125072384 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 14:31:47,911 basehttp 87393 6158725120 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-03 14:31:47,913 basehttp 87393 13321187328 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +WARNING 2025-09-03 14:31:49,716 log 87393 13321187328 Forbidden (CSRF token from POST incorrect.): /en/admin/login/ +WARNING 2025-09-03 14:31:49,717 basehttp 87393 13321187328 "POST /en/admin/login/?next=/en/admin/laboratory/labtest/ HTTP/1.1" 403 2503 +INFO 2025-09-03 14:31:55,078 basehttp 87393 13321187328 "GET /en/admin/login/?next=/en/admin/laboratory/labtest/ HTTP/1.1" 302 0 +INFO 2025-09-03 14:31:55,105 basehttp 87393 13321187328 "GET /en/admin/ HTTP/1.1" 200 88951 +INFO 2025-09-03 14:31:56,011 basehttp 87393 13321187328 "GET /en/admin/ HTTP/1.1" 200 88951 +INFO 2025-09-03 14:31:57,514 basehttp 87393 13321187328 "GET /en/admin/analytics/datasource/ HTTP/1.1" 200 73679 +INFO 2025-09-03 14:31:57,527 basehttp 87393 13321187328 "GET /static/admin/css/changelists.css HTTP/1.1" 200 6878 +INFO 2025-09-03 14:31:57,527 basehttp 87393 6141898752 "GET /static/admin/js/core.js HTTP/1.1" 200 6208 +INFO 2025-09-03 14:31:57,527 basehttp 87393 13304360960 "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 +INFO 2025-09-03 14:31:57,528 basehttp 87393 13338013696 "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 9777 +INFO 2025-09-03 14:31:57,529 basehttp 87393 13321187328 "GET /static/admin/js/urlify.js HTTP/1.1" 200 7887 +INFO 2025-09-03 14:31:57,529 basehttp 87393 6141898752 "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 +INFO 2025-09-03 14:31:57,530 basehttp 87393 13304360960 "GET /static/admin/js/actions.js HTTP/1.1" 200 8076 +INFO 2025-09-03 14:31:57,533 basehttp 87393 13321187328 "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436 +INFO 2025-09-03 14:31:57,533 basehttp 87393 6141898752 "GET /static/admin/img/search.svg HTTP/1.1" 200 458 +INFO 2025-09-03 14:31:57,534 basehttp 87393 6125072384 "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 285314 +INFO 2025-09-03 14:31:57,535 basehttp 87393 6158725120 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 14:31:57,537 basehttp 87393 6125072384 "GET /static/admin/js/filters.js HTTP/1.1" 200 978 +INFO 2025-09-03 14:31:57,537 basehttp 87393 13338013696 "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 325171 +INFO 2025-09-03 14:31:57,546 basehttp 87393 13338013696 "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 +INFO 2025-09-03 14:31:57,546 basehttp 87393 6125072384 "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 +INFO 2025-09-03 14:32:06,392 basehttp 87393 6125072384 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 69023 +INFO 2025-09-03 14:32:06,405 basehttp 87393 6125072384 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-09-03 14:32:13,076 log 87393 6125072384 Internal Server Error: /en/admin/analytics/report/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/options.py", line 683, in get_field + return self.fields_map[field_name] + ~~~~~~~~~~~~~~~^^^^^^^^^^^^ +KeyError: 'execution_count_display' + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/utils.py", line 290, in lookup_field + f = _get_non_gfk_field(opts, name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/utils.py", line 330, in _get_non_gfk_field + field = opts.get_field(name) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/options.py", line 685, in get_field + raise FieldDoesNotExist( +django.core.exceptions.FieldDoesNotExist: Report has no field named 'execution_count_display' + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/templatetags/base.py", line 45, in render + return super().render(context) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/library.py", line 359, in render + _dict = self.func(*resolved_args, **resolved_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/templatetags/admin_list.py", line 354, in result_list + "results": list(results(cl)), + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/templatetags/admin_list.py", line 330, in results + yield ResultList(None, items_for_result(cl, res, None)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/templatetags/admin_list.py", line 321, in __init__ + super().__init__(*items) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/templatetags/admin_list.py", line 219, in items_for_result + f, attr, value = lookup_field(field_name, result, cl.model_admin) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/utils.py", line 299, in lookup_field + value = attr(obj) + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/analytics/admin.py", line 379, in execution_count_display + return obj.execution_count + ^^^^^^^^^^^^^^^^^^^ +AttributeError: 'Report' object has no attribute 'execution_count' +ERROR 2025-09-03 14:32:13,079 basehttp 87393 6125072384 "GET /en/admin/analytics/report/ HTTP/1.1" 500 392608 +INFO 2025-09-03 14:32:18,757 basehttp 87393 6125072384 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-03 14:32:48,757 basehttp 87393 6125072384 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:32:48,761 basehttp 87393 13338013696 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 14:32:48,762 basehttp 87393 6158725120 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-03 14:33:10,675 basehttp 87393 6158725120 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 69023 +INFO 2025-09-03 14:33:11,534 basehttp 87393 6158725120 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 69023 +INFO 2025-09-03 14:33:11,545 basehttp 87393 6158725120 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 14:33:16,737 basehttp 87393 6158725120 "GET /en/ HTTP/1.1" 200 49863 +INFO 2025-09-03 14:33:16,808 basehttp 87393 6158725120 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:33:16,809 basehttp 87393 6125072384 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 14:33:16,811 basehttp 87393 6141898752 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-03 14:33:16,812 basehttp 87393 13338013696 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-03 14:33:18,827 basehttp 87393 13338013696 "GET /en/appointments/create/ HTTP/1.1" 200 36516 +INFO 2025-09-03 14:33:18,860 basehttp 87393 13338013696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:33:46,800 basehttp 87393 13338013696 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-03 14:34:03,080 basehttp 87393 13338013696 "GET /en/appointments/create/ HTTP/1.1" 200 36516 +INFO 2025-09-03 14:34:03,114 basehttp 87393 13338013696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:34:09,093 basehttp 87393 13338013696 "GET /en/appointments/ HTTP/1.1" 200 44186 +INFO 2025-09-03 14:34:09,127 basehttp 87393 13338013696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:34:09,141 basehttp 87393 6141898752 "GET /en/appointments/stats/ HTTP/1.1" 200 3132 +INFO 2025-09-03 14:34:15,826 basehttp 87393 6141898752 "GET /en/appointments/queue/ HTTP/1.1" 200 18951 +INFO 2025-09-03 14:34:15,857 basehttp 87393 6141898752 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:35:15,860 basehttp 87393 6141898752 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:36:15,871 basehttp 87393 6141898752 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:37:16,744 basehttp 87393 6141898752 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:38:17,757 basehttp 87393 6141898752 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:39:18,754 basehttp 87393 6141898752 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:40:19,742 basehttp 87393 6141898752 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:40:50,762 autoreload 87393 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:40:51,095 autoreload 91595 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:40:53,723 basehttp 91595 6127349760 "GET /en/appointments/queue/ HTTP/1.1" 200 18951 +INFO 2025-09-03 14:40:53,785 basehttp 91595 6127349760 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:40:55,783 basehttp 91595 6127349760 "GET /en/appointments/queue/ HTTP/1.1" 200 18951 +INFO 2025-09-03 14:40:55,814 basehttp 91595 6127349760 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:41:06,960 basehttp 91595 6127349760 "GET /en/admin/appointments/waitingqueue/ HTTP/1.1" 200 74962 +INFO 2025-09-03 14:41:06,975 basehttp 91595 6127349760 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 14:41:06,991 basehttp 91595 6127349760 "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097 +INFO 2025-09-03 14:41:13,029 basehttp 91595 6127349760 "GET /en/admin/appointments/queueentry/ HTTP/1.1" 200 86544 +INFO 2025-09-03 14:41:13,044 basehttp 91595 6127349760 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 14:41:54,683 autoreload 91595 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:41:55,016 autoreload 92068 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:41:56,023 basehttp 92068 6159921152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:41:56,729 basehttp 92068 6159921152 "GET /en/appointments/queue/ HTTP/1.1" 200 29918 +INFO 2025-09-03 14:41:56,802 basehttp 92068 6159921152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 14:41:56,848 log 92068 12918534144 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:41:56,857 log 92068 12901707776 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:41:56,864 log 92068 12952186880 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:41:56,869 log 92068 12969013248 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:41:56,872 log 92068 6159921152 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:41:56,872 basehttp 92068 12918534144 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89251 +ERROR 2025-09-03 14:41:56,877 log 92068 12935360512 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:41:56,877 basehttp 92068 12901707776 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89473 +ERROR 2025-09-03 14:41:56,878 basehttp 92068 12952186880 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89365 +ERROR 2025-09-03 14:41:56,879 basehttp 92068 12969013248 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89354 +ERROR 2025-09-03 14:41:56,879 basehttp 92068 6159921152 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89547 +ERROR 2025-09-03 14:41:56,880 basehttp 92068 12935360512 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89506 +INFO 2025-09-03 14:42:17,109 autoreload 92068 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:42:17,459 autoreload 92231 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:42:26,031 basehttp 92231 6191099904 "GET /en/admin/appointments/waitingqueue/ HTTP/1.1" 200 74962 +INFO 2025-09-03 14:42:26,047 basehttp 92231 6191099904 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-09-03 14:42:27,826 log 92231 6207926272 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:27,834 basehttp 92231 6207926272 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89251 +ERROR 2025-09-03 14:42:27,838 log 92231 6191099904 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:27,840 basehttp 92231 6191099904 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89473 +ERROR 2025-09-03 14:42:27,850 log 92231 6241579008 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:27,853 log 92231 6258405376 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:27,855 basehttp 92231 6241579008 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89365 +ERROR 2025-09-03 14:42:27,859 log 92231 6275231744 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:27,862 log 92231 6224752640 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:27,862 basehttp 92231 6258405376 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89354 +ERROR 2025-09-03 14:42:27,863 basehttp 92231 6275231744 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89547 +ERROR 2025-09-03 14:42:27,863 basehttp 92231 6224752640 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89506 +INFO 2025-09-03 14:42:32,432 basehttp 92231 6224752640 "GET /en/admin/appointments/queueentry/ HTTP/1.1" 200 86544 +INFO 2025-09-03 14:42:32,446 basehttp 92231 6224752640 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +WARNING 2025-09-03 14:42:43,993 log 92231 6224752640 Forbidden (CSRF token missing.): /en/appointments/queue/9/call-next/ +WARNING 2025-09-03 14:42:43,993 basehttp 92231 6224752640 "POST /en/appointments/queue/9/call-next/ HTTP/1.1" 403 2491 +WARNING 2025-09-03 14:42:46,630 log 92231 6224752640 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:42:46,630 basehttp 92231 6224752640 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:42:46,679 basehttp 92231 6224752640 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 14:42:53,059 basehttp 92231 6224752640 "GET /en/appointments/queue/ HTTP/1.1" 200 29918 +WARNING 2025-09-03 14:42:53,073 log 92231 6224752640 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:42:53,074 basehttp 92231 6224752640 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:42:53,202 basehttp 92231 6224752640 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 14:42:53,279 log 92231 6258405376 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:53,284 basehttp 92231 6258405376 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89251 +ERROR 2025-09-03 14:42:53,294 log 92231 6207926272 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:53,299 log 92231 6191099904 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:53,303 log 92231 6241579008 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:53,304 basehttp 92231 6207926272 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89354 +ERROR 2025-09-03 14:42:53,306 basehttp 92231 6191099904 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89365 +ERROR 2025-09-03 14:42:53,309 log 92231 6275231744 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:53,313 log 92231 6224752640 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:42:53,313 basehttp 92231 6241579008 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89506 +ERROR 2025-09-03 14:42:53,314 basehttp 92231 6275231744 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89473 +ERROR 2025-09-03 14:42:53,315 basehttp 92231 6224752640 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89547 +ERROR 2025-09-03 14:43:23,241 log 92231 6275231744 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:23,244 basehttp 92231 6275231744 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89251 +ERROR 2025-09-03 14:43:23,252 log 92231 6224752640 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:23,255 basehttp 92231 6224752640 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89473 +ERROR 2025-09-03 14:43:23,264 log 92231 6207926272 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:23,271 log 92231 6258405376 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:23,275 log 92231 6191099904 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:23,278 log 92231 6241579008 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:23,279 basehttp 92231 6207926272 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89354 +ERROR 2025-09-03 14:43:23,279 basehttp 92231 6258405376 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89547 +ERROR 2025-09-03 14:43:23,279 basehttp 92231 6191099904 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89365 +ERROR 2025-09-03 14:43:23,280 basehttp 92231 6241579008 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89506 +INFO 2025-09-03 14:43:26,478 autoreload 92231 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:43:26,820 autoreload 92769 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 14:43:28,761 log 92769 6203338752 Internal Server Error: /en/appointments/queue/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 158, in get + self.object_list = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1720, in get_queryset + return QueueEntry.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:28,763 basehttp 92769 6203338752 "GET /en/appointments/queue/ HTTP/1.1" 500 134888 +WARNING 2025-09-03 14:43:28,787 log 92769 6203338752 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:43:28,787 basehttp 92769 6203338752 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:43:43,637 autoreload 92769 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:43:43,961 autoreload 92854 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 14:43:44,624 log 92854 6204747776 Internal Server Error: /en/appointments/queue/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 158, in get + self.object_list = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1722, in get_queryset + ).order_by('name') + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:44,625 basehttp 92854 6204747776 "GET /en/appointments/queue/ HTTP/1.1" 500 103423 +WARNING 2025-09-03 14:43:44,639 log 92854 6204747776 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:43:44,639 basehttp 92854 6204747776 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 14:43:45,775 log 92854 6204747776 Internal Server Error: /en/appointments/queue/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 158, in get + self.object_list = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1722, in get_queryset + ).order_by('name') + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:43:45,775 basehttp 92854 6204747776 "GET /en/appointments/queue/ HTTP/1.1" 500 103423 +WARNING 2025-09-03 14:43:45,787 log 92854 6204747776 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:43:45,787 basehttp 92854 6204747776 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:44:11,201 autoreload 92854 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:44:11,516 autoreload 93091 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:44:12,611 basehttp 93091 6124531712 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +WARNING 2025-09-03 14:44:12,622 log 93091 6124531712 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:44:12,623 basehttp 93091 6124531712 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 14:44:12,775 log 93091 6141358080 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:44:12,780 basehttp 93091 6141358080 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:12,784 log 93091 13069578240 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:44:12,786 basehttp 93091 13069578240 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:44:12,788 basehttp 93091 6124531712 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:44:12,803 log 93091 6141358080 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:44:12,804 basehttp 93091 6141358080 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:44:12,810 log 93091 6124531712 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:44:12,811 basehttp 93091 6124531712 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:12,813 log 93091 13069578240 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:44:12,814 basehttp 93091 13069578240 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:44:12,825 log 93091 13035925504 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:44:12,827 log 93091 6141358080 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:44:12,835 log 93091 6158184448 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:12,837 basehttp 93091 13035925504 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89354 +WARNING 2025-09-03 14:44:12,837 basehttp 93091 6141358080 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:12,843 log 93091 6124531712 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:44:12,843 basehttp 93091 6158184448 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89506 +WARNING 2025-09-03 14:44:12,844 basehttp 93091 6124531712 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:44:12,855 log 93091 13052751872 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:12,857 basehttp 93091 13052751872 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89547 +ERROR 2025-09-03 14:44:12,862 log 93091 13069578240 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:12,864 basehttp 93091 13069578240 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89365 +WARNING 2025-09-03 14:44:12,867 log 93091 6158184448 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:44:12,868 basehttp 93091 6158184448 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:44:12,883 log 93091 13035925504 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:12,888 log 93091 6141358080 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:12,888 basehttp 93091 13035925504 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89251 +ERROR 2025-09-03 14:44:12,889 basehttp 93091 6141358080 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89473 +WARNING 2025-09-03 14:44:42,795 log 93091 6141358080 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:44:42,797 log 93091 6124531712 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:44:42,801 log 93091 13052751872 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:44:42,803 basehttp 93091 6141358080 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:42,803 basehttp 93091 13052751872 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:42,803 basehttp 93091 6124531712 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:44:42,822 log 93091 6158184448 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:42,824 basehttp 93091 6158184448 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89354 +ERROR 2025-09-03 14:44:42,833 log 93091 13035925504 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:44:42,835 log 93091 6124531712 Not Found: /en/appointments/queue/3/status/ +ERROR 2025-09-03 14:44:42,839 log 93091 13069578240 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:44:42,841 log 93091 6141358080 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:44:42,843 log 93091 13052751872 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:44:42,844 basehttp 93091 6124531712 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:44:42,844 basehttp 93091 13035925504 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89506 +WARNING 2025-09-03 14:44:42,845 basehttp 93091 6141358080 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:44:42,845 basehttp 93091 13069578240 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89547 +WARNING 2025-09-03 14:44:42,845 basehttp 93091 13052751872 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:42,849 log 93091 6158184448 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:44:42,849 basehttp 93091 6158184448 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:42,884 log 93091 13069578240 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:44:42,886 basehttp 93091 13069578240 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:44:42,897 log 93091 6141358080 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:42,901 log 93091 6124531712 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:42,903 basehttp 93091 6141358080 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89251 +ERROR 2025-09-03 14:44:42,907 log 93091 13035925504 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'position' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:42,907 basehttp 93091 6124531712 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89473 +ERROR 2025-09-03 14:44:42,907 basehttp 93091 13035925504 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89365 +INFO 2025-09-03 14:44:45,083 autoreload 93091 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:44:45,444 autoreload 93329 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:44:46,318 basehttp 93329 6194540544 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +WARNING 2025-09-03 14:44:46,370 log 93329 6194540544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:44:46,370 basehttp 93329 6194540544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 14:44:46,480 log 93329 6211366912 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:44:46,480 basehttp 93329 6211366912 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:44:46,483 basehttp 93329 6194540544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:44:46,491 log 93329 6278672384 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:44:46,493 basehttp 93329 6278672384 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:46,503 log 93329 6211366912 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:44:46,504 basehttp 93329 6211366912 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:44:46,512 log 93329 6194540544 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:44:46,513 basehttp 93329 6194540544 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:46,517 log 93329 6278672384 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:44:46,518 basehttp 93329 6278672384 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:44:46,524 log 93329 6211366912 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:44:46,529 log 93329 6245019648 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:44:46,530 basehttp 93329 6211366912 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:44:46,539 log 93329 6228193280 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:44:46,542 log 93329 6194540544 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:44:46,546 log 93329 6261846016 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:46,546 basehttp 93329 6245019648 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89406 +ERROR 2025-09-03 14:44:46,547 basehttp 93329 6228193280 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89558 +WARNING 2025-09-03 14:44:46,547 basehttp 93329 6194540544 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:44:46,551 basehttp 93329 6261846016 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89599 +ERROR 2025-09-03 14:44:46,566 log 93329 6278672384 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:46,570 basehttp 93329 6278672384 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89417 +WARNING 2025-09-03 14:44:46,574 log 93329 6194540544 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:44:46,574 basehttp 93329 6194540544 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:44:46,579 log 93329 6211366912 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:46,580 basehttp 93329 6211366912 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89525 +ERROR 2025-09-03 14:44:46,585 log 93329 6245019648 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:44:46,586 basehttp 93329 6245019648 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89303 +WARNING 2025-09-03 14:45:16,466 log 93329 6245019648 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:45:16,466 basehttp 93329 6245019648 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:16,505 log 93329 6228193280 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:45:16,509 log 93329 6261846016 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:45:16,512 basehttp 93329 6228193280 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:45:16,512 basehttp 93329 6261846016 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:16,515 log 93329 6245019648 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:45:16,517 basehttp 93329 6245019648 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:16,532 log 93329 6261846016 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:45:16,533 basehttp 93329 6261846016 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:16,540 log 93329 6228193280 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:45:16,541 basehttp 93329 6228193280 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:45:16,547 log 93329 6194540544 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:16,551 log 93329 6278672384 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:45:16,552 log 93329 6245019648 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:45:16,557 log 93329 6211366912 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:16,557 basehttp 93329 6194540544 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 89406 +ERROR 2025-09-03 14:45:16,559 basehttp 93329 6278672384 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 89599 +WARNING 2025-09-03 14:45:16,559 basehttp 93329 6245019648 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:45:16,561 basehttp 93329 6211366912 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 89558 +ERROR 2025-09-03 14:45:16,578 log 93329 6261846016 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:16,584 log 93329 6228193280 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:16,585 basehttp 93329 6261846016 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 89417 +WARNING 2025-09-03 14:45:16,590 log 93329 6278672384 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:45:16,590 basehttp 93329 6278672384 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:45:16,590 basehttp 93329 6228193280 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 89525 +ERROR 2025-09-03 14:45:16,597 log 93329 6194540544 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1347, in queue_status + ).order_by('queue_position', 'created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'created_at' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:16,598 basehttp 93329 6194540544 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 89303 +INFO 2025-09-03 14:45:18,894 autoreload 93329 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:45:19,277 autoreload 93569 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:45:21,121 basehttp 93569 6171455488 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +WARNING 2025-09-03 14:45:21,176 log 93569 6171455488 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:45:21,176 basehttp 93569 6171455488 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 14:45:21,281 log 93569 13035925504 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:45:21,282 basehttp 93569 13035925504 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:45:21,283 basehttp 93569 6171455488 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:45:21,291 log 93569 13103230976 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:45:21,293 basehttp 93569 13103230976 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:21,306 log 93569 6171455488 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:45:21,308 log 93569 13035925504 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:45:21,309 basehttp 93569 6171455488 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:21,309 basehttp 93569 13035925504 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:45:21,318 log 93569 13103230976 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:45:21,321 basehttp 93569 13103230976 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:21,330 log 93569 6171455488 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:45:21,335 log 93569 13069578240 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:21,339 log 93569 13086404608 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:45:21,340 basehttp 93569 6171455488 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:21,342 log 93569 13035925504 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:45:21,346 log 93569 13052751872 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:21,352 basehttp 93569 13069578240 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115327 +ERROR 2025-09-03 14:45:21,353 basehttp 93569 13086404608 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115429 +WARNING 2025-09-03 14:45:21,354 basehttp 93569 13035925504 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:45:21,354 basehttp 93569 13052751872 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115399 +ERROR 2025-09-03 14:45:21,364 log 93569 13103230976 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:21,365 basehttp 93569 13103230976 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115333 +WARNING 2025-09-03 14:45:21,377 log 93569 13086404608 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:45:21,380 basehttp 93569 13086404608 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:45:21,386 log 93569 6171455488 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:21,387 basehttp 93569 6171455488 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115380 +ERROR 2025-09-03 14:45:21,393 log 93569 13069578240 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:21,394 basehttp 93569 13069578240 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115274 +WARNING 2025-09-03 14:45:51,291 log 93569 13052751872 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:45:51,293 log 93569 13069578240 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:45:51,294 log 93569 13035925504 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:45:51,295 basehttp 93569 13069578240 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:51,295 basehttp 93569 13052751872 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:51,300 basehttp 93569 13035925504 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:45:51,325 log 93569 13069578240 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:45:51,328 basehttp 93569 13069578240 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:45:51,334 log 93569 13086404608 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:51,340 log 93569 13103230976 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:45:51,342 log 93569 13035925504 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:45:51,343 basehttp 93569 13086404608 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115327 +ERROR 2025-09-03 14:45:51,347 log 93569 6171455488 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:45:51,349 log 93569 13052751872 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:45:51,350 basehttp 93569 13035925504 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:45:51,350 basehttp 93569 13103230976 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115429 +WARNING 2025-09-03 14:45:51,350 basehttp 93569 13052751872 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:45:51,351 basehttp 93569 6171455488 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115399 +WARNING 2025-09-03 14:45:51,379 log 93569 13069578240 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:45:51,380 basehttp 93569 13069578240 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:45:51,395 log 93569 13052751872 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:45:51,397 basehttp 93569 13052751872 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:45:51,413 log 93569 13086404608 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:51,420 log 93569 13035925504 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:51,421 basehttp 93569 13086404608 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115333 +ERROR 2025-09-03 14:45:51,428 log 93569 13103230976 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('actual_wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'actual_wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:45:51,429 basehttp 93569 13035925504 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115380 +ERROR 2025-09-03 14:45:51,435 basehttp 93569 13103230976 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115274 +INFO 2025-09-03 14:46:01,084 autoreload 93569 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:46:01,397 autoreload 93884 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:46:01,784 basehttp 93884 6128955392 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +WARNING 2025-09-03 14:46:01,861 log 93884 6128955392 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:46:01,861 basehttp 93884 6128955392 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 14:46:01,942 log 93884 6145781760 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:46:01,943 basehttp 93884 6145781760 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:46:01,947 log 93884 6213087232 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:46:01,948 basehttp 93884 6213087232 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:46:01,948 basehttp 93884 6128955392 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:46:01,968 log 93884 6213087232 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:46:01,970 basehttp 93884 6213087232 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:46:01,971 log 93884 6145781760 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:46:01,972 basehttp 93884 6145781760 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:46:01,974 log 93884 6128955392 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:46:01,976 basehttp 93884 6128955392 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:46:01,986 log 93884 6179434496 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:01,995 log 93884 6162608128 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:46:02,000 log 93884 6213087232 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:46:02,005 log 93884 6196260864 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:46:02,007 log 93884 6145781760 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:46:02,010 basehttp 93884 6179434496 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:46:02,012 basehttp 93884 6162608128 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +WARNING 2025-09-03 14:46:02,012 basehttp 93884 6213087232 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:46:02,013 basehttp 93884 6145781760 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:46:02,013 basehttp 93884 6196260864 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +ERROR 2025-09-03 14:46:02,024 log 93884 6128955392 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:02,026 basehttp 93884 6128955392 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +WARNING 2025-09-03 14:46:02,045 log 93884 6162608128 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:46:02,047 basehttp 93884 6162608128 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:46:02,056 log 93884 6213087232 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:02,058 basehttp 93884 6213087232 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:46:02,062 log 93884 6179434496 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:02,062 basehttp 93884 6179434496 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +WARNING 2025-09-03 14:46:31,946 log 93884 6179434496 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:46:31,947 basehttp 93884 6179434496 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:46:31,956 log 93884 6145781760 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:46:31,957 basehttp 93884 6145781760 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:46:31,963 log 93884 6196260864 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:46:31,974 basehttp 93884 6196260864 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:46:31,977 log 93884 6179434496 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:46:31,980 basehttp 93884 6179434496 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:46:31,991 log 93884 6145781760 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:46:31,992 basehttp 93884 6145781760 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:46:31,997 log 93884 6196260864 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:46:31,998 basehttp 93884 6196260864 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:46:32,005 log 93884 6162608128 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:46:32,007 log 93884 6179434496 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:46:32,011 basehttp 93884 6179434496 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:46:32,011 basehttp 93884 6162608128 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:46:32,017 log 93884 6213087232 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:32,023 log 93884 6128955392 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:32,030 basehttp 93884 6213087232 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:46:32,034 basehttp 93884 6128955392 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:46:32,047 log 93884 6179434496 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:46:32,047 basehttp 93884 6179434496 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:46:32,054 log 93884 6145781760 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:32,058 basehttp 93884 6145781760 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:46:32,065 log 93884 6196260864 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:32,067 basehttp 93884 6196260864 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +ERROR 2025-09-03 14:46:32,072 log 93884 6162608128 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:46:32,073 basehttp 93884 6162608128 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +INFO 2025-09-03 14:47:01,949 basehttp 93884 6162608128 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:47:01,960 log 93884 6196260864 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:47:01,961 basehttp 93884 6196260864 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:47:01,965 log 93884 6213087232 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:47:01,967 basehttp 93884 6213087232 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:47:01,978 log 93884 6162608128 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:47:01,987 basehttp 93884 6162608128 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:47:01,993 log 93884 6196260864 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:47:01,994 basehttp 93884 6196260864 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:47:02,006 log 93884 6213087232 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:47:02,006 basehttp 93884 6213087232 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:47:02,017 log 93884 6162608128 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:47:02,018 basehttp 93884 6162608128 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:47:02,023 log 93884 6179434496 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:47:02,026 log 93884 6196260864 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:47:02,032 log 93884 6128955392 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:02,033 basehttp 93884 6179434496 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:47:02,037 log 93884 6145781760 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:47:02,038 basehttp 93884 6196260864 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:47:02,039 basehttp 93884 6128955392 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +ERROR 2025-09-03 14:47:02,041 basehttp 93884 6145781760 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:47:02,092 log 93884 6213087232 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:02,095 basehttp 93884 6213087232 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +WARNING 2025-09-03 14:47:02,098 log 93884 6179434496 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:47:02,099 basehttp 93884 6179434496 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:47:02,108 log 93884 6162608128 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:02,110 basehttp 93884 6162608128 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +ERROR 2025-09-03 14:47:02,116 log 93884 6196260864 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:02,117 basehttp 93884 6196260864 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +WARNING 2025-09-03 14:47:31,973 log 93884 6145781760 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:47:31,976 basehttp 93884 6145781760 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:47:31,978 log 93884 6196260864 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:47:31,978 basehttp 93884 6196260864 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:47:31,980 log 93884 6128955392 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:47:31,981 basehttp 93884 6128955392 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:47:32,004 log 93884 6145781760 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:47:32,006 basehttp 93884 6145781760 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:47:32,009 log 93884 6196260864 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:47:32,012 basehttp 93884 6196260864 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:47:32,021 log 93884 6213087232 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:32,026 log 93884 6179434496 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:47:32,029 log 93884 6128955392 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:47:32,034 log 93884 6162608128 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:32,035 basehttp 93884 6213087232 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:47:32,039 log 93884 6145781760 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:47:32,039 basehttp 93884 6179434496 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:47:32,039 basehttp 93884 6128955392 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:47:32,040 basehttp 93884 6162608128 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +WARNING 2025-09-03 14:47:32,041 basehttp 93884 6145781760 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:47:32,054 log 93884 6196260864 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:32,055 basehttp 93884 6196260864 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +WARNING 2025-09-03 14:47:32,076 log 93884 6179434496 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:47:32,079 basehttp 93884 6179434496 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:47:32,088 log 93884 6128955392 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:32,093 log 93884 6213087232 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:47:32,094 basehttp 93884 6128955392 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:47:32,095 basehttp 93884 6213087232 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +INFO 2025-09-03 14:48:01,948 basehttp 93884 6213087232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:48:01,969 log 93884 6128955392 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:48:01,970 basehttp 93884 6128955392 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:01,979 log 93884 6162608128 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:48:01,982 log 93884 6213087232 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:48:01,982 basehttp 93884 6162608128 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:01,983 basehttp 93884 6213087232 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:48:02,005 log 93884 6128955392 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:48:02,006 basehttp 93884 6128955392 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:02,016 log 93884 6213087232 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:48:02,017 basehttp 93884 6213087232 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:02,026 log 93884 6162608128 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:48:02,027 basehttp 93884 6162608128 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:02,030 log 93884 6128955392 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:48:02,037 log 93884 6196260864 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:48:02,037 basehttp 93884 6128955392 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:48:02,046 basehttp 93884 6196260864 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:48:02,046 log 93884 6145781760 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:02,050 basehttp 93884 6145781760 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +ERROR 2025-09-03 14:48:02,054 log 93884 6179434496 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:02,075 log 93884 6213087232 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:02,076 basehttp 93884 6179434496 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:48:02,081 basehttp 93884 6213087232 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +WARNING 2025-09-03 14:48:02,085 log 93884 6196260864 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:48:02,087 basehttp 93884 6196260864 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:48:02,096 log 93884 6162608128 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:02,101 log 93884 6128955392 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:02,102 basehttp 93884 6162608128 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +ERROR 2025-09-03 14:48:02,102 basehttp 93884 6128955392 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +WARNING 2025-09-03 14:48:31,948 log 93884 6128955392 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:48:31,948 basehttp 93884 6128955392 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:31,998 log 93884 6128955392 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:48:32,004 log 93884 6145781760 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:48:32,004 basehttp 93884 6128955392 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:32,005 basehttp 93884 6145781760 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:48:32,009 log 93884 6179434496 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:48:32,010 basehttp 93884 6179434496 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:48:32,028 log 93884 6196260864 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:32,033 log 93884 6162608128 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:32,038 log 93884 6213087232 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:32,041 basehttp 93884 6196260864 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:48:32,047 log 93884 6145781760 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:48:32,052 log 93884 6179434496 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:48:32,054 log 93884 6128955392 Not Found: /en/appointments/queue/3/status/ +ERROR 2025-09-03 14:48:32,054 basehttp 93884 6162608128 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:48:32,055 basehttp 93884 6213087232 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:48:32,056 basehttp 93884 6179434496 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:32,056 basehttp 93884 6145781760 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:32,057 basehttp 93884 6128955392 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:48:32,095 log 93884 6213087232 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:48:32,097 basehttp 93884 6213087232 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:48:32,109 log 93884 6196260864 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:32,115 log 93884 6145781760 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:32,116 basehttp 93884 6196260864 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:48:32,120 log 93884 6162608128 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:48:32,120 basehttp 93884 6145781760 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:48:32,121 basehttp 93884 6162608128 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +INFO 2025-09-03 14:49:01,915 basehttp 93884 6162608128 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:49:01,964 log 93884 6145781760 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:49:01,966 basehttp 93884 6145781760 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:01,977 log 93884 6179434496 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:49:01,979 log 93884 6162608128 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:49:01,979 basehttp 93884 6179434496 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:01,993 basehttp 93884 6162608128 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:49:02,001 log 93884 6145781760 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:49:02,001 basehttp 93884 6145781760 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:02,011 log 93884 6179434496 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:49:02,012 basehttp 93884 6179434496 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:49:02,022 log 93884 6196260864 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:02,029 log 93884 6128955392 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:02,029 basehttp 93884 6196260864 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +WARNING 2025-09-03 14:49:02,032 log 93884 6162608128 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:49:02,038 log 93884 6213087232 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:49:02,040 log 93884 6145781760 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:49:02,041 basehttp 93884 6128955392 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:49:02,042 basehttp 93884 6162608128 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:49:02,043 basehttp 93884 6213087232 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:49:02,043 basehttp 93884 6145781760 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:49:02,058 log 93884 6179434496 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:02,058 basehttp 93884 6179434496 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +WARNING 2025-09-03 14:49:02,085 log 93884 6162608128 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:49:02,088 basehttp 93884 6162608128 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:49:02,097 log 93884 6128955392 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:02,103 log 93884 6196260864 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:02,103 basehttp 93884 6128955392 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:49:02,104 basehttp 93884 6196260864 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +WARNING 2025-09-03 14:49:31,970 log 93884 6196260864 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:49:31,970 basehttp 93884 6196260864 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:32,001 log 93884 6145781760 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:49:32,002 basehttp 93884 6145781760 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:49:32,006 log 93884 6213087232 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:49:32,009 basehttp 93884 6213087232 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:32,018 log 93884 6196260864 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:49:32,020 basehttp 93884 6196260864 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:32,031 log 93884 6145781760 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:49:32,033 basehttp 93884 6145781760 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:32,038 log 93884 6213087232 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:49:32,039 basehttp 93884 6213087232 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:49:32,045 log 93884 6196260864 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:49:32,046 basehttp 93884 6196260864 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:49:32,054 log 93884 6179434496 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:32,060 log 93884 6162608128 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:32,062 basehttp 93884 6179434496 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +ERROR 2025-09-03 14:49:32,066 log 93884 6128955392 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:32,069 basehttp 93884 6162608128 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:49:32,072 basehttp 93884 6128955392 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +WARNING 2025-09-03 14:49:32,093 log 93884 6179434496 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:49:32,120 basehttp 93884 6179434496 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:49:32,131 log 93884 6145781760 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:32,137 log 93884 6196260864 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:32,138 basehttp 93884 6196260864 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:49:32,138 basehttp 93884 6145781760 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:49:32,146 log 93884 6213087232 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:49:32,147 basehttp 93884 6213087232 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +INFO 2025-09-03 14:50:01,933 basehttp 93884 6213087232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:50:01,974 log 93884 6196260864 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:50:01,974 basehttp 93884 6196260864 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:01,987 log 93884 6162608128 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:50:01,989 basehttp 93884 6162608128 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:01,991 log 93884 6213087232 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:50:01,995 basehttp 93884 6213087232 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:50:02,011 log 93884 6196260864 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:50:02,012 basehttp 93884 6196260864 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:02,023 log 93884 6162608128 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:50:02,026 log 93884 6213087232 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:50:02,026 basehttp 93884 6162608128 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:02,027 basehttp 93884 6213087232 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:50:02,038 log 93884 6179434496 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:50:02,041 log 93884 6196260864 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:50:02,044 basehttp 93884 6179434496 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:50:02,045 basehttp 93884 6196260864 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:50:02,051 log 93884 6145781760 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:02,054 basehttp 93884 6145781760 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:50:02,060 log 93884 6128955392 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:02,064 basehttp 93884 6128955392 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:50:02,071 log 93884 6196260864 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:50:02,072 basehttp 93884 6196260864 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:50:02,094 log 93884 6162608128 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:02,101 log 93884 6213087232 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:02,102 basehttp 93884 6162608128 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:50:02,104 basehttp 93884 6213087232 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +ERROR 2025-09-03 14:50:02,112 log 93884 6179434496 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:02,113 basehttp 93884 6179434496 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +WARNING 2025-09-03 14:50:31,991 log 93884 6179434496 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:50:31,993 basehttp 93884 6179434496 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:31,997 log 93884 6145781760 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:50:31,998 log 93884 6128955392 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:50:31,999 basehttp 93884 6128955392 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:31,999 basehttp 93884 6145781760 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:50:32,017 log 93884 6179434496 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:50:32,019 basehttp 93884 6179434496 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:32,036 log 93884 6145781760 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:50:32,037 basehttp 93884 6145781760 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:50:32,042 log 93884 6162608128 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:50:32,047 log 93884 6128955392 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:50:32,048 basehttp 93884 6162608128 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:50:32,049 basehttp 93884 6128955392 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:50:32,055 log 93884 6179434496 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:50:32,055 basehttp 93884 6179434496 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:50:32,061 log 93884 6196260864 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:32,069 log 93884 6213087232 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:32,069 basehttp 93884 6196260864 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +ERROR 2025-09-03 14:50:32,072 basehttp 93884 6213087232 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +WARNING 2025-09-03 14:50:32,090 log 93884 6179434496 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:50:32,091 basehttp 93884 6179434496 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:50:32,100 log 93884 6145781760 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:32,105 log 93884 6128955392 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:32,106 basehttp 93884 6145781760 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:50:32,112 log 93884 6162608128 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:50:32,112 basehttp 93884 6128955392 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:50:32,113 basehttp 93884 6162608128 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +INFO 2025-09-03 14:51:01,968 basehttp 93884 6162608128 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:51:01,983 log 93884 6128955392 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:51:01,984 basehttp 93884 6128955392 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:01,992 log 93884 6196260864 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:51:01,993 basehttp 93884 6196260864 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:02,001 log 93884 6162608128 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:51:02,001 basehttp 93884 6162608128 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:51:02,023 log 93884 6128955392 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:51:02,026 basehttp 93884 6128955392 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:51:02,038 log 93884 6145781760 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:51:02,040 log 93884 6196260864 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:51:02,044 log 93884 6162608128 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:51:02,045 basehttp 93884 6145781760 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +WARNING 2025-09-03 14:51:02,046 basehttp 93884 6196260864 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:02,047 basehttp 93884 6162608128 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:51:02,053 log 93884 6179434496 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:02,056 basehttp 93884 6179434496 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:51:02,062 log 93884 6213087232 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:51:02,065 log 93884 6128955392 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:51:02,065 basehttp 93884 6213087232 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:51:02,066 basehttp 93884 6128955392 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:02,082 log 93884 6179434496 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:51:02,084 basehttp 93884 6179434496 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:51:02,096 log 93884 6196260864 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:02,101 log 93884 6145781760 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:02,102 basehttp 93884 6196260864 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +ERROR 2025-09-03 14:51:02,119 log 93884 6162608128 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:02,123 basehttp 93884 6162608128 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:51:02,120 basehttp 93884 6145781760 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +WARNING 2025-09-03 14:51:31,974 log 93884 6162608128 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:51:31,974 basehttp 93884 6162608128 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:32,001 log 93884 6128955392 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:51:32,002 basehttp 93884 6128955392 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:32,019 log 93884 6213087232 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:51:32,021 log 93884 6162608128 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:51:32,022 basehttp 93884 6213087232 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:51:32,022 basehttp 93884 6162608128 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:32,039 log 93884 6128955392 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:51:32,041 basehttp 93884 6128955392 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:51:32,051 log 93884 6196260864 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:32,054 basehttp 93884 6196260864 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:51:32,056 log 93884 6213087232 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:51:32,056 basehttp 93884 6213087232 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:51:32,059 log 93884 6162608128 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:51:32,060 basehttp 93884 6162608128 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:51:32,072 log 93884 6145781760 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:32,074 basehttp 93884 6145781760 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:51:32,081 log 93884 6179434496 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:32,085 basehttp 93884 6179434496 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:51:32,093 log 93884 6162608128 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:51:32,096 basehttp 93884 6162608128 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:51:32,109 log 93884 6128955392 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:32,114 log 93884 6213087232 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:32,129 log 93884 6196260864 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:51:32,130 basehttp 93884 6128955392 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:51:32,132 basehttp 93884 6213087232 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:51:32,133 basehttp 93884 6196260864 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +INFO 2025-09-03 14:52:01,941 basehttp 93884 6196260864 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:52:01,985 log 93884 6213087232 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:52:01,985 basehttp 93884 6213087232 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:01,994 log 93884 6145781760 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:52:01,995 basehttp 93884 6145781760 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:02,001 log 93884 6196260864 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:52:02,004 basehttp 93884 6196260864 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:52:02,016 log 93884 6213087232 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:52:02,022 basehttp 93884 6213087232 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:02,030 log 93884 6145781760 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:52:02,031 basehttp 93884 6145781760 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:02,043 log 93884 6213087232 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:52:02,044 basehttp 93884 6213087232 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:02,048 log 93884 6196260864 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:52:02,049 basehttp 93884 6196260864 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:52:02,057 log 93884 6162608128 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:02,063 log 93884 6128955392 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:02,065 basehttp 93884 6162608128 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:52:02,067 basehttp 93884 6128955392 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:52:02,076 log 93884 6179434496 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:02,080 basehttp 93884 6179434496 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:52:02,090 log 93884 6162608128 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:52:02,091 basehttp 93884 6162608128 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:52:02,099 log 93884 6145781760 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:02,102 basehttp 93884 6145781760 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:52:02,107 log 93884 6213087232 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:02,112 log 93884 6196260864 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:02,113 basehttp 93884 6213087232 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +ERROR 2025-09-03 14:52:02,113 basehttp 93884 6196260864 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +WARNING 2025-09-03 14:52:32,006 log 93884 6196260864 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:52:32,007 basehttp 93884 6196260864 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:32,009 log 93884 6128955392 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:52:32,011 log 93884 6179434496 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:52:32,012 basehttp 93884 6128955392 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:52:32,013 basehttp 93884 6179434496 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:32,028 log 93884 6196260864 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:52:32,030 basehttp 93884 6196260864 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:52:32,051 log 93884 6128955392 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:52:32,052 basehttp 93884 6128955392 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:52:32,058 log 93884 6145781760 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:52:32,061 log 93884 6179434496 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:52:32,065 basehttp 93884 6179434496 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:52:32,066 basehttp 93884 6145781760 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:52:32,069 log 93884 6196260864 Not Found: /en/appointments/queue/4/status/ +ERROR 2025-09-03 14:52:32,075 log 93884 6213087232 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:52:32,076 basehttp 93884 6196260864 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:52:32,084 log 93884 6162608128 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:32,084 basehttp 93884 6213087232 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:52:32,086 basehttp 93884 6162608128 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:52:32,101 log 93884 6196260864 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:52:32,103 basehttp 93884 6196260864 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:52:32,111 log 93884 6128955392 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:32,113 basehttp 93884 6128955392 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:52:32,119 log 93884 6145781760 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:32,124 log 93884 6179434496 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:52:32,125 basehttp 93884 6145781760 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:52:32,125 basehttp 93884 6179434496 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +INFO 2025-09-03 14:53:01,933 basehttp 93884 6179434496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:53:01,976 log 93884 6145781760 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:53:01,976 basehttp 93884 6145781760 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:01,996 log 93884 6213087232 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:53:01,998 basehttp 93884 6213087232 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:02,002 log 93884 6179434496 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:53:02,004 log 93884 6145781760 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:53:02,005 basehttp 93884 6145781760 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:02,008 basehttp 93884 6179434496 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:53:02,036 log 93884 6145781760 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:53:02,038 basehttp 93884 6145781760 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:53:02,044 log 93884 6128955392 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:53:02,048 log 93884 6179434496 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:53:02,050 log 93884 6213087232 Not Found: /en/appointments/queue/3/status/ +ERROR 2025-09-03 14:53:02,051 basehttp 93884 6128955392 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:53:02,057 log 93884 6196260864 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:53:02,057 basehttp 93884 6179434496 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:02,058 basehttp 93884 6213087232 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:53:02,061 basehttp 93884 6196260864 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +ERROR 2025-09-03 14:53:02,067 log 93884 6162608128 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:02,069 basehttp 93884 6162608128 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +ERROR 2025-09-03 14:53:02,086 log 93884 6145781760 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +WARNING 2025-09-03 14:53:02,089 log 93884 6213087232 Not Found: /en/appointments/queue/14/status/ +ERROR 2025-09-03 14:53:02,090 basehttp 93884 6145781760 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +WARNING 2025-09-03 14:53:02,090 basehttp 93884 6213087232 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:53:02,101 log 93884 6128955392 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:02,102 basehttp 93884 6128955392 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +ERROR 2025-09-03 14:53:02,109 log 93884 6179434496 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:02,110 basehttp 93884 6179434496 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +WARNING 2025-09-03 14:53:31,980 log 93884 6179434496 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:53:31,980 basehttp 93884 6179434496 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:32,001 log 93884 6162608128 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:53:32,003 log 93884 6196260864 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:53:32,005 basehttp 93884 6162608128 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:32,006 basehttp 93884 6196260864 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:53:32,030 log 93884 6179434496 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:53:32,035 basehttp 93884 6179434496 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:53:32,043 log 93884 6145781760 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:32,047 basehttp 93884 6145781760 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 115180 +WARNING 2025-09-03 14:53:32,055 log 93884 6196260864 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:53:32,057 log 93884 6162608128 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:53:32,058 basehttp 93884 6196260864 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:32,059 basehttp 93884 6162608128 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:53:32,064 log 93884 6179434496 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:53:32,065 basehttp 93884 6179434496 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:53:32,072 log 93884 6128955392 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:32,078 log 93884 6213087232 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:32,079 basehttp 93884 6128955392 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 115252 +ERROR 2025-09-03 14:53:32,082 basehttp 93884 6213087232 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 115282 +WARNING 2025-09-03 14:53:32,096 log 93884 6179434496 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:53:32,096 basehttp 93884 6179434496 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:53:32,108 log 93884 6162608128 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:32,113 log 93884 6145781760 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:32,119 log 93884 6196260864 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1356, in queue_status + ).aggregate(avg_wait=Avg('wait_time_minutes'))['avg_wait'] or 0, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 588, in aggregate + return self.query.chain().get_aggregation(self.db, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 460, in get_aggregation + aggregate = aggregate_expr.resolve_expression( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'wait_time_minutes' into field. Choices are: appointment, appointment_id, assigned_provider, assigned_provider_id, called_at, entry_id, estimated_service_time, id, joined_at, notes, notification_method, notification_sent, patient, patient_id, priority_score, queue, queue_id, queue_position, served_at, status, updated_at, updated_by, updated_by_id +ERROR 2025-09-03 14:53:32,119 basehttp 93884 6162608128 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 115127 +ERROR 2025-09-03 14:53:32,120 basehttp 93884 6145781760 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 115186 +ERROR 2025-09-03 14:53:32,120 basehttp 93884 6196260864 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 115233 +INFO 2025-09-03 14:53:42,262 autoreload 93884 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:53:42,606 autoreload 97300 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-03 14:54:02,003 log 97300 6153973760 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:54:02,028 basehttp 97300 6153973760 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:54:02,081 basehttp 97300 6137147392 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:54:02,092 log 97300 6221279232 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:54:02,094 basehttp 97300 6221279232 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:54:02,101 log 97300 6170800128 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:02,109 log 97300 6187626496 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:02,115 log 97300 6204452864 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:02,117 basehttp 97300 6170800128 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 72371 +WARNING 2025-09-03 14:54:02,120 log 97300 6137147392 Not Found: /en/appointments/queue/6/status/ +ERROR 2025-09-03 14:54:02,121 basehttp 97300 6187626496 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 72379 +WARNING 2025-09-03 14:54:02,123 log 97300 6153973760 Not Found: /en/appointments/queue/13/status/ +ERROR 2025-09-03 14:54:02,123 basehttp 97300 6204452864 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 72390 +WARNING 2025-09-03 14:54:02,124 basehttp 97300 6137147392 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:54:02,125 basehttp 97300 6153973760 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:54:02,127 log 97300 6221279232 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:54:02,127 basehttp 97300 6221279232 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:54:02,174 log 97300 6137147392 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:02,175 basehttp 97300 6137147392 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 72366 +WARNING 2025-09-03 14:54:02,180 log 97300 6170800128 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:54:02,180 basehttp 97300 6170800128 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:54:02,192 log 97300 6221279232 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:54:02,194 log 97300 6187626496 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:54:02,195 basehttp 97300 6187626496 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:54:02,195 basehttp 97300 6221279232 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:54:02,204 log 97300 6204452864 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:02,208 log 97300 6153973760 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:02,209 basehttp 97300 6204452864 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 72380 +ERROR 2025-09-03 14:54:02,209 basehttp 97300 6153973760 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 72376 +WARNING 2025-09-03 14:54:32,034 log 97300 6170800128 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:54:32,044 log 97300 6153973760 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:54:32,048 log 97300 6137147392 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:54:32,050 basehttp 97300 6170800128 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:54:32,055 log 97300 6204452864 Internal Server Error: /en/appointments/queue/8/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:32,059 log 97300 6221279232 Internal Server Error: /en/appointments/queue/11/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +WARNING 2025-09-03 14:54:32,060 basehttp 97300 6153973760 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:54:32,061 basehttp 97300 6204452864 "GET /en/appointments/queue/8/status/ HTTP/1.1" 500 72371 +WARNING 2025-09-03 14:54:32,061 basehttp 97300 6137147392 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:54:32,062 basehttp 97300 6221279232 "GET /en/appointments/queue/11/status/ HTTP/1.1" 500 72390 +ERROR 2025-09-03 14:54:32,073 log 97300 6187626496 Internal Server Error: /en/appointments/queue/12/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:32,082 basehttp 97300 6187626496 "GET /en/appointments/queue/12/status/ HTTP/1.1" 500 72379 +WARNING 2025-09-03 14:54:32,116 log 97300 6137147392 Not Found: /en/appointments/queue/5/status/ +ERROR 2025-09-03 14:54:32,126 log 97300 6221279232 Internal Server Error: /en/appointments/queue/10/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +WARNING 2025-09-03 14:54:32,128 basehttp 97300 6137147392 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:54:32,130 log 97300 6170800128 Not Found: /en/appointments/queue/6/status/ +ERROR 2025-09-03 14:54:32,131 basehttp 97300 6221279232 "GET /en/appointments/queue/10/status/ HTTP/1.1" 500 72380 +WARNING 2025-09-03 14:54:32,135 log 97300 6153973760 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:54:32,137 log 97300 6204452864 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:54:32,139 basehttp 97300 6170800128 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:54:32,139 basehttp 97300 6204452864 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:54:32,139 basehttp 97300 6153973760 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +ERROR 2025-09-03 14:54:32,150 log 97300 6187626496 Internal Server Error: /en/appointments/queue/9/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +WARNING 2025-09-03 14:54:32,157 log 97300 6221279232 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:54:32,157 basehttp 97300 6221279232 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +ERROR 2025-09-03 14:54:32,157 basehttp 97300 6187626496 "GET /en/appointments/queue/9/status/ HTTP/1.1" 500 72366 +ERROR 2025-09-03 14:54:32,175 log 97300 6137147392 Internal Server Error: /en/appointments/queue/7/status/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py", line 1352, in queue_status + wait_duration=Case( + ^^^^ +NameError: name 'Case' is not defined +ERROR 2025-09-03 14:54:32,176 basehttp 97300 6137147392 "GET /en/appointments/queue/7/status/ HTTP/1.1" 500 72376 +INFO 2025-09-03 14:55:01,468 autoreload 97300 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:55:01,791 autoreload 97923 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:55:28,006 autoreload 97923 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:55:28,343 autoreload 98086 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:55:28,977 basehttp 98086 6192869376 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +WARNING 2025-09-03 14:55:29,137 log 98086 6209695744 Not Found: /en/appointments/queue/2/status/ +INFO 2025-09-03 14:55:29,140 basehttp 98086 6192869376 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:55:29,141 basehttp 98086 6209695744 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:29,144 log 98086 6277001216 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:55:29,145 basehttp 98086 6277001216 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:29,163 log 98086 6192869376 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:55:29,164 basehttp 98086 6192869376 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:55:29,169 basehttp 98086 6243348480 "GET /en/appointments/queue/12/status/ HTTP/1.1" 200 1936 +INFO 2025-09-03 14:55:29,169 basehttp 98086 6226522112 "GET /en/appointments/queue/8/status/ HTTP/1.1" 200 2856 +INFO 2025-09-03 14:55:29,170 basehttp 98086 6260174848 "GET /en/appointments/queue/11/status/ HTTP/1.1" 200 3321 +WARNING 2025-09-03 14:55:29,173 log 98086 6209695744 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:55:29,174 basehttp 98086 6209695744 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:29,176 log 98086 6277001216 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:55:29,176 basehttp 98086 6277001216 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:29,210 log 98086 6192869376 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:55:29,210 basehttp 98086 6192869376 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:29,231 log 98086 6243348480 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:55:29,235 log 98086 6277001216 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:55:29,235 basehttp 98086 6243348480 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:29,236 basehttp 98086 6277001216 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:55:29,244 basehttp 98086 6209695744 "GET /en/appointments/queue/7/status/ HTTP/1.1" 200 931 +INFO 2025-09-03 14:55:29,257 basehttp 98086 6260174848 "GET /en/appointments/queue/9/status/ HTTP/1.1" 200 2958 +INFO 2025-09-03 14:55:29,258 basehttp 98086 6226522112 "GET /en/appointments/queue/10/status/ HTTP/1.1" 200 2122 +INFO 2025-09-03 14:55:32,452 basehttp 98086 6226522112 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +WARNING 2025-09-03 14:55:32,642 log 98086 6260174848 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:55:32,644 log 98086 6192869376 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:55:32,646 basehttp 98086 6260174848 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:55:32,647 basehttp 98086 6226522112 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 14:55:32,650 basehttp 98086 6192869376 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:55:32,660 basehttp 98086 6243348480 "GET /en/appointments/queue/11/status/ HTTP/1.1" 200 3321 +INFO 2025-09-03 14:55:32,660 basehttp 98086 6277001216 "GET /en/appointments/queue/12/status/ HTTP/1.1" 200 1936 +INFO 2025-09-03 14:55:32,660 basehttp 98086 6209695744 "GET /en/appointments/queue/8/status/ HTTP/1.1" 200 2856 +WARNING 2025-09-03 14:55:32,687 log 98086 6226522112 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:55:32,687 basehttp 98086 6226522112 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:55:32,689 log 98086 6260174848 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:55:32,690 basehttp 98086 6260174848 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:32,696 log 98086 6192869376 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:55:32,696 basehttp 98086 6192869376 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:32,716 log 98086 6277001216 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:55:32,716 basehttp 98086 6277001216 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:32,721 log 98086 6243348480 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:55:32,721 basehttp 98086 6243348480 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:55:32,729 basehttp 98086 6209695744 "GET /en/appointments/queue/10/status/ HTTP/1.1" 200 2122 +WARNING 2025-09-03 14:55:32,740 log 98086 6277001216 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:55:32,742 basehttp 98086 6277001216 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 14:55:32,745 log 98086 6192869376 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:55:32,746 basehttp 98086 6192869376 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:55:32,749 basehttp 98086 6260174848 "GET /en/appointments/queue/7/status/ HTTP/1.1" 200 931 +INFO 2025-09-03 14:55:32,751 basehttp 98086 6226522112 "GET /en/appointments/queue/9/status/ HTTP/1.1" 200 2958 +WARNING 2025-09-03 14:55:35,187 log 98086 6226522112 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:55:35,187 basehttp 98086 6226522112 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:55:43,856 basehttp 98086 6226522112 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +INFO 2025-09-03 14:55:43,872 basehttp 98086 6192869376 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-03 14:55:43,873 basehttp 98086 6243348480 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 14:55:43,875 basehttp 98086 6192869376 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-03 14:55:43,883 basehttp 98086 6226522112 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-03 14:55:43,884 basehttp 98086 6209695744 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 14:55:43,885 basehttp 98086 6192869376 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 14:55:43,887 basehttp 98086 6260174848 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 14:55:43,888 basehttp 98086 6277001216 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 14:55:43,890 basehttp 98086 6243348480 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 14:55:44,143 basehttp 98086 6243348480 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 14:55:44,144 basehttp 98086 6209695744 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 14:55:44,145 basehttp 98086 6260174848 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 14:55:44,145 basehttp 98086 6277001216 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 14:55:44,146 basehttp 98086 6192869376 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 14:55:44,147 basehttp 98086 6226522112 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 14:55:44,148 basehttp 98086 6209695744 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 14:55:44,149 basehttp 98086 6192869376 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 14:55:44,149 basehttp 98086 6226522112 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 14:55:44,150 basehttp 98086 6277001216 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 14:55:44,151 basehttp 98086 6260174848 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 14:55:44,154 basehttp 98086 6192869376 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 14:55:44,154 basehttp 98086 6209695744 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 14:55:44,155 basehttp 98086 6226522112 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 14:55:44,155 basehttp 98086 6260174848 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 14:55:44,158 basehttp 98086 6277001216 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 14:55:44,159 basehttp 98086 6243348480 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +WARNING 2025-09-03 14:55:44,214 log 98086 6209695744 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:55:44,215 basehttp 98086 6209695744 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:44,221 log 98086 6243348480 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:55:44,225 basehttp 98086 6243348480 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:55:44,228 basehttp 98086 6226522112 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:55:44,229 basehttp 98086 6192869376 "GET /en/appointments/queue/8/status/ HTTP/1.1" 200 2856 +WARNING 2025-09-03 14:55:44,242 log 98086 6209695744 Not Found: /en/appointments/queue/13/status/ +INFO 2025-09-03 14:55:44,242 basehttp 98086 6260174848 "GET /en/appointments/queue/12/status/ HTTP/1.1" 200 1936 +WARNING 2025-09-03 14:55:44,243 basehttp 98086 6209695744 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:55:44,247 basehttp 98086 6277001216 "GET /en/appointments/queue/11/status/ HTTP/1.1" 200 3321 +WARNING 2025-09-03 14:55:44,252 log 98086 6243348480 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:55:44,254 basehttp 98086 6243348480 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:44,265 log 98086 6192869376 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:55:44,268 log 98086 6226522112 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:55:44,269 basehttp 98086 6226522112 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:44,270 basehttp 98086 6192869376 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:55:44,285 log 98086 6260174848 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:55:44,287 basehttp 98086 6260174848 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:55:44,289 basehttp 98086 6226522112 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 14:55:44,299 basehttp 98086 6226522112 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 14:55:44,310 basehttp 98086 6209695744 "GET /en/appointments/queue/10/status/ HTTP/1.1" 200 2122 +WARNING 2025-09-03 14:55:44,312 log 98086 6192869376 Not Found: /en/appointments/queue/14/status/ +INFO 2025-09-03 14:55:44,313 basehttp 98086 6226522112 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +WARNING 2025-09-03 14:55:44,317 log 98086 6260174848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:55:44,317 basehttp 98086 6192869376 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:55:44,318 basehttp 98086 6260174848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:55:44,324 basehttp 98086 6209695744 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 14:55:44,324 basehttp 98086 6243348480 "GET /en/appointments/queue/7/status/ HTTP/1.1" 200 931 +INFO 2025-09-03 14:55:44,326 basehttp 98086 6226522112 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 14:55:44,330 basehttp 98086 6192869376 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-03 14:55:44,332 basehttp 98086 6277001216 "GET /en/appointments/queue/9/status/ HTTP/1.1" 200 2958 +WARNING 2025-09-03 14:55:44,337 log 98086 6192869376 Not Found: /favicon.ico +WARNING 2025-09-03 14:55:44,338 basehttp 98086 6192869376 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-03 14:55:44,341 basehttp 98086 6260174848 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +WARNING 2025-09-03 14:56:14,211 log 98086 6260174848 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:56:14,211 basehttp 98086 6260174848 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:14,232 log 98086 6243348480 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:56:14,233 basehttp 98086 6243348480 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:14,236 log 98086 6209695744 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:56:14,237 basehttp 98086 6209695744 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:56:14,243 log 98086 6260174848 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:56:14,243 basehttp 98086 6260174848 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:56:14,266 basehttp 98086 6192869376 "GET /en/appointments/queue/8/status/ HTTP/1.1" 200 2856 +INFO 2025-09-03 14:56:14,269 basehttp 98086 6277001216 "GET /en/appointments/queue/12/status/ HTTP/1.1" 200 1936 +WARNING 2025-09-03 14:56:14,273 log 98086 6243348480 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:56:14,274 basehttp 98086 6243348480 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:14,281 log 98086 6260174848 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:56:14,284 log 98086 6209695744 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:56:14,284 basehttp 98086 6260174848 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:14,284 basehttp 98086 6209695744 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:56:14,285 basehttp 98086 6226522112 "GET /en/appointments/queue/11/status/ HTTP/1.1" 200 3321 +INFO 2025-09-03 14:56:14,299 basehttp 98086 6277001216 "GET /en/appointments/queue/9/status/ HTTP/1.1" 200 2958 +INFO 2025-09-03 14:56:14,300 basehttp 98086 6192869376 "GET /en/appointments/queue/10/status/ HTTP/1.1" 200 2122 +WARNING 2025-09-03 14:56:14,306 log 98086 6260174848 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:56:14,307 basehttp 98086 6260174848 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:56:14,310 basehttp 98086 6243348480 "GET /en/appointments/queue/7/status/ HTTP/1.1" 200 931 +INFO 2025-09-03 14:56:37,204 autoreload 98086 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/appointments/views.py changed, reloading. +INFO 2025-09-03 14:56:37,672 autoreload 98674 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 14:56:38,040 basehttp 98674 6124400640 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +WARNING 2025-09-03 14:56:38,187 log 98674 6141227008 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:56:38,189 basehttp 98674 6141227008 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:38,198 log 98674 6208532480 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:56:38,200 basehttp 98674 6208532480 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:56:38,211 basehttp 98674 6124400640 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:56:38,215 basehttp 98674 6174879744 "GET /en/appointments/queue/12/status/ HTTP/1.1" 200 1936 +WARNING 2025-09-03 14:56:38,219 log 98674 6141227008 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:56:38,219 basehttp 98674 6141227008 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:56:38,221 basehttp 98674 6191706112 "GET /en/appointments/queue/11/status/ HTTP/1.1" 200 3321 +INFO 2025-09-03 14:56:38,226 basehttp 98674 6158053376 "GET /en/appointments/queue/8/status/ HTTP/1.1" 200 2856 +WARNING 2025-09-03 14:56:38,230 log 98674 6208532480 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:56:38,232 basehttp 98674 6208532480 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:38,234 log 98674 6124400640 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:56:38,235 basehttp 98674 6124400640 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:38,238 log 98674 6141227008 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:56:38,238 basehttp 98674 6141227008 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:38,266 log 98674 6174879744 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:56:38,266 basehttp 98674 6174879744 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:56:38,276 basehttp 98674 6191706112 "GET /en/appointments/queue/10/status/ HTTP/1.1" 200 2122 +WARNING 2025-09-03 14:56:38,283 log 98674 6124400640 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:56:38,284 basehttp 98674 6124400640 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:56:38,289 basehttp 98674 6158053376 "GET /en/appointments/queue/9/status/ HTTP/1.1" 200 2958 +INFO 2025-09-03 14:56:38,290 basehttp 98674 6208532480 "GET /en/appointments/queue/7/status/ HTTP/1.1" 200 931 +WARNING 2025-09-03 14:56:38,427 log 98674 6208532480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:56:38,427 basehttp 98674 6208532480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:56:41,500 basehttp 98674 6208532480 "GET /en/appointments/queue/ HTTP/1.1" 200 44850 +INFO 2025-09-03 14:56:41,517 basehttp 98674 6124400640 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-03 14:56:41,520 basehttp 98674 6124400640 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-03 14:56:41,524 basehttp 98674 6141227008 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 14:56:41,530 basehttp 98674 6208532480 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-03 14:56:41,545 basehttp 98674 6174879744 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 14:56:41,546 basehttp 98674 6191706112 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 14:56:41,555 basehttp 98674 6141227008 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 14:56:41,557 basehttp 98674 6158053376 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 14:56:41,560 basehttp 98674 6124400640 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +WARNING 2025-09-03 14:56:41,590 log 98674 6124400640 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:56:41,590 basehttp 98674 6124400640 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:56:41,736 basehttp 98674 6124400640 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 14:56:41,760 basehttp 98674 6124400640 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 14:56:41,760 basehttp 98674 6158053376 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 14:56:41,762 basehttp 98674 6141227008 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 14:56:41,763 basehttp 98674 6208532480 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 14:56:41,763 basehttp 98674 6191706112 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 14:56:41,763 basehttp 98674 6174879744 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +WARNING 2025-09-03 14:56:41,783 log 98674 6158053376 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:56:41,783 basehttp 98674 6158053376 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:41,799 log 98674 6124400640 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:56:41,799 basehttp 98674 6124400640 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:41,840 log 98674 6141227008 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:56:41,845 basehttp 98674 6141227008 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:56:41,853 log 98674 6208532480 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:56:41,854 basehttp 98674 6208532480 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:56:41,853 basehttp 98674 6191706112 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:56:41,887 basehttp 98674 6174879744 "GET /en/appointments/queue/8/status/ HTTP/1.1" 200 2856 +INFO 2025-09-03 14:56:41,889 basehttp 98674 6124400640 "GET /en/appointments/queue/11/status/ HTTP/1.1" 200 3321 +WARNING 2025-09-03 14:56:41,900 log 98674 6208532480 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:56:41,912 log 98674 6141227008 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:56:41,916 basehttp 98674 6141227008 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:56:41,923 log 98674 6191706112 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:56:41,924 basehttp 98674 6208532480 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:56:41,929 basehttp 98674 6191706112 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:56:41,936 basehttp 98674 6158053376 "GET /en/appointments/queue/12/status/ HTTP/1.1" 200 1936 +INFO 2025-09-03 14:56:41,943 basehttp 98674 6158053376 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +WARNING 2025-09-03 14:56:41,959 log 98674 6174879744 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:56:41,960 basehttp 98674 6174879744 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:56:41,966 basehttp 98674 6158053376 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 14:56:41,966 basehttp 98674 6124400640 "GET /en/appointments/queue/10/status/ HTTP/1.1" 200 2122 +INFO 2025-09-03 14:56:41,971 basehttp 98674 6191706112 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 14:56:41,976 basehttp 98674 6141227008 "GET /en/appointments/queue/7/status/ HTTP/1.1" 200 931 +INFO 2025-09-03 14:56:41,981 basehttp 98674 6208532480 "GET /en/appointments/queue/9/status/ HTTP/1.1" 200 2958 +INFO 2025-09-03 14:56:42,306 basehttp 98674 6174879744 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 14:56:42,307 basehttp 98674 6191706112 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 14:56:42,309 basehttp 98674 6158053376 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 14:56:42,312 basehttp 98674 6124400640 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 14:56:42,313 basehttp 98674 6174879744 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 14:56:42,315 basehttp 98674 6191706112 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 14:56:42,316 basehttp 98674 6158053376 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 14:56:42,317 basehttp 98674 6141227008 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 14:56:42,317 basehttp 98674 6208532480 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 14:56:42,318 basehttp 98674 6124400640 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 14:56:42,319 basehttp 98674 6174879744 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 14:56:42,319 basehttp 98674 6191706112 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 14:56:42,319 basehttp 98674 6141227008 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-03 14:56:42,319 basehttp 98674 6158053376 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +WARNING 2025-09-03 14:56:42,325 log 98674 6158053376 Not Found: /favicon.ico +WARNING 2025-09-03 14:56:42,325 basehttp 98674 6158053376 "GET /favicon.ico HTTP/1.1" 404 2557 +WARNING 2025-09-03 14:56:45,313 log 98674 6158053376 Forbidden (CSRF token missing.): /en/appointments/queue/8/call-next/ +WARNING 2025-09-03 14:56:45,314 basehttp 98674 6158053376 "POST /en/appointments/queue/8/call-next/ HTTP/1.1" 403 2491 +INFO 2025-09-03 14:57:00,963 basehttp 98674 6158053376 "GET /en/admin/appointments/waitingqueue/ HTTP/1.1" 200 74962 +INFO 2025-09-03 14:57:00,975 basehttp 98674 6141227008 "GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2808 +INFO 2025-09-03 14:57:00,975 basehttp 98674 6174879744 "GET /static/admin/js/theme.js HTTP/1.1" 200 1653 +INFO 2025-09-03 14:57:00,975 basehttp 98674 6124400640 "GET /static/admin/css/changelists.css HTTP/1.1" 200 6878 +INFO 2025-09-03 14:57:00,975 basehttp 98674 6158053376 "GET /static/admin/css/base.css HTTP/1.1" 200 22120 +INFO 2025-09-03 14:57:00,976 basehttp 98674 6191706112 "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810 +INFO 2025-09-03 14:57:00,977 basehttp 98674 6141227008 "GET /static/admin/css/responsive.css HTTP/1.1" 200 16565 +INFO 2025-09-03 14:57:00,977 basehttp 98674 6158053376 "GET /static/admin/js/core.js HTTP/1.1" 200 6208 +INFO 2025-09-03 14:57:00,978 basehttp 98674 6191706112 "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 9777 +INFO 2025-09-03 14:57:00,978 basehttp 98674 6124400640 "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 +INFO 2025-09-03 14:57:00,980 basehttp 98674 6124400640 "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 +INFO 2025-09-03 14:57:00,981 basehttp 98674 6141227008 "GET /static/admin/js/actions.js HTTP/1.1" 200 8076 +INFO 2025-09-03 14:57:00,982 basehttp 98674 6158053376 "GET /static/admin/js/urlify.js HTTP/1.1" 200 7887 +INFO 2025-09-03 14:57:00,984 basehttp 98674 6141227008 "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436 +INFO 2025-09-03 14:57:00,984 basehttp 98674 6124400640 "GET /static/admin/img/search.svg HTTP/1.1" 200 458 +INFO 2025-09-03 14:57:00,985 basehttp 98674 6208532480 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 14:57:00,985 basehttp 98674 6174879744 "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 285314 +INFO 2025-09-03 14:57:00,986 basehttp 98674 6191706112 "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 325171 +INFO 2025-09-03 14:57:00,987 basehttp 98674 6208532480 "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063 +INFO 2025-09-03 14:57:00,990 basehttp 98674 6208532480 "GET /static/admin/js/filters.js HTTP/1.1" 200 978 +INFO 2025-09-03 14:57:00,996 basehttp 98674 6208532480 "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 +INFO 2025-09-03 14:57:00,996 basehttp 98674 6191706112 "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 +INFO 2025-09-03 14:57:00,997 basehttp 98674 6208532480 "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097 +INFO 2025-09-03 14:57:00,997 basehttp 98674 6174879744 "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 +INFO 2025-09-03 14:57:02,896 basehttp 98674 6174879744 "GET /en/admin/appointments/waitingqueue/11/change/ HTTP/1.1" 200 137846 +INFO 2025-09-03 14:57:02,907 basehttp 98674 6158053376 "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 586 +INFO 2025-09-03 14:57:02,907 basehttp 98674 6174879744 "GET /static/admin/css/forms.css HTTP/1.1" 200 8525 +INFO 2025-09-03 14:57:02,908 basehttp 98674 6191706112 "GET /static/admin/js/inlines.js HTTP/1.1" 200 15628 +INFO 2025-09-03 14:57:02,908 basehttp 98674 6124400640 "GET /static/admin/js/SelectBox.js HTTP/1.1" 200 4530 +INFO 2025-09-03 14:57:02,908 basehttp 98674 6141227008 "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 200 15845 +INFO 2025-09-03 14:57:02,909 basehttp 98674 6174879744 "GET /static/admin/css/widgets.css HTTP/1.1" 200 11991 +INFO 2025-09-03 14:57:02,910 basehttp 98674 6174879744 "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380 +INFO 2025-09-03 14:57:02,911 basehttp 98674 6208532480 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 14:57:02,912 basehttp 98674 6174879744 "GET /static/admin/img/icon-deletelink.svg HTTP/1.1" 200 392 +INFO 2025-09-03 14:57:02,913 basehttp 98674 6174879744 "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 200 655 +INFO 2025-09-03 14:57:02,914 basehttp 98674 6208532480 "GET /static/admin/js/change_form.js HTTP/1.1" 200 606 +INFO 2025-09-03 14:57:02,941 basehttp 98674 6208532480 "GET /static/admin/img/selector-icons.svg HTTP/1.1" 200 3291 +INFO 2025-09-03 14:57:11,270 basehttp 98674 6208532480 "GET /en/admin/accounts/user/7/change/?_to_field=id HTTP/1.1" 200 151865 +INFO 2025-09-03 14:57:11,277 basehttp 98674 6174879744 "GET /static/admin/js/calendar.js HTTP/1.1" 200 9141 +INFO 2025-09-03 14:57:11,278 basehttp 98674 6141227008 "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19319 +INFO 2025-09-03 14:57:11,282 basehttp 98674 6208532480 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 14:57:11,299 basehttp 98674 6208532480 "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086 +INFO 2025-09-03 14:57:11,299 basehttp 98674 6141227008 "GET /static/admin/img/icon-clock.svg HTTP/1.1" 200 677 +WARNING 2025-09-03 14:57:12,803 log 98674 6141227008 Not Found: /en/appointments/queue/2/status/ +WARNING 2025-09-03 14:57:12,804 basehttp 98674 6141227008 "GET /en/appointments/queue/2/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:57:12,817 log 98674 6158053376 Not Found: /en/appointments/queue/13/status/ +WARNING 2025-09-03 14:57:12,818 basehttp 98674 6158053376 "GET /en/appointments/queue/13/status/ HTTP/1.1" 404 30844 +WARNING 2025-09-03 14:57:12,822 log 98674 6191706112 Not Found: /en/appointments/queue/1/status/ +WARNING 2025-09-03 14:57:12,826 log 98674 6141227008 Not Found: /en/appointments/queue/6/status/ +WARNING 2025-09-03 14:57:12,826 basehttp 98674 6191706112 "GET /en/appointments/queue/1/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:57:12,827 basehttp 98674 6141227008 "GET /en/appointments/queue/6/status/ HTTP/1.1" 404 30841 +INFO 2025-09-03 14:57:12,831 basehttp 98674 6208532480 "GET /en/appointments/queue/8/status/ HTTP/1.1" 200 2856 +INFO 2025-09-03 14:57:12,832 basehttp 98674 6124400640 "GET /en/appointments/queue/11/status/ HTTP/1.1" 200 3321 +INFO 2025-09-03 14:57:12,834 basehttp 98674 6174879744 "GET /en/appointments/queue/12/status/ HTTP/1.1" 200 1936 +WARNING 2025-09-03 14:57:12,847 log 98674 6158053376 Not Found: /en/appointments/queue/3/status/ +WARNING 2025-09-03 14:57:12,847 basehttp 98674 6158053376 "GET /en/appointments/queue/3/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:57:12,884 log 98674 6191706112 Not Found: /en/appointments/queue/5/status/ +WARNING 2025-09-03 14:57:12,885 basehttp 98674 6191706112 "GET /en/appointments/queue/5/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:57:12,890 log 98674 6141227008 Not Found: /en/appointments/queue/4/status/ +WARNING 2025-09-03 14:57:12,890 basehttp 98674 6141227008 "GET /en/appointments/queue/4/status/ HTTP/1.1" 404 30841 +WARNING 2025-09-03 14:57:12,896 log 98674 6158053376 Not Found: /en/appointments/queue/14/status/ +WARNING 2025-09-03 14:57:12,898 basehttp 98674 6158053376 "GET /en/appointments/queue/14/status/ HTTP/1.1" 404 30844 +INFO 2025-09-03 14:57:12,903 basehttp 98674 6208532480 "GET /en/appointments/queue/10/status/ HTTP/1.1" 200 2122 +INFO 2025-09-03 14:57:12,904 basehttp 98674 6124400640 "GET /en/appointments/queue/9/status/ HTTP/1.1" 200 2958 +INFO 2025-09-03 14:57:12,904 basehttp 98674 6174879744 "GET /en/appointments/queue/7/status/ HTTP/1.1" 200 931 +INFO 2025-09-03 14:57:16,804 basehttp 98674 6174879744 "GET /en/admin/appointments/waitingqueue/11/change/ HTTP/1.1" 200 137846 +INFO 2025-09-03 14:57:37,034 basehttp 98674 6174879744 "GET /en/appointments/ HTTP/1.1" 200 44186 +INFO 2025-09-03 14:57:37,148 basehttp 98674 6174879744 "GET /en/appointments/stats/ HTTP/1.1" 200 3132 +WARNING 2025-09-03 14:57:37,173 log 98674 6174879744 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:57:37,173 basehttp 98674 6174879744 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:57:39,968 basehttp 98674 6174879744 "GET /en/appointments/detail/1515/ HTTP/1.1" 200 22888 +WARNING 2025-09-03 14:57:39,988 log 98674 6174879744 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:57:39,988 basehttp 98674 6174879744 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:57:40,034 basehttp 98674 6174879744 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 14:57:44,392 basehttp 98674 6174879744 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 14:57:44,413 log 98674 6174879744 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 14:57:44,413 basehttp 98674 6174879744 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 14:57:44,475 basehttp 98674 6174879744 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 14:57:44,490 log 98674 6158053376 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 14:57:44,492 basehttp 98674 6158053376 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 14:57:44,498 log 98674 6124400640 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 14:57:44,503 basehttp 98674 6124400640 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +ERROR 2025-09-03 14:57:44,518 log 98674 6208532480 Internal Server Error: /en/patients/insurance-info/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/list.py", line 158, in get + self.object_list = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 486, in get_queryset + return queryset.order_by('patient__last_name', '-is_primary', '-effective_date') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'is_primary' into field. Choices are: authorization_expiry, authorization_number, copay_amount, created_at, deductible_amount, effective_date, group_number, id, insurance_claims, insurance_company, insurance_type, is_active, is_verified, notes, out_of_pocket_max, patient, patient_id, plan_name, plan_type, policy_number, primary_bills, requires_authorization, secondary_bills, subscriber_dob, subscriber_name, subscriber_relationship, subscriber_ssn, termination_date, updated_at, verification_date, verified_by, verified_by_id +ERROR 2025-09-03 14:57:44,519 basehttp 98674 6208532480 "GET /en/patients/insurance-info/22/ HTTP/1.1" 500 108977 +INFO 2025-09-03 14:58:44,477 basehttp 98674 6124400640 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:00:15,747 autoreload 389 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:00:17,913 basehttp 389 6203191296 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +INFO 2025-09-03 15:00:18,011 basehttp 389 6203191296 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:00:18,014 log 389 6253670400 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +WARNING 2025-09-03 15:00:18,015 log 389 6270496768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:00:18,016 basehttp 389 6270496768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 15:00:18,017 basehttp 389 6253670400 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:00:18,024 log 389 6220017664 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:00:18,029 basehttp 389 6220017664 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +ERROR 2025-09-03 15:00:18,228 log 389 6236844032 Internal Server Error: /en/patients/insurance-info/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_create' with no arguments not found. 1 pattern(s) tried: ['en/patients/insurance\\-info/create/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 15:00:18,230 basehttp 389 6236844032 "GET /en/patients/insurance-info/22/ HTTP/1.1" 500 228831 +INFO 2025-09-03 15:01:17,975 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:02:06,753 basehttp 389 6236844032 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 15:02:06,811 log 389 6236844032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:02:06,811 basehttp 389 6236844032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:02:06,843 basehttp 389 6220017664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:02:06,851 log 389 6253670400 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:02:06,853 basehttp 389 6253670400 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:02:06,860 log 389 6270496768 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:02:06,861 basehttp 389 6270496768 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +ERROR 2025-09-03 15:02:07,018 log 389 6236844032 Internal Server Error: /en/patients/insurance-info/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_create' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/insurance\\-info/create/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 15:02:07,019 basehttp 389 6236844032 "GET /en/patients/insurance-info/22/ HTTP/1.1" 500 230401 +INFO 2025-09-03 15:02:28,782 basehttp 389 6236844032 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 15:02:28,839 log 389 6236844032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:02:28,839 basehttp 389 6236844032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:02:28,900 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:02:28,905 log 389 6220017664 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:02:28,907 basehttp 389 6220017664 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:02:28,913 log 389 6270496768 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:02:28,913 basehttp 389 6270496768 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +ERROR 2025-09-03 15:02:29,073 log 389 6253670400 Internal Server Error: /en/patients/insurance-info/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_create' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/insurance\\-info/create/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 15:02:29,074 basehttp 389 6253670400 "GET /en/patients/insurance-info/22/ HTTP/1.1" 500 230389 +INFO 2025-09-03 15:03:18,326 basehttp 389 6253670400 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 15:03:18,382 log 389 6253670400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:03:18,382 basehttp 389 6253670400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:03:18,419 basehttp 389 6253670400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:03:18,426 log 389 6236844032 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:03:18,427 basehttp 389 6236844032 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:03:18,437 log 389 6270496768 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:03:18,441 basehttp 389 6270496768 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +ERROR 2025-09-03 15:03:18,465 log 389 6220017664 Internal Server Error: /en/patients/insurance-info/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_coverage' not found. 'insurance_coverage' is not a valid view function or pattern name. +ERROR 2025-09-03 15:03:18,466 basehttp 389 6220017664 "GET /en/patients/insurance-info/22/ HTTP/1.1" 500 228801 +INFO 2025-09-03 15:04:18,403 basehttp 389 6220017664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:04:45,026 basehttp 389 6220017664 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 15:04:45,064 log 389 6220017664 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:04:45,064 basehttp 389 6220017664 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:04:45,112 basehttp 389 6220017664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:04:45,125 log 389 6253670400 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:04:45,126 basehttp 389 6253670400 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:04:45,137 log 389 6270496768 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:04:45,141 basehttp 389 6270496768 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +ERROR 2025-09-03 15:04:45,164 log 389 6236844032 Internal Server Error: /en/patients/insurance-info/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'verify_insurance' not found. 'verify_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 15:04:45,165 basehttp 389 6236844032 "GET /en/patients/insurance-info/22/ HTTP/1.1" 500 229936 +INFO 2025-09-03 15:05:33,442 basehttp 389 6236844032 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 15:05:33,499 log 389 6236844032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:05:33,499 basehttp 389 6236844032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 15:05:33,536 log 389 6220017664 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +INFO 2025-09-03 15:05:33,539 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:05:33,541 basehttp 389 6220017664 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:05:33,552 log 389 6270496768 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:05:33,556 basehttp 389 6270496768 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +INFO 2025-09-03 15:05:33,562 basehttp 389 6253670400 "GET /en/patients/insurance-info/22/ HTTP/1.1" 200 138520 +WARNING 2025-09-03 15:05:33,591 basehttp 389 6203191296 "GET /static/assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 404 2143 +WARNING 2025-09-03 15:05:33,591 basehttp 389 6220017664 "GET /static/assets/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2098 +WARNING 2025-09-03 15:05:33,593 basehttp 389 6236844032 "GET /static/assets/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 404 2122 +WARNING 2025-09-03 15:05:33,595 basehttp 389 6287323136 "GET /static/assets/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 404 2155 +INFO 2025-09-03 15:05:33,596 basehttp 389 6270496768 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-03 15:05:33,596 basehttp 389 6253670400 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-03 15:05:33,601 basehttp 389 6253670400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:05:58,001 basehttp 389 6253670400 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 15:05:58,032 log 389 6253670400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:05:58,032 basehttp 389 6253670400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 15:05:58,104 log 389 6220017664 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +INFO 2025-09-03 15:05:58,106 basehttp 389 6253670400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:05:58,106 basehttp 389 6220017664 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:05:58,116 log 389 6270496768 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:05:58,120 basehttp 389 6270496768 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +INFO 2025-09-03 15:05:58,127 basehttp 389 6203191296 "GET /en/patients/insurance-info/22/ HTTP/1.1" 200 138485 +INFO 2025-09-03 15:05:58,164 basehttp 389 6203191296 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +INFO 2025-09-03 15:05:58,176 basehttp 389 6270496768 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-03 15:05:58,176 basehttp 389 6253670400 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-03 15:05:58,177 basehttp 389 6220017664 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-03 15:05:58,181 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:06:00,785 basehttp 389 6236844032 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +INFO 2025-09-03 15:06:00,795 basehttp 389 6253670400 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-03 15:06:00,799 basehttp 389 6287323136 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 15:06:00,800 basehttp 389 6253670400 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-03 15:06:00,810 basehttp 389 6236844032 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-03 15:06:00,812 basehttp 389 6253670400 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +WARNING 2025-09-03 15:06:00,818 log 389 6236844032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:06:00,819 basehttp 389 6236844032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:06:00,820 basehttp 389 6203191296 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 15:06:00,822 basehttp 389 6236844032 - Broken pipe from ('127.0.0.1', 51105) +INFO 2025-09-03 15:06:00,825 basehttp 389 6270496768 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 15:06:00,826 basehttp 389 6220017664 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 15:06:00,827 basehttp 389 6287323136 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 15:06:01,133 basehttp 389 6287323136 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 15:06:01,133 basehttp 389 6220017664 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 15:06:01,133 basehttp 389 6253670400 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 15:06:01,134 basehttp 389 6270496768 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 15:06:01,137 basehttp 389 6203191296 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 15:06:01,138 basehttp 389 6236844032 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 15:06:01,138 basehttp 389 6270496768 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 15:06:01,139 basehttp 389 6287323136 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-03 15:06:01,140 basehttp 389 6270496768 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 15:06:01,142 basehttp 389 6287323136 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 15:06:01,143 basehttp 389 6270496768 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 15:06:01,145 basehttp 389 6287323136 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 15:06:01,145 basehttp 389 6270496768 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 15:06:01,146 basehttp 389 6270496768 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 15:06:01,146 basehttp 389 6287323136 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 15:06:01,147 basehttp 389 6270496768 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 15:06:01,148 basehttp 389 6287323136 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 15:06:01,149 basehttp 389 6270496768 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 15:06:01,149 basehttp 389 6287323136 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 15:06:01,151 basehttp 389 6270496768 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 15:06:01,151 basehttp 389 6287323136 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 15:06:01,153 basehttp 389 6287323136 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 15:06:01,153 basehttp 389 6270496768 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-03 15:06:01,167 basehttp 389 6253670400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:06:01,176 log 389 6236844032 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:06:01,179 basehttp 389 6236844032 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63628 +ERROR 2025-09-03 15:06:01,184 log 389 6220017664 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:06:01,187 basehttp 389 6220017664 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 90058 +INFO 2025-09-03 15:06:01,193 basehttp 389 6203191296 "GET /en/patients/insurance-info/22/ HTTP/1.1" 200 138485 +INFO 2025-09-03 15:06:01,210 basehttp 389 6287323136 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-03 15:06:01,211 basehttp 389 6253670400 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-03 15:06:01,211 basehttp 389 6203191296 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-03 15:06:01,212 basehttp 389 6270496768 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-03 15:06:01,212 basehttp 389 6220017664 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-03 15:06:01,212 basehttp 389 6236844032 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +INFO 2025-09-03 15:06:01,218 basehttp 389 6236844032 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 15:06:01,282 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 15:06:01,301 log 389 6236844032 Not Found: /favicon.ico +WARNING 2025-09-03 15:06:01,301 basehttp 389 6236844032 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-03 15:07:01,151 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:07:01,290 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:07:03,927 basehttp 389 6236844032 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +WARNING 2025-09-03 15:07:03,958 log 389 6236844032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:07:03,958 basehttp 389 6236844032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:07:04,004 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:07:04,029 log 389 6203191296 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:07:04,031 basehttp 389 6203191296 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +ERROR 2025-09-03 15:07:04,044 log 389 6270496768 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:07:04,048 basehttp 389 6270496768 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 89793 +INFO 2025-09-03 15:07:04,050 basehttp 389 6220017664 "GET /en/patients/insurance-info/22/ HTTP/1.1" 200 138485 +INFO 2025-09-03 15:07:04,074 basehttp 389 6220017664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:07:09,121 basehttp 389 6220017664 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +INFO 2025-09-03 15:07:09,132 basehttp 389 6203191296 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-03 15:07:09,134 basehttp 389 6287323136 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 15:07:09,135 basehttp 389 6203191296 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-03 15:07:09,146 basehttp 389 6220017664 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +WARNING 2025-09-03 15:07:09,149 log 389 6287323136 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:07:09,149 basehttp 389 6287323136 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:07:09,152 basehttp 389 6253670400 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 15:07:09,152 basehttp 389 6220017664 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 15:07:09,155 basehttp 389 6236844032 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 15:07:09,156 basehttp 389 6270496768 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 15:07:09,157 basehttp 389 6203191296 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 15:07:09,362 basehttp 389 6253670400 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 15:07:09,363 basehttp 389 6220017664 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 15:07:09,363 basehttp 389 6270496768 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 15:07:09,364 basehttp 389 6236844032 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 15:07:09,365 basehttp 389 6203191296 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 15:07:09,366 basehttp 389 6287323136 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 15:07:09,368 basehttp 389 6287323136 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 15:07:09,369 basehttp 389 6220017664 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-03 15:07:09,369 basehttp 389 6287323136 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 15:07:09,370 basehttp 389 6220017664 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 15:07:09,371 basehttp 389 6287323136 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 15:07:09,371 basehttp 389 6220017664 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 15:07:09,372 basehttp 389 6287323136 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 15:07:09,372 basehttp 389 6220017664 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 15:07:09,372 basehttp 389 6287323136 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 15:07:09,373 basehttp 389 6220017664 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 15:07:09,373 basehttp 389 6287323136 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 15:07:09,374 basehttp 389 6220017664 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 15:07:09,374 basehttp 389 6287323136 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 15:07:09,375 basehttp 389 6220017664 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 15:07:09,375 basehttp 389 6287323136 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 15:07:09,376 basehttp 389 6220017664 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 15:07:09,376 basehttp 389 6287323136 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-03 15:07:09,394 basehttp 389 6253670400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:07:09,401 log 389 6203191296 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:07:09,403 basehttp 389 6203191296 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63628 +ERROR 2025-09-03 15:07:09,416 log 389 6236844032 Internal Server Error: /en/patients/emergency-contacts/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 1112, in emergency_contacts_list + ).order_by('-is_primary', 'name') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'name' into field. Choices are: address_line_1, address_line_2, authorization_number, city, created_at, email, first_name, id, is_active, is_authorized_for_financial_decisions, is_authorized_for_information, is_authorized_for_medical_decisions, is_primary, last_name, mobile_number, notes, patient, patient_id, phone_number, priority, relationship, state, updated_at, zip_code +ERROR 2025-09-03 15:07:09,419 basehttp 389 6236844032 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 500 90058 +INFO 2025-09-03 15:07:09,425 basehttp 389 6270496768 "GET /en/patients/insurance-info/22/ HTTP/1.1" 200 138485 +INFO 2025-09-03 15:07:09,427 basehttp 389 6203191296 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 15:07:09,462 basehttp 389 6253670400 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-03 15:07:09,462 basehttp 389 6203191296 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-03 15:07:09,462 basehttp 389 6220017664 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-03 15:07:09,463 basehttp 389 6287323136 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-03 15:07:09,463 basehttp 389 6270496768 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-03 15:07:09,463 basehttp 389 6236844032 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +INFO 2025-09-03 15:07:09,517 basehttp 389 6236844032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 15:07:09,538 log 389 6236844032 Not Found: /favicon.ico +WARNING 2025-09-03 15:07:09,539 basehttp 389 6236844032 "GET /favicon.ico HTTP/1.1" 404 2557 +WARNING 2025-09-03 15:07:39,480 log 389 6236844032 Not Found: /en/patients/insurance +WARNING 2025-09-03 15:07:39,480 basehttp 389 6236844032 "GET /en/patients/insurance HTTP/1.1" 404 41364 +WARNING 2025-09-03 15:07:39,511 log 389 6236844032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:07:39,512 basehttp 389 6236844032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:08:21,542 autoreload 389 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:08:21,959 autoreload 4226 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:08:24,624 basehttp 4226 6123991040 "GET /en/patients/insurance-info HTTP/1.1" 301 0 +INFO 2025-09-03 15:08:24,691 basehttp 4226 6140817408 "GET /en/patients/insurance-info/ HTTP/1.1" 200 138485 +WARNING 2025-09-03 15:08:24,713 log 4226 6140817408 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:08:24,713 basehttp 4226 6140817408 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:08:24,775 basehttp 4226 6140817408 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:08:32,089 log 4226 6140817408 Internal Server Error: /en/patients/insurance-info/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_create' with no arguments not found. 1 pattern(s) tried: ['en/patients/insurance\\-info/create/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 15:08:32,091 basehttp 4226 6140817408 "GET /en/patients/insurance-info/5/ HTTP/1.1" 500 180114 +WARNING 2025-09-03 15:08:32,109 log 4226 6140817408 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:08:32,109 basehttp 4226 6140817408 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 15:09:29,204 log 4226 6140817408 Internal Server Error: /en/patients/insurance-info/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'verify_insurance' not found. 'verify_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 15:09:29,205 basehttp 4226 6140817408 "GET /en/patients/insurance-info/5/ HTTP/1.1" 500 172792 +WARNING 2025-09-03 15:09:29,220 log 4226 6140817408 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:09:29,221 basehttp 4226 6140817408 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:10:52,504 autoreload 4226 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:10:52,844 autoreload 5399 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:11:06,353 autoreload 5399 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:11:06,644 autoreload 5485 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-03 15:11:14,885 log 5485 6188003328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:11:14,886 basehttp 5485 6188003328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:11:14,945 basehttp 5485 6171176960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 15:11:15,057 log 5485 6171176960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:11:15,057 basehttp 5485 6171176960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:11:15,728 basehttp 5485 6171176960 "GET /en/patients/insurance-info/ HTTP/1.1" 200 138485 +WARNING 2025-09-03 15:11:15,744 log 5485 6171176960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:11:15,744 basehttp 5485 6171176960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:11:15,824 basehttp 5485 6171176960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:11:17,301 log 5485 6171176960 Internal Server Error: /en/patients/insurance-info/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'verify_insurance' not found. 'verify_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 15:11:17,303 basehttp 5485 6171176960 "GET /en/patients/insurance-info/5/ HTTP/1.1" 500 172655 +WARNING 2025-09-03 15:11:17,320 log 5485 6171176960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:11:17,321 basehttp 5485 6171176960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:11:29,821 autoreload 5485 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:11:30,147 autoreload 5651 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 15:11:30,626 log 5651 6197702656 Internal Server Error: /en/patients/insurance-info/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_eligibility' not found. 'check_eligibility' is not a valid view function or pattern name. +ERROR 2025-09-03 15:11:30,627 basehttp 5651 6197702656 "GET /en/patients/insurance-info/5/ HTTP/1.1" 500 172927 +WARNING 2025-09-03 15:11:30,645 log 5651 6197702656 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:11:30,645 basehttp 5651 6197702656 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:15:08,350 autoreload 5651 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 15:15:08,717 autoreload 7264 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:24:42,899 autoreload 7264 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 15:24:43,417 autoreload 11531 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:28:16,434 autoreload 11531 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:28:16,933 autoreload 13108 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:28:28,613 autoreload 13108 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:28:28,975 autoreload 13192 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:30:17,833 autoreload 13192 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 15:30:18,177 autoreload 13969 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:30:51,592 autoreload 13969 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:30:51,919 autoreload 14286 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 15:30:54,800 log 14286 6200602624 Internal Server Error: /en/patients/insurance-info/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_claims_history' not found. 'insurance_claims_history' is not a valid view function or pattern name. +ERROR 2025-09-03 15:30:54,801 basehttp 14286 6200602624 "GET /en/patients/insurance-info/5/ HTTP/1.1" 500 172422 +WARNING 2025-09-03 15:30:54,814 log 14286 6200602624 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:30:54,814 basehttp 14286 6200602624 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:32:45,369 autoreload 14286 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 15:32:45,749 autoreload 15060 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 15:33:46,568 log 15060 6198390784 Internal Server Error: /en/patients/insurance-info/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_claims_history' not found. 'insurance_claims_history' is not a valid view function or pattern name. +ERROR 2025-09-03 15:33:46,569 basehttp 15060 6198390784 "GET /en/patients/insurance-info/5/ HTTP/1.1" 500 172422 +WARNING 2025-09-03 15:33:46,581 log 15060 6198390784 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:33:46,581 basehttp 15060 6198390784 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 15:33:48,014 log 15060 6198390784 Internal Server Error: /en/patients/insurance-info/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_claims_history' not found. 'insurance_claims_history' is not a valid view function or pattern name. +ERROR 2025-09-03 15:33:48,014 basehttp 15060 6198390784 "GET /en/patients/insurance-info/5/ HTTP/1.1" 500 172422 +WARNING 2025-09-03 15:33:48,026 log 15060 6198390784 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:33:48,026 basehttp 15060 6198390784 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:34:11,771 autoreload 15060 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 15:34:12,192 autoreload 15768 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:34:15,733 basehttp 15768 6205255680 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36140 +WARNING 2025-09-03 15:34:15,755 log 15768 6205255680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:34:15,755 basehttp 15768 6205255680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:34:15,829 basehttp 15768 6205255680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:34:27,784 basehttp 15768 6205255680 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 14966 +INFO 2025-09-03 15:34:38,972 basehttp 15768 6205255680 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 14939 +INFO 2025-09-03 15:34:45,843 basehttp 15768 6205255680 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 80854 +INFO 2025-09-03 15:35:15,823 basehttp 15768 6205255680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:35:15,834 basehttp 15768 6222082048 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 66320 +ERROR 2025-09-03 15:35:22,519 log 15768 6222082048 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_list' with arguments '(6,)' not found. 1 pattern(s) tried: ['en/patients/insurance\\-info/\\Z'] +ERROR 2025-09-03 15:35:22,520 basehttp 15768 6222082048 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 187855 +WARNING 2025-09-03 15:35:22,558 log 15768 6222082048 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:35:22,558 basehttp 15768 6222082048 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 15:36:19,724 log 15768 6222082048 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_list' with arguments '(6,)' not found. 1 pattern(s) tried: ['en/patients/insurance\\-info/\\Z'] +ERROR 2025-09-03 15:36:19,725 basehttp 15768 6222082048 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 187992 +WARNING 2025-09-03 15:36:19,738 log 15768 6222082048 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:36:19,738 basehttp 15768 6222082048 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:38:18,580 basehttp 15768 6222082048 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 37289 +WARNING 2025-09-03 15:38:18,595 log 15768 6222082048 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:38:18,596 basehttp 15768 6222082048 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:38:18,701 basehttp 15768 6222082048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:38:18,702 basehttp 15768 6205255680 "GET /en/patients/emergency-contacts/6/ HTTP/1.1" 200 145 +ERROR 2025-09-03 15:38:18,707 log 15768 6255734784 Internal Server Error: /en/patients/appointments/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:38:18,709 basehttp 15768 6255734784 "GET /en/patients/appointments/6/ HTTP/1.1" 500 63351 +INFO 2025-09-03 15:38:18,709 basehttp 15768 6238908416 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36164 +INFO 2025-09-03 15:38:18,743 basehttp 15768 6238908416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:38:48,774 basehttp 15768 6238908416 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 64580 +INFO 2025-09-03 15:39:18,660 basehttp 15768 6238908416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:39:18,768 basehttp 15768 6255734784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:39:18,770 basehttp 15768 6238908416 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 75153 +INFO 2025-09-03 15:39:48,783 basehttp 15768 6238908416 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 62062 +INFO 2025-09-03 15:40:18,665 basehttp 15768 6238908416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:40:18,781 basehttp 15768 6255734784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:40:18,783 basehttp 15768 6238908416 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 63158 +INFO 2025-09-03 15:40:26,401 autoreload 15768 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 15:40:26,836 autoreload 18503 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 15:40:27,578 basehttp 18503 6194622464 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 37289 +INFO 2025-09-03 15:40:27,672 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:40:27,687 log 18503 6245101568 Internal Server Error: /en/patients/appointments/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +INFO 2025-09-03 15:40:27,688 basehttp 18503 6211448832 "GET /en/patients/emergency-contacts/6/ HTTP/1.1" 200 145 +WARNING 2025-09-03 15:40:27,690 log 18503 6194622464 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-09-03 15:40:27,691 basehttp 18503 6228275200 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36164 +WARNING 2025-09-03 15:40:27,691 basehttp 18503 6194622464 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 15:40:27,691 basehttp 18503 6245101568 "GET /en/patients/appointments/6/ HTTP/1.1" 500 63351 +INFO 2025-09-03 15:40:27,726 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:40:33,880 basehttp 18503 6245101568 "GET /en/patients/patientprofile/7/details/ HTTP/1.1" 200 37320 +WARNING 2025-09-03 15:40:33,901 log 18503 6245101568 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:40:33,901 basehttp 18503 6245101568 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:40:33,970 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:40:33,979 log 18503 6211448832 Internal Server Error: /en/patients/appointments/7/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +INFO 2025-09-03 15:40:33,980 basehttp 18503 6194622464 "GET /en/patients/emergency-contacts/7/ HTTP/1.1" 200 145 +ERROR 2025-09-03 15:40:33,980 basehttp 18503 6211448832 "GET /en/patients/appointments/7/ HTTP/1.1" 500 63351 +INFO 2025-09-03 15:40:33,980 basehttp 18503 6228275200 "GET /en/patients/insurance-info/7/ HTTP/1.1" 200 36257 +INFO 2025-09-03 15:40:34,026 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:40:43,215 basehttp 18503 6228275200 "GET /en/patients/insurance-info/ HTTP/1.1" 200 138485 +WARNING 2025-09-03 15:40:43,233 log 18503 6228275200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:40:43,233 basehttp 18503 6228275200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:40:43,258 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:40:50,101 basehttp 18503 6228275200 "GET /en/patients/insurance-info/43/ HTTP/1.1" 200 36270 +WARNING 2025-09-03 15:40:50,122 log 18503 6228275200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 15:40:50,122 basehttp 18503 6228275200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 15:40:50,166 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:41:09,285 basehttp 18503 6228275200 "POST /en/patients/check-eligibility/43/ HTTP/1.1" 200 14972 +INFO 2025-09-03 15:41:23,886 basehttp 18503 6228275200 "GET /en/patients/insurance-claims-history/43/ HTTP/1.1" 200 74397 +ERROR 2025-09-03 15:41:31,202 log 18503 6228275200 Internal Server Error: /en/patients/insurance-info/update/43/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_primary_insurance' not found. 'check_primary_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 15:41:31,204 basehttp 18503 6228275200 "GET /en/patients/insurance-info/update/43/ HTTP/1.1" 500 187179 +ERROR 2025-09-03 15:41:42,767 log 18503 6228275200 Internal Server Error: /en/patients/insurance-info/create/50/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_primary_insurance' not found. 'check_primary_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 15:41:42,769 basehttp 18503 6228275200 "GET /en/patients/insurance-info/create/50/ HTTP/1.1" 500 184447 +ERROR 2025-09-03 15:41:53,885 log 18503 6228275200 Internal Server Error: /en/patients/renew-insurance/43/ +ERROR 2025-09-03 15:41:53,886 basehttp 18503 6228275200 "POST /en/patients/renew-insurance/43/ HTTP/1.1" 500 126 +INFO 2025-09-03 15:42:04,598 basehttp 18503 6228275200 "GET /en/patients/insurance-claims-history/43/ HTTP/1.1" 200 76561 +INFO 2025-09-03 15:42:34,587 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:42:34,600 basehttp 18503 6211448832 "GET /en/patients/insurance-claims-history/43/ HTTP/1.1" 200 57536 +INFO 2025-09-03 15:42:40,989 basehttp 18503 6211448832 "POST /en/patients/check-eligibility/43/ HTTP/1.1" 200 14944 +INFO 2025-09-03 15:42:50,140 basehttp 18503 6211448832 "POST /en/patients/check-eligibility/43/ HTTP/1.1" 200 14093 +INFO 2025-09-03 15:43:04,606 basehttp 18503 6211448832 "GET /en/patients/insurance-claims-history/43/ HTTP/1.1" 200 56708 +INFO 2025-09-03 15:43:37,610 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:43:37,613 basehttp 18503 6228275200 "GET /en/patients/insurance-claims-history/43/ HTTP/1.1" 200 56866 +INFO 2025-09-03 15:44:04,608 basehttp 18503 6228275200 "GET /en/patients/insurance-claims-history/43/ HTTP/1.1" 200 59687 +INFO 2025-09-03 15:44:09,301 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:44:18,627 log 18503 6228275200 Internal Server Error: /en/patients/insurance-info/delete/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_create' with no arguments not found. 1 pattern(s) tried: ['en/patients/insurance\\-info/create/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 15:44:18,628 basehttp 18503 6228275200 "GET /en/patients/insurance-info/delete/5/ HTTP/1.1" 500 178234 +INFO 2025-09-03 15:44:25,825 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:44:25,834 basehttp 18503 6228275200 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 59303 +INFO 2025-09-03 15:44:25,838 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:44:34,055 basehttp 18503 6194622464 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 69869 +INFO 2025-09-03 15:44:42,743 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:44:42,756 basehttp 18503 6194622464 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 48076 +INFO 2025-09-03 15:44:42,761 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:44:43,396 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:44:43,399 basehttp 18503 6211448832 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 64166 +INFO 2025-09-03 15:44:47,838 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:44:49,066 basehttp 18503 6211448832 "GET /en/appointments/detail/1515/ HTTP/1.1" 200 22888 +INFO 2025-09-03 15:44:50,570 basehttp 18503 6211448832 "GET /en/appointments/ HTTP/1.1" 200 44186 +INFO 2025-09-03 15:44:50,612 basehttp 18503 6211448832 "GET /en/appointments/stats/ HTTP/1.1" 200 3132 +INFO 2025-09-03 15:44:56,947 basehttp 18503 6211448832 "GET /en/appointments/detail/1515/ HTTP/1.1" 200 22888 +INFO 2025-09-03 15:44:56,978 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:45:00,788 basehttp 18503 6211448832 "GET /en/appointments/create/ HTTP/1.1" 200 36516 +INFO 2025-09-03 15:46:01,798 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:46:13,460 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:46:13,480 basehttp 18503 6211448832 "GET /en/appointments/stats/ HTTP/1.1" 200 3132 +INFO 2025-09-03 15:46:14,146 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:46:17,985 basehttp 18503 6211448832 "GET /en/appointments/detail/1515/ HTTP/1.1" 200 22888 +INFO 2025-09-03 15:46:18,020 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:46:19,831 basehttp 18503 6211448832 "GET /en/patients/patientprofile/22/details/ HTTP/1.1" 200 37307 +INFO 2025-09-03 15:46:19,881 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:46:19,889 basehttp 18503 6194622464 "GET /en/patients/emergency-contacts/22/ HTTP/1.1" 200 145 +INFO 2025-09-03 15:46:19,890 basehttp 18503 6228275200 "GET /en/patients/insurance-info/22/ HTTP/1.1" 200 36185 +ERROR 2025-09-03 15:46:19,894 log 18503 6245101568 Internal Server Error: /en/patients/appointments/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 15:46:19,895 basehttp 18503 6245101568 "GET /en/patients/appointments/22/ HTTP/1.1" 500 63363 +INFO 2025-09-03 15:46:19,926 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:46:22,323 log 18503 6245101568 Internal Server Error: /en/patients/emergency-contacts/create/22/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'patient_detail' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/patientprofile/(?P[0-9]+)/details/\\Z'] +ERROR 2025-09-03 15:46:22,324 basehttp 18503 6245101568 "GET /en/patients/emergency-contacts/create/22/ HTTP/1.1" 500 181662 +INFO 2025-09-03 15:46:29,661 basehttp 18503 6245101568 "GET /en/emr/encounters/create/?patient=22 HTTP/1.1" 200 56248 +INFO 2025-09-03 15:46:29,693 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:46:32,859 basehttp 18503 6245101568 "GET /en/laboratory/orders/create/?patient=22 HTTP/1.1" 200 36955 +INFO 2025-09-03 15:46:32,892 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:46:36,130 basehttp 18503 6245101568 "GET /en/billing/bills/create/?patient=22 HTTP/1.1" 200 109320 +INFO 2025-09-03 15:46:36,165 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:47:18,034 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:48:18,776 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:49:19,774 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:50:20,773 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:51:21,773 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:51:29,348 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:51:29,368 basehttp 18503 6245101568 "GET /en/appointments/stats/ HTTP/1.1" 200 3132 +INFO 2025-09-03 15:51:31,904 basehttp 18503 6245101568 "GET /en/ HTTP/1.1" 200 49798 +INFO 2025-09-03 15:51:31,969 basehttp 18503 6194622464 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 15:51:31,970 basehttp 18503 6211448832 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-03 15:51:31,971 basehttp 18503 6245101568 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2095 +WARNING 2025-09-03 15:51:43,608 log 18503 6245101568 Not Found: /en/insurance-info +WARNING 2025-09-03 15:51:43,608 basehttp 18503 6245101568 "GET /en/insurance-info HTTP/1.1" 404 29883 +INFO 2025-09-03 15:51:50,153 basehttp 18503 6245101568 "GET /en/patients/insurance-info/ HTTP/1.1" 200 138485 +INFO 2025-09-03 15:51:50,200 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:51:54,051 basehttp 18503 6245101568 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36140 +INFO 2025-09-03 15:51:54,083 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:52:01,775 basehttp 18503 6245101568 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 14964 +INFO 2025-09-03 15:52:06,298 basehttp 18503 6245101568 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 14084 +ERROR 2025-09-03 15:52:15,651 log 18503 6245101568 Internal Server Error: /en/patients/renew-insurance/5/ +ERROR 2025-09-03 15:52:15,652 basehttp 18503 6245101568 "POST /en/patients/renew-insurance/5/ HTTP/1.1" 500 126 +INFO 2025-09-03 15:52:24,105 basehttp 18503 6245101568 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 76173 +INFO 2025-09-03 15:52:40,863 basehttp 18503 6245101568 "GET /en/appointments/ HTTP/1.1" 200 44186 +INFO 2025-09-03 15:52:40,896 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:52:40,911 basehttp 18503 6211448832 "GET /en/appointments/stats/ HTTP/1.1" 200 3132 +INFO 2025-09-03 15:52:46,120 basehttp 18503 6211448832 "GET /en/emr HTTP/1.1" 301 0 +INFO 2025-09-03 15:52:46,143 basehttp 18503 6245101568 "GET /en/emr/ HTTP/1.1" 200 71709 +INFO 2025-09-03 15:52:46,193 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:52:46,198 basehttp 18503 6194622464 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 15:52:50,838 basehttp 18503 6194622464 "GET /en/emr/ HTTP/1.1" 200 71709 +INFO 2025-09-03 15:52:50,889 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:52:50,894 basehttp 18503 6245101568 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 15:52:53,686 basehttp 18503 6245101568 "GET /en/radiology HTTP/1.1" 301 0 +INFO 2025-09-03 15:52:53,767 basehttp 18503 6194622464 "GET /en/radiology/ HTTP/1.1" 200 29206 +INFO 2025-09-03 15:52:53,799 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:52:53,828 log 18503 6211448832 Internal Server Error: /en/radiology/htmx/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py", line 861, in radiology_stats + 'critical_findings': RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'has_critical_findings' into field. Choices are: addendum, addendum_datetime, clinical_history, created_at, critical_communicated, critical_communicated_datetime, critical_communicated_to, critical_finding, dictated_by, dictated_by_id, dictated_datetime, finalized_datetime, findings, id, impression, radiologist, radiologist_id, recommendations, report_id, report_length, status, structured_data, study, study_id, technique, template_used, template_used_id, transcribed_by, transcribed_by_id, transcribed_datetime, turnaround_time, updated_at, verified_datetime +ERROR 2025-09-03 15:52:53,830 basehttp 18503 6211448832 "GET /en/radiology/htmx/stats/ HTTP/1.1" 500 124367 +INFO 2025-09-03 15:52:55,899 basehttp 18503 6211448832 "GET /en/radiology/orders/ HTTP/1.1" 200 88633 +INFO 2025-09-03 15:52:55,932 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 15:52:59,433 log 18503 6211448832 Internal Server Error: /en/radiology/orders/403/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py", line 2128, in get_prep_value + return int(value) + ^^^^^^^^^^ +TypeError: int() argument must be a string, a bytes-like object or a real number, not 'method' + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/radiology/views.py", line 359, in get_context_data + study_reports = RadiologyReport.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1588, in build_filter + condition = self.build_lookup(lookups, col, value) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1415, in build_lookup + lookup = lookup_class(lhs, rhs) + ^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/lookups.py", line 38, in __init__ + self.rhs = self.get_prep_lookup() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/fields/related_lookups.py", line 112, in get_prep_lookup + self.rhs = target_field.get_prep_value(self.rhs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/fields/__init__.py", line 2130, in get_prep_value + raise e.__class__( +TypeError: Field 'id' expected a number but got ]>>. +ERROR 2025-09-03 15:52:59,434 basehttp 18503 6211448832 "GET /en/radiology/orders/403/ HTTP/1.1" 500 151378 +INFO 2025-09-03 15:53:05,498 basehttp 18503 6211448832 "GET /en/emr/ HTTP/1.1" 200 71709 +INFO 2025-09-03 15:53:05,549 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:53:05,555 basehttp 18503 6194622464 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 15:53:07,760 basehttp 18503 6194622464 "GET /en/inpatients/ HTTP/1.1" 200 41779 +INFO 2025-09-03 15:53:07,806 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:53:07,808 basehttp 18503 6211448832 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-09-03 15:53:07,832 basehttp 18503 6228275200 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-09-03 15:53:10,466 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:53:10,547 basehttp 18503 6228275200 "GET /static/plugins/dropzone/dist/min/dropzone.min.js HTTP/1.1" 200 114702 +INFO 2025-09-03 15:53:10,583 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:53:10,697 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:53:40,707 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:54:10,596 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:54:10,699 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:54:40,719 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:55:10,599 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:55:10,696 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:55:40,720 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:56:10,603 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:56:10,692 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:56:40,719 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:57:10,606 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:57:10,696 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:57:40,720 basehttp 18503 6228275200 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:58:10,602 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:58:10,690 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:58:40,722 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:59:10,609 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 15:59:10,702 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 15:59:40,721 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:00:10,613 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:00:10,706 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:00:40,721 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:01:10,620 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:01:10,710 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:01:40,721 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:02:10,623 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:02:10,700 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:02:40,696 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:03:10,635 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:03:10,716 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:03:40,728 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:04:10,632 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:04:10,716 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:04:40,712 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:05:10,631 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:05:10,706 basehttp 18503 6194622464 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 16:05:19,228 basehttp 18503 6194622464 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36140 +INFO 2025-09-03 16:05:19,259 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:05:55,027 basehttp 18503 6194622464 "GET /en/patients/insurance-info/ HTTP/1.1" 200 138485 +INFO 2025-09-03 16:05:55,077 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:05:57,467 basehttp 18503 6194622464 "GET /en/patients/insurance-info/ HTTP/1.1" 200 138485 +INFO 2025-09-03 16:05:57,510 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:05:59,351 basehttp 18503 6194622464 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36140 +INFO 2025-09-03 16:05:59,383 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:06:08,880 basehttp 18503 6194622464 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 14969 +INFO 2025-09-03 16:06:29,412 basehttp 18503 6194622464 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 53709 +INFO 2025-09-03 16:06:59,398 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:06:59,408 basehttp 18503 6211448832 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 80703 +INFO 2025-09-03 16:07:29,402 basehttp 18503 6211448832 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 77457 +INFO 2025-09-03 16:07:59,392 basehttp 18503 6211448832 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:07:59,401 basehttp 18503 6194622464 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 75736 +INFO 2025-09-03 16:08:01,231 basehttp 18503 6194622464 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36140 +INFO 2025-09-03 16:08:01,274 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:08:09,008 log 18503 6194622464 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:08:09,008 basehttp 18503 6194622464 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:08:16,956 basehttp 18503 6194622464 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 13231 +INFO 2025-09-03 16:08:30,438 basehttp 18503 6194622464 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 37289 +WARNING 2025-09-03 16:08:30,453 log 18503 6194622464 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:08:30,453 basehttp 18503 6194622464 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:08:30,571 basehttp 18503 6211448832 "GET /en/patients/emergency-contacts/6/ HTTP/1.1" 200 145 +INFO 2025-09-03 16:08:30,572 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 16:08:30,577 log 18503 6245101568 Internal Server Error: /en/patients/appointments/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +ERROR 2025-09-03 16:08:30,579 basehttp 18503 6245101568 "GET /en/patients/appointments/6/ HTTP/1.1" 500 63351 +INFO 2025-09-03 16:08:30,579 basehttp 18503 6228275200 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36164 +INFO 2025-09-03 16:08:30,641 basehttp 18503 6228275200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:08:36,166 basehttp 18503 6228275200 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 37289 +INFO 2025-09-03 16:08:36,178 basehttp 18503 6194622464 "GET /static/css/custom.css HTTP/1.1" 200 2063 +WARNING 2025-09-03 16:08:36,184 log 18503 6211448832 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-09-03 16:08:36,184 basehttp 18503 6228275200 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +WARNING 2025-09-03 16:08:36,185 basehttp 18503 6211448832 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:08:36,189 basehttp 18503 6194622464 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 16:08:36,193 basehttp 18503 6228275200 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-03 16:08:36,194 basehttp 18503 6278754304 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 16:08:36,195 basehttp 18503 6261927936 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 16:08:36,195 basehttp 18503 6245101568 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 16:08:36,197 basehttp 18503 6194622464 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 16:08:36,202 basehttp 18503 6211448832 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 16:08:36,500 basehttp 18503 6211448832 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 16:08:36,524 basehttp 18503 6211448832 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 16:08:36,525 basehttp 18503 6194622464 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 16:08:36,525 basehttp 18503 6278754304 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 16:08:36,525 basehttp 18503 6261927936 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 16:08:36,525 basehttp 18503 6245101568 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 16:08:36,528 basehttp 18503 6228275200 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 16:08:36,528 basehttp 18503 6278754304 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 16:08:36,528 basehttp 18503 6261927936 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 16:08:36,529 basehttp 18503 6194622464 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 16:08:36,530 basehttp 18503 6245101568 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 16:08:36,532 basehttp 18503 6228275200 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 16:08:36,533 basehttp 18503 6228275200 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 16:08:36,536 basehttp 18503 6211448832 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-03 16:08:36,536 basehttp 18503 6228275200 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 16:08:36,537 basehttp 18503 6211448832 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 16:08:36,538 basehttp 18503 6211448832 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 16:08:36,538 basehttp 18503 6228275200 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 16:08:36,543 basehttp 18503 6228275200 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 16:08:36,543 basehttp 18503 6211448832 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 16:08:36,544 basehttp 18503 6228275200 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 16:08:36,545 basehttp 18503 6211448832 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 16:08:36,546 basehttp 18503 6211448832 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 16:08:36,546 basehttp 18503 6228275200 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-03 16:08:36,560 basehttp 18503 6278754304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 16:08:36,564 log 18503 6245101568 Internal Server Error: /en/patients/appointments/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +INFO 2025-09-03 16:08:36,565 basehttp 18503 6261927936 "GET /en/patients/emergency-contacts/6/ HTTP/1.1" 200 145 +ERROR 2025-09-03 16:08:36,566 basehttp 18503 6245101568 "GET /en/patients/appointments/6/ HTTP/1.1" 500 63616 +INFO 2025-09-03 16:08:36,566 basehttp 18503 6194622464 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36164 +INFO 2025-09-03 16:08:36,660 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:08:36,665 log 18503 6194622464 Not Found: /favicon.ico +WARNING 2025-09-03 16:08:36,665 basehttp 18503 6194622464 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-03 16:08:41,490 basehttp 18503 6194622464 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 37289 +WARNING 2025-09-03 16:08:41,529 log 18503 6194622464 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:08:41,529 basehttp 18503 6194622464 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:08:41,610 basehttp 18503 6194622464 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 16:08:41,619 log 18503 6278754304 Internal Server Error: /en/patients/appointments/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +INFO 2025-09-03 16:08:41,619 basehttp 18503 6245101568 "GET /en/patients/emergency-contacts/6/ HTTP/1.1" 200 145 +ERROR 2025-09-03 16:08:41,619 basehttp 18503 6278754304 "GET /en/patients/appointments/6/ HTTP/1.1" 500 63351 +INFO 2025-09-03 16:08:41,619 basehttp 18503 6261927936 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36164 +INFO 2025-09-03 16:08:41,670 basehttp 18503 6278754304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 16:09:11,398 log 18503 6278754304 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_primary_insurance' not found. 'check_primary_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 16:09:11,399 basehttp 18503 6278754304 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 184443 +WARNING 2025-09-03 16:09:11,418 log 18503 6278754304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:09:11,418 basehttp 18503 6278754304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:09:14,207 log 18503 6261927936 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-09-03 16:09:14,208 basehttp 18503 6278754304 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 76823 +WARNING 2025-09-03 16:09:14,208 basehttp 18503 6261927936 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:09:14,222 log 18503 6278754304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:09:14,222 basehttp 18503 6278754304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:09:41,603 basehttp 18503 6278754304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:09:41,708 basehttp 18503 6261927936 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:09:41,710 basehttp 18503 6278754304 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 56822 +INFO 2025-09-03 16:10:11,709 basehttp 18503 6278754304 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 67960 +INFO 2025-09-03 16:10:15,315 basehttp 18503 6278754304 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 36837 +WARNING 2025-09-03 16:10:15,337 log 18503 6278754304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:10:15,338 basehttp 18503 6278754304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:10:15,406 basehttp 18503 6278754304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 16:10:15,412 log 18503 6245101568 Internal Server Error: /en/patients/appointments/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: patient_appointment_list() got an unexpected keyword argument 'patient_id' +INFO 2025-09-03 16:10:15,412 basehttp 18503 6261927936 "GET /en/patients/emergency-contacts/6/ HTTP/1.1" 200 145 +ERROR 2025-09-03 16:10:15,412 basehttp 18503 6245101568 "GET /en/patients/appointments/6/ HTTP/1.1" 500 63351 +INFO 2025-09-03 16:11:15,392 basehttp 18503 6245101568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:11:22,561 autoreload 18503 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 16:11:23,045 autoreload 32187 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-03 16:11:23,942 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:11:23,942 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:11:23,950 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:11:23,950 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:11:28,119 log 32187 6156185600 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'patient_form' not found. 'patient_form' is not a valid view function or pattern name. +ERROR 2025-09-03 16:11:28,120 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 186338 +WARNING 2025-09-03 16:11:28,136 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:11:28,136 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:11:28,160 log 32187 6156185600 Not Found: /favicon.ico +WARNING 2025-09-03 16:11:28,161 basehttp 32187 6156185600 "GET /favicon.ico HTTP/1.1" 404 2557 +ERROR 2025-09-03 16:12:20,760 log 32187 6156185600 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'patient_confirm_delete' not found. 'patient_confirm_delete' is not a valid view function or pattern name. +ERROR 2025-09-03 16:12:20,761 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 185824 +WARNING 2025-09-03 16:12:20,778 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:12:20,778 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:12:39,356 log 32187 6156185600 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'appointment_form' not found. 'appointment_form' is not a valid view function or pattern name. +ERROR 2025-09-03 16:12:39,357 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 186030 +WARNING 2025-09-03 16:12:39,374 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:12:39,375 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:13:32,585 log 32187 6156185600 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'emergency_contact_form' not found. 'emergency_contact_form' is not a valid view function or pattern name. +ERROR 2025-09-03 16:13:32,586 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 185456 +WARNING 2025-09-03 16:13:32,599 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:13:32,599 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:14:03,433 log 32187 6156185600 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'emergency_contact_list' not found. 'emergency_contact_list' is not a valid view function or pattern name. +ERROR 2025-09-03 16:14:03,434 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 202148 +WARNING 2025-09-03 16:14:03,447 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:14:03,447 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:14:49,929 log 32187 6156185600 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'insurance_form' not found. 'insurance_form' is not a valid view function or pattern name. +ERROR 2025-09-03 16:14:49,933 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 185231 +WARNING 2025-09-03 16:14:49,948 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:14:49,948 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:15:13,280 log 32187 6156185600 Internal Server Error: /en/patients/patientprofile/6/details/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'patient_note_form' not found. 'patient_note_form' is not a valid view function or pattern name. +ERROR 2025-09-03 16:15:13,281 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 500 184334 +WARNING 2025-09-03 16:15:13,296 log 32187 6156185600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:15:13,296 basehttp 32187 6156185600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:15:45,800 basehttp 32187 6156185600 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 32405 +INFO 2025-09-03 16:15:45,812 basehttp 32187 13170143232 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-03 16:15:45,814 basehttp 32187 6156185600 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-03 16:15:45,815 basehttp 32187 13220622336 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 16:15:45,817 basehttp 32187 6156185600 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +WARNING 2025-09-03 16:15:45,823 log 32187 13170143232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:15:45,824 basehttp 32187 13170143232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:15:45,825 basehttp 32187 6156185600 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 16:15:45,828 basehttp 32187 13203795968 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 16:15:45,830 basehttp 32187 13186969600 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 16:15:45,832 basehttp 32187 6173011968 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 16:15:45,832 basehttp 32187 13220622336 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 16:15:46,240 basehttp 32187 13220622336 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 16:15:46,272 basehttp 32187 13220622336 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 16:15:46,273 basehttp 32187 13186969600 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 16:15:46,273 basehttp 32187 13203795968 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 16:15:46,273 basehttp 32187 6156185600 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 16:15:46,274 basehttp 32187 6173011968 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 16:15:46,276 basehttp 32187 13170143232 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 16:15:46,276 basehttp 32187 6156185600 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 16:15:46,277 basehttp 32187 13203795968 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 16:15:46,277 basehttp 32187 13186969600 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 16:15:46,279 basehttp 32187 13170143232 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 16:15:46,281 basehttp 32187 13220622336 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-03 16:15:46,281 basehttp 32187 6156185600 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 16:15:46,281 basehttp 32187 13203795968 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 16:15:46,281 basehttp 32187 13186969600 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 16:15:46,281 basehttp 32187 13170143232 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 16:15:46,286 basehttp 32187 13203795968 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 16:15:46,286 basehttp 32187 6156185600 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 16:15:46,288 basehttp 32187 13220622336 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 16:15:46,288 basehttp 32187 13186969600 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 16:15:46,289 basehttp 32187 13170143232 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 16:15:46,290 basehttp 32187 6173011968 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:15:46,291 basehttp 32187 13203795968 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 16:15:46,291 basehttp 32187 6156185600 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-03 16:15:46,291 basehttp 32187 13220622336 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 16:15:54,969 basehttp 32187 13220622336 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36164 +WARNING 2025-09-03 16:15:54,985 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:15:54,985 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:15:55,068 basehttp 32187 13220622336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:16:03,997 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:16:04,001 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:16:04,009 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:16:04,009 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:16:33,533 basehttp 32187 13220622336 "GET /en/patients/patientprofile/6/details/ HTTP/1.1" 200 32411 +WARNING 2025-09-03 16:16:33,548 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:16:33,548 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:16:33,601 basehttp 32187 13220622336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:16:46,578 basehttp 32187 13220622336 "GET /en/appointments/create/?patient=6 HTTP/1.1" 200 36516 +WARNING 2025-09-03 16:16:46,597 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:16:46,597 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:16:46,648 basehttp 32187 13220622336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:16:54,094 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:16:54,094 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:16:54,105 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:16:54,105 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:16:56,001 basehttp 32187 13220622336 "GET /en/emr/encounters/create/?patient=6 HTTP/1.1" 200 56248 +WARNING 2025-09-03 16:16:56,020 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:16:56,020 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:16:56,076 basehttp 32187 13220622336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:17:01,130 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:01,130 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:17:01,140 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:01,140 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:17:02,281 basehttp 32187 13220622336 "GET /en/laboratory/orders/create/?patient=6 HTTP/1.1" 200 36955 +WARNING 2025-09-03 16:17:02,300 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:02,300 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:17:02,349 basehttp 32187 13220622336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:17:05,833 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:05,833 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:17:05,846 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:05,846 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:17:15,810 basehttp 32187 13220622336 "GET /en/pharmacy/prescriptions/create/?patient=6 HTTP/1.1" 200 71387 +WARNING 2025-09-03 16:17:15,828 log 32187 13220622336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:15,828 basehttp 32187 13220622336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:17:15,887 basehttp 32187 13220622336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:17:40,575 basehttp 32187 13220622336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:17:40,576 log 32187 13203795968 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:40,577 basehttp 32187 13203795968 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:17:40,585 log 32187 13203795968 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:40,585 basehttp 32187 13203795968 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:17:41,306 basehttp 32187 13203795968 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36140 +WARNING 2025-09-03 16:17:41,325 log 32187 13203795968 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:41,325 basehttp 32187 13203795968 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:17:42,785 log 32187 13203795968 Internal Server Error: /en/patients/insurance-info/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'bulk_verify_insurance' not found. 'bulk_verify_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 16:17:42,786 basehttp 32187 13203795968 "GET /en/patients/insurance-info/ HTTP/1.1" 500 232307 +WARNING 2025-09-03 16:17:42,801 log 32187 13203795968 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:42,802 basehttp 32187 13203795968 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:17:45,963 log 32187 13203795968 Internal Server Error: /en/patients/insurance-info/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'bulk_verify_insurance' not found. 'bulk_verify_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 16:17:45,964 basehttp 32187 13203795968 "GET /en/patients/insurance-info/ HTTP/1.1" 500 232575 +WARNING 2025-09-03 16:17:45,979 log 32187 13203795968 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:45,979 basehttp 32187 13203795968 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:17:47,344 log 32187 13203795968 Internal Server Error: /en/patients/insurance-info/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'bulk_verify_insurance' not found. 'bulk_verify_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 16:17:47,345 basehttp 32187 13203795968 "GET /en/patients/insurance-info/ HTTP/1.1" 500 232575 +WARNING 2025-09-03 16:17:47,359 log 32187 13203795968 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:17:47,360 basehttp 32187 13203795968 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:18:24,507 basehttp 32187 13203795968 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140257 +INFO 2025-09-03 16:18:24,517 basehttp 32187 6173011968 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-03 16:18:24,517 basehttp 32187 13220622336 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-03 16:18:24,518 basehttp 32187 13203795968 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-03 16:18:24,518 basehttp 32187 6156185600 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +WARNING 2025-09-03 16:18:24,521 log 32187 13170143232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:18:24,521 basehttp 32187 13170143232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:18:24,522 basehttp 32187 13203795968 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-03 16:18:24,523 basehttp 32187 6156185600 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-03 16:18:24,589 basehttp 32187 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:19:24,598 basehttp 32187 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:20:24,610 basehttp 32187 6156185600 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:20:34,189 autoreload 32187 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 16:20:34,626 autoreload 36329 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:21:00,691 autoreload 36329 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 16:21:01,020 autoreload 36566 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:21:24,682 basehttp 36566 6162264064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:21:38,632 autoreload 36566 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 16:21:38,968 autoreload 36879 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:22:24,642 basehttp 36879 6168653824 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:22:53,857 autoreload 36879 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 16:22:54,180 autoreload 37429 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:23:20,287 autoreload 37429 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 16:23:20,625 autoreload 37587 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:23:24,649 basehttp 37587 6124466176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:23:24,679 basehttp 37587 6141292544 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140257 +WARNING 2025-09-03 16:23:24,697 log 37587 6141292544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:23:24,698 basehttp 37587 6141292544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:23:24,765 basehttp 37587 6141292544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:24:24,764 basehttp 37587 6141292544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:25:03,528 autoreload 37587 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 16:25:03,868 autoreload 38363 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:25:13,997 autoreload 38498 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:25:16,694 basehttp 38498 6129905664 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140382 +WARNING 2025-09-03 16:25:16,705 log 38498 6129905664 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:25:16,705 basehttp 38498 6129905664 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:25:16,763 basehttp 38498 6129905664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:25:50,626 autoreload 38498 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 16:25:50,959 autoreload 38804 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:25:59,047 autoreload 38860 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:26:01,318 basehttp 38860 6133968896 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140382 +WARNING 2025-09-03 16:26:01,336 log 38860 6133968896 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:26:01,336 basehttp 38860 6133968896 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:26:01,398 basehttp 38860 6133968896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 16:26:36,376 log 38860 6133968896 Internal Server Error: /en/patients/insurance-info/update/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_primary_insurance' not found. 'check_primary_insurance' is not a valid view function or pattern name. +ERROR 2025-09-03 16:26:36,378 basehttp 38860 6133968896 "GET /en/patients/insurance-info/update/5/ HTTP/1.1" 500 186941 +WARNING 2025-09-03 16:26:36,396 log 38860 6133968896 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:26:36,396 basehttp 38860 6133968896 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:31:19,383 autoreload 38860 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 16:31:19,832 autoreload 41272 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:31:39,778 autoreload 41272 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 16:31:40,203 autoreload 41441 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 16:31:44,101 log 41441 6125826048 Internal Server Error: /en/patients/insurance-info/update/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'validate_policy_number' not found. 'validate_policy_number' is not a valid view function or pattern name. +ERROR 2025-09-03 16:31:44,103 basehttp 41441 6125826048 "GET /en/patients/insurance-info/update/5/ HTTP/1.1" 500 187353 +WARNING 2025-09-03 16:31:44,129 log 41441 6125826048 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:31:44,129 basehttp 41441 6125826048 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:37:35,837 autoreload 41441 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 16:37:36,280 autoreload 44059 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:37:53,160 autoreload 44059 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 16:37:53,557 autoreload 44228 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 16:37:55,892 log 44228 6170112000 Internal Server Error: /en/patients/insurance-info/update/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'save_insurance_draft' not found. 'save_insurance_draft' is not a valid view function or pattern name. +ERROR 2025-09-03 16:37:55,894 basehttp 44228 6170112000 "GET /en/patients/insurance-info/update/5/ HTTP/1.1" 500 186681 +WARNING 2025-09-03 16:37:55,909 log 44228 6170112000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:37:55,909 basehttp 44228 6170112000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:39:57,209 autoreload 44228 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 16:39:57,655 autoreload 45179 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:40:50,907 autoreload 45179 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 16:40:51,217 autoreload 45579 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 16:40:54,116 log 45579 6170324992 Internal Server Error: /en/patients/insurance-info/update/5/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'verify_with_provider' not found. 'verify_with_provider' is not a valid view function or pattern name. +ERROR 2025-09-03 16:40:54,118 basehttp 45579 6170324992 "GET /en/patients/insurance-info/update/5/ HTTP/1.1" 500 187475 +WARNING 2025-09-03 16:40:54,133 log 45579 6170324992 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:40:54,133 basehttp 45579 6170324992 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:41:40,831 log 45579 6170324992 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:41:40,831 basehttp 45579 6170324992 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:41:41,803 basehttp 45579 6170324992 "GET /en/ HTTP/1.1" 200 49744 +WARNING 2025-09-03 16:41:41,816 log 45579 6170324992 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:41:41,816 basehttp 45579 6170324992 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:41:41,851 basehttp 45579 12918534144 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-03 16:41:41,852 basehttp 45579 12901707776 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 16:41:41,852 basehttp 45579 6170324992 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2095 +WARNING 2025-09-03 16:41:44,203 log 45579 6170324992 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:41:44,204 basehttp 45579 6170324992 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:41:44,214 log 45579 6170324992 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:41:44,214 basehttp 45579 6170324992 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:41:47,781 basehttp 45579 6170324992 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36145 +WARNING 2025-09-03 16:41:47,796 log 45579 6170324992 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:41:47,796 basehttp 45579 6170324992 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:41:47,846 basehttp 45579 6170324992 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:41:57,002 basehttp 45579 6170324992 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 14940 +INFO 2025-09-03 16:42:01,973 basehttp 45579 6170324992 "POST /en/patients/check-eligibility/5/ HTTP/1.1" 200 13229 +INFO 2025-09-03 16:42:17,873 basehttp 45579 6170324992 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 59419 +INFO 2025-09-03 16:42:47,876 basehttp 45579 6170324992 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:42:47,879 basehttp 45579 12901707776 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 54197 +INFO 2025-09-03 16:43:17,872 basehttp 45579 12901707776 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 80252 +INFO 2025-09-03 16:43:47,875 basehttp 45579 12901707776 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:43:47,879 basehttp 45579 6170324992 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 68006 +INFO 2025-09-03 16:44:17,869 basehttp 45579 6170324992 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 76773 +INFO 2025-09-03 16:44:48,720 basehttp 45579 6170324992 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:44:48,724 basehttp 45579 12901707776 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 48154 +ERROR 2025-09-03 16:45:00,443 log 45579 12901707776 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'verify_with_provider' not found. 'verify_with_provider' is not a valid view function or pattern name. +ERROR 2025-09-03 16:45:00,445 basehttp 45579 12901707776 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 184832 +WARNING 2025-09-03 16:45:00,462 log 45579 12901707776 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:45:00,462 basehttp 45579 12901707776 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:48:18,872 autoreload 45579 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 16:48:19,254 autoreload 48837 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 16:48:54,720 autoreload 48837 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 16:48:55,075 autoreload 49152 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 16:49:14,429 log 49152 6134444032 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_eligibility' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/check\\-eligibility/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 16:49:14,432 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 188253 +WARNING 2025-09-03 16:49:14,446 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:49:14,447 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:49:17,242 log 49152 6134444032 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_eligibility' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/check\\-eligibility/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 16:49:17,243 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 188253 +WARNING 2025-09-03 16:49:17,254 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:49:17,254 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:49:52,486 log 49152 6134444032 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_eligibility' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/check\\-eligibility/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 16:49:52,487 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 188316 +WARNING 2025-09-03 16:49:52,501 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:49:52,501 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:49:53,861 log 49152 6134444032 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_eligibility' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/check\\-eligibility/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 16:49:53,862 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 188316 +WARNING 2025-09-03 16:49:53,874 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:49:53,874 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:50:01,019 log 49152 6134444032 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_eligibility' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/check\\-eligibility/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 16:50:01,021 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 188309 +WARNING 2025-09-03 16:50:01,033 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:50:01,033 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-03 16:50:26,006 log 49152 6134444032 Internal Server Error: /en/patients/insurance-info/create/6/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_eligibility' with arguments '('',)' not found. 1 pattern(s) tried: ['en/patients/check\\-eligibility/(?P[0-9]+)/\\Z'] +ERROR 2025-09-03 16:50:26,007 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 500 188204 +WARNING 2025-09-03 16:50:26,020 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:50:26,020 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:50:40,293 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/6/ HTTP/1.1" 200 40576 +WARNING 2025-09-03 16:50:40,306 basehttp 49152 6134444032 "GET /static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 404 2146 +WARNING 2025-09-03 16:50:40,306 basehttp 49152 6168096768 "GET /static/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 404 2140 +WARNING 2025-09-03 16:50:40,309 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:50:40,309 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:50:40,397 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:51:07,727 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:51:07,728 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:51:07,729 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:51:07,729 basehttp 49152 6168096768 - Broken pipe from ('127.0.0.1', 55010) +INFO 2025-09-03 16:51:07,731 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 55815 +WARNING 2025-09-03 16:51:07,739 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:51:07,739 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:51:17,835 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 47772 +INFO 2025-09-03 16:51:47,829 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 66565 +INFO 2025-09-03 16:52:07,700 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:52:17,816 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 72881 +INFO 2025-09-03 16:52:24,683 basehttp 49152 6151270400 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36145 +WARNING 2025-09-03 16:52:24,700 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:52:24,700 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:52:24,805 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:52:54,829 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 59504 +INFO 2025-09-03 16:53:24,813 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:53:24,816 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 78147 +INFO 2025-09-03 16:53:54,809 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 52726 +INFO 2025-09-03 16:54:24,790 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:54:24,796 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 53055 +INFO 2025-09-03 16:54:36,983 basehttp 49152 6151270400 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36147 +WARNING 2025-09-03 16:54:37,001 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:54:37,001 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:54:37,057 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:55:04,254 basehttp 49152 6151270400 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36147 +INFO 2025-09-03 16:55:04,269 basehttp 49152 13304360960 "GET /static/css/custom.css HTTP/1.1" 200 2063 +WARNING 2025-09-03 16:55:04,272 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:55:04,273 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:55:04,277 basehttp 49152 6134444032 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-03 16:55:04,278 basehttp 49152 13304360960 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 16:55:04,281 basehttp 49152 6151270400 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-03 16:55:04,282 basehttp 49152 13338013696 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 16:55:04,284 basehttp 49152 13321187328 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 16:55:04,284 basehttp 49152 6134444032 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 16:55:04,286 basehttp 49152 6168096768 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 16:55:04,293 basehttp 49152 13304360960 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 16:55:04,580 basehttp 49152 13304360960 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 16:55:04,609 basehttp 49152 13338013696 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 16:55:04,609 basehttp 49152 13304360960 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 16:55:04,609 basehttp 49152 13321187328 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 16:55:04,611 basehttp 49152 6168096768 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 16:55:04,612 basehttp 49152 6134444032 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 16:55:04,613 basehttp 49152 6151270400 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 16:55:04,615 basehttp 49152 13321187328 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 16:55:04,615 basehttp 49152 13304360960 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 16:55:04,616 basehttp 49152 6168096768 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 16:55:04,618 basehttp 49152 13321187328 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 16:55:04,623 basehttp 49152 6134444032 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 16:55:04,632 basehttp 49152 6168096768 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 16:55:04,633 basehttp 49152 13304360960 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 16:55:04,634 basehttp 49152 13321187328 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 16:55:04,635 basehttp 49152 6134444032 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 16:55:04,636 basehttp 49152 13338013696 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-03 16:55:04,637 basehttp 49152 6168096768 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 16:55:04,639 basehttp 49152 13338013696 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 16:55:04,639 basehttp 49152 13321187328 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 16:55:04,640 basehttp 49152 6134444032 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 16:55:04,640 basehttp 49152 6168096768 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 16:55:04,641 basehttp 49152 13304360960 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 16:55:04,641 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:55:04,642 basehttp 49152 13321187328 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +WARNING 2025-09-03 16:55:04,754 log 49152 13321187328 Not Found: /favicon.ico +WARNING 2025-09-03 16:55:04,755 basehttp 49152 13321187328 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-03 16:55:34,655 basehttp 49152 13321187328 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 67000 +INFO 2025-09-03 16:56:04,093 basehttp 49152 13321187328 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36171 +WARNING 2025-09-03 16:56:04,108 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:56:04,108 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:56:04,193 basehttp 49152 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:56:06,146 basehttp 49152 13321187328 "GET /en/patients/patientprofile/7/details/ HTTP/1.1" 200 32118 +WARNING 2025-09-03 16:56:06,163 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:56:06,163 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:56:06,212 basehttp 49152 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:56:09,434 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:56:09,434 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:56:09,444 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:56:09,445 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:56:34,209 basehttp 49152 13321187328 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 74922 +INFO 2025-09-03 16:56:54,553 basehttp 49152 13321187328 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36177 +WARNING 2025-09-03 16:56:54,569 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:56:54,569 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:56:54,619 basehttp 49152 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:57:01,942 basehttp 49152 13321187328 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140382 +INFO 2025-09-03 16:57:01,957 basehttp 49152 13304360960 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-03 16:57:01,957 basehttp 49152 6134444032 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-03 16:57:01,958 basehttp 49152 6151270400 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-03 16:57:01,959 basehttp 49152 6168096768 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +WARNING 2025-09-03 16:57:01,962 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:57:01,962 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:57:01,964 basehttp 49152 6168096768 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-03 16:57:01,964 basehttp 49152 13321187328 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-03 16:57:02,028 basehttp 49152 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 16:57:06,244 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:57:06,244 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 16:57:06,254 log 49152 13321187328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:57:06,254 basehttp 49152 13321187328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:57:24,637 basehttp 49152 13321187328 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 70641 +INFO 2025-09-03 16:57:54,637 basehttp 49152 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:57:54,644 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 79948 +INFO 2025-09-03 16:58:24,636 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 75853 +INFO 2025-09-03 16:58:54,637 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:58:54,642 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 66186 +INFO 2025-09-03 16:59:15,464 basehttp 49152 6151270400 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36096 +WARNING 2025-09-03 16:59:15,478 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 16:59:15,479 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 16:59:15,529 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 16:59:45,556 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 76535 +INFO 2025-09-03 17:00:15,536 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:00:15,543 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 65714 +INFO 2025-09-03 17:00:45,547 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/6/ HTTP/1.1" 200 69964 +INFO 2025-09-03 17:00:55,925 basehttp 49152 6134444032 "GET /en/patients/insurance-info/6/ HTTP/1.1" 200 36096 +WARNING 2025-09-03 17:00:55,942 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:00:55,942 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:00:55,996 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:00:58,630 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/7/ HTTP/1.1" 200 40576 +WARNING 2025-09-03 17:00:58,645 basehttp 49152 6151270400 "GET /static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 404 2146 +WARNING 2025-09-03 17:00:58,649 basehttp 49152 6151270400 "GET /static/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 404 2140 +WARNING 2025-09-03 17:00:58,650 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:00:58,651 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:00:58,702 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 17:01:05,029 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:01:05,030 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 17:01:05,040 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:01:05,040 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 17:01:09,456 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:01:09,456 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:01:09,457 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:01:09,462 basehttp 49152 6151270400 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 56817 +WARNING 2025-09-03 17:01:09,482 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:01:09,482 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 17:01:13,278 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:01:13,278 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:01:16,730 basehttp 49152 6134444032 "GET /en/patients/insurance-info/16/ HTTP/1.1" 200 36125 +WARNING 2025-09-03 17:01:16,747 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:01:16,747 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:01:16,793 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:01:46,831 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/16/ HTTP/1.1" 200 73282 +INFO 2025-09-03 17:02:13,096 basehttp 49152 6134444032 "GET /en/patients/insurance-info/16/ HTTP/1.1" 200 36125 +WARNING 2025-09-03 17:02:13,112 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:02:13,112 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:02:13,165 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:02:15,207 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 17:02:15,212 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:02:15,212 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 17:02:15,225 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:02:15,225 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:02:15,910 basehttp 49152 6151270400 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140798 +WARNING 2025-09-03 17:02:15,922 log 49152 6151270400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:02:15,923 basehttp 49152 6151270400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:02:15,991 basehttp 49152 6151270400 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:02:47,046 basehttp 49152 6151270400 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140812 +INFO 2025-09-03 17:02:47,055 basehttp 49152 6168096768 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-03 17:02:47,058 basehttp 49152 13321187328 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-03 17:02:47,060 basehttp 49152 13304360960 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-03 17:02:47,064 basehttp 49152 6151270400 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +WARNING 2025-09-03 17:02:47,069 log 49152 13304360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-09-03 17:02:47,070 basehttp 49152 13321187328 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-03 17:02:47,070 basehttp 49152 6151270400 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +WARNING 2025-09-03 17:02:47,071 basehttp 49152 13304360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:02:47,077 basehttp 49152 6168096768 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-03 17:02:47,078 basehttp 49152 13338013696 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-03 17:02:47,081 basehttp 49152 6134444032 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-03 17:02:47,081 basehttp 49152 6168096768 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-03 17:02:47,082 basehttp 49152 13338013696 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-03 17:02:47,084 basehttp 49152 6151270400 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-03 17:02:47,084 basehttp 49152 6168096768 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-03 17:02:47,086 basehttp 49152 13304360960 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +INFO 2025-09-03 17:02:47,086 basehttp 49152 13321187328 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-03 17:02:47,392 basehttp 49152 13321187328 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-03 17:02:47,430 basehttp 49152 13304360960 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-03 17:02:47,431 basehttp 49152 13321187328 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-03 17:02:47,432 basehttp 49152 13338013696 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-03 17:02:47,433 basehttp 49152 6151270400 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-03 17:02:47,433 basehttp 49152 6168096768 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-03 17:02:47,436 basehttp 49152 13338013696 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-03 17:02:47,436 basehttp 49152 6151270400 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-03 17:02:47,437 basehttp 49152 6168096768 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-03 17:02:47,438 basehttp 49152 6134444032 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-03 17:02:47,441 basehttp 49152 6151270400 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-03 17:02:47,442 basehttp 49152 13304360960 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-03 17:02:47,444 basehttp 49152 13338013696 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-03 17:02:47,444 basehttp 49152 6134444032 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-03 17:02:47,444 basehttp 49152 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:02:47,445 basehttp 49152 6168096768 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-03 17:02:47,447 basehttp 49152 6151270400 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-03 17:02:47,449 basehttp 49152 6168096768 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-03 17:02:47,449 basehttp 49152 13304360960 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-03 17:02:47,449 basehttp 49152 6134444032 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-03 17:02:47,451 basehttp 49152 13338013696 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-03 17:02:47,451 basehttp 49152 13321187328 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-03 17:02:47,451 basehttp 49152 6151270400 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-03 17:02:47,452 basehttp 49152 6134444032 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-03 17:02:47,452 basehttp 49152 6168096768 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +WARNING 2025-09-03 17:02:47,628 log 49152 6168096768 Not Found: /favicon.ico +WARNING 2025-09-03 17:02:47,628 basehttp 49152 6168096768 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-03 17:03:47,447 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:04:17,897 basehttp 49152 6168096768 "GET /en/patients/insurance-info/ HTTP/1.1" 200 140797 +WARNING 2025-09-03 17:04:17,911 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:04:17,911 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:04:18,008 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:04:55,377 basehttp 49152 6168096768 "GET /en/patients/insurance-info/ HTTP/1.1" 200 139304 +WARNING 2025-09-03 17:04:55,388 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:04:55,388 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:04:55,460 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:05:14,041 basehttp 49152 6168096768 "GET /en/patients/insurance-info/7/ HTTP/1.1" 200 36205 +WARNING 2025-09-03 17:05:14,059 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:05:14,060 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:05:14,109 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:05:26,798 basehttp 49152 6168096768 "GET /en/patients/patientprofile/8/details/ HTTP/1.1" 200 32128 +WARNING 2025-09-03 17:05:26,813 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:05:26,813 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:05:26,881 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 17:05:30,014 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:05:30,014 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 17:05:30,027 log 49152 6168096768 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:05:30,027 basehttp 49152 6168096768 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:05:44,142 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 64179 +INFO 2025-09-03 17:06:14,133 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:06:14,136 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 53775 +INFO 2025-09-03 17:06:44,132 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 48203 +INFO 2025-09-03 17:07:14,133 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:07:14,137 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 47322 +INFO 2025-09-03 17:07:44,131 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 69502 +INFO 2025-09-03 17:08:14,122 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:08:14,124 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 47890 +INFO 2025-09-03 17:08:44,128 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 53756 +INFO 2025-09-03 17:09:14,125 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 63952 +INFO 2025-09-03 17:09:14,126 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:09:44,129 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 53497 +INFO 2025-09-03 17:10:14,136 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 67836 +INFO 2025-09-03 17:10:14,136 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:10:14,149 basehttp 49152 6168096768 "GET /static/css/saudiriyalsymbol.woff2 HTTP/1.1" 200 720 +INFO 2025-09-03 17:10:44,127 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 67747 +INFO 2025-09-03 17:11:14,130 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 57845 +INFO 2025-09-03 17:11:14,132 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:11:44,125 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 71568 +INFO 2025-09-03 17:12:14,127 basehttp 49152 6134444032 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 60615 +INFO 2025-09-03 17:12:14,128 basehttp 49152 6168096768 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:12:44,123 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 55851 +INFO 2025-09-03 17:13:14,125 basehttp 49152 6168096768 "GET /en/patients/insurance-claims-history/7/ HTTP/1.1" 200 80533 +INFO 2025-09-03 17:13:14,132 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:13:34,753 basehttp 49152 6134444032 "GET /en/patients/insurance-info/create/8/ HTTP/1.1" 200 40576 +WARNING 2025-09-03 17:13:34,772 basehttp 49152 6168096768 "GET /static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 404 2146 +WARNING 2025-09-03 17:13:34,772 basehttp 49152 6151270400 "GET /static/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 404 2140 +WARNING 2025-09-03 17:13:34,775 log 49152 6134444032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:13:34,775 basehttp 49152 6134444032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:13:34,825 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:14:35,606 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:15:36,606 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:16:37,605 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:17:38,611 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:18:39,610 basehttp 49152 6134444032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:19:28,002 autoreload 49152 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 17:19:28,467 autoreload 62657 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:19:40,731 basehttp 62657 6170357760 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:20:42,683 basehttp 62657 6170357760 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:22:40,677 basehttp 62657 6170357760 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:24:40,666 basehttp 62657 6170357760 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:25:28,605 autoreload 62657 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:25:29,020 autoreload 65265 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:42:35,024 autoreload 73355 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:42:38,307 basehttp 73355 6158807040 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:42:39,925 basehttp 73355 6158807040 "GET /en/patients/insurance-info/create/8/ HTTP/1.1" 200 40576 +WARNING 2025-09-03 17:42:39,936 basehttp 73355 6175633408 "GET /static/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 404 2140 +WARNING 2025-09-03 17:42:39,937 basehttp 73355 6158807040 "GET /static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 404 2146 +WARNING 2025-09-03 17:42:40,017 log 73355 6158807040 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:42:40,017 basehttp 73355 6158807040 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:42:40,026 basehttp 73355 6158807040 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 17:42:40,976 log 73355 6158807040 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:42:40,976 basehttp 73355 6158807040 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-03 17:42:43,803 log 73355 6158807040 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:42:43,804 basehttp 73355 6158807040 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:42:45,630 basehttp 73355 6158807040 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36078 +WARNING 2025-09-03 17:42:45,648 log 73355 6158807040 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:42:45,648 basehttp 73355 6158807040 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:42:45,697 basehttp 73355 6158807040 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:43:15,725 basehttp 73355 6158807040 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 17:43:34,578 basehttp 73355 6158807040 "GET /en/admin/appointments/waitingqueue/11/change/ HTTP/1.1" 200 137846 +INFO 2025-09-03 17:43:34,598 basehttp 73355 6341865472 "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810 +INFO 2025-09-03 17:43:34,598 basehttp 73355 6325039104 "GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2808 +INFO 2025-09-03 17:43:34,598 basehttp 73355 6358691840 "GET /static/admin/css/forms.css HTTP/1.1" 200 8525 +INFO 2025-09-03 17:43:34,598 basehttp 73355 6375518208 "GET /static/admin/js/theme.js HTTP/1.1" 200 1653 +INFO 2025-09-03 17:43:34,599 basehttp 73355 6158807040 "GET /static/admin/css/base.css HTTP/1.1" 200 22120 +INFO 2025-09-03 17:43:34,601 basehttp 73355 6375518208 "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 +INFO 2025-09-03 17:43:34,602 basehttp 73355 6358691840 "GET /static/admin/js/core.js HTTP/1.1" 200 6208 +INFO 2025-09-03 17:43:34,602 basehttp 73355 6341865472 "GET /static/admin/css/responsive.css HTTP/1.1" 200 16565 +INFO 2025-09-03 17:43:34,602 basehttp 73355 6158807040 "GET /static/admin/js/inlines.js HTTP/1.1" 200 15628 +INFO 2025-09-03 17:43:34,605 basehttp 73355 6158807040 "GET /static/admin/js/actions.js HTTP/1.1" 200 8076 +INFO 2025-09-03 17:43:34,605 basehttp 73355 6358691840 "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 9777 +INFO 2025-09-03 17:43:34,606 basehttp 73355 6341865472 "GET /static/admin/js/SelectBox.js HTTP/1.1" 200 4530 +INFO 2025-09-03 17:43:34,606 basehttp 73355 6392344576 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:43:34,606 basehttp 73355 6375518208 "GET /static/admin/css/widgets.css HTTP/1.1" 200 11991 +INFO 2025-09-03 17:43:34,607 basehttp 73355 6358691840 "GET /static/admin/js/urlify.js HTTP/1.1" 200 7887 +INFO 2025-09-03 17:43:34,608 basehttp 73355 6375518208 "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 200 586 +INFO 2025-09-03 17:43:34,608 basehttp 73355 6158807040 "GET /static/admin/js/SelectFilter2.js HTTP/1.1" 200 15845 +INFO 2025-09-03 17:43:34,608 basehttp 73355 6392344576 "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 +INFO 2025-09-03 17:43:34,610 basehttp 73355 6325039104 "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 285314 +INFO 2025-09-03 17:43:34,611 basehttp 73355 6325039104 "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063 +INFO 2025-09-03 17:43:34,611 basehttp 73355 6341865472 "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 325171 +INFO 2025-09-03 17:43:34,616 basehttp 73355 6325039104 "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 +INFO 2025-09-03 17:43:34,617 basehttp 73355 6341865472 "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380 +INFO 2025-09-03 17:43:34,622 basehttp 73355 6325039104 "GET /static/admin/img/icon-deletelink.svg HTTP/1.1" 200 392 +INFO 2025-09-03 17:43:34,622 basehttp 73355 6158807040 "GET /static/admin/js/change_form.js HTTP/1.1" 200 606 +INFO 2025-09-03 17:43:34,623 basehttp 73355 6341865472 "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 +INFO 2025-09-03 17:43:34,623 basehttp 73355 6392344576 "GET /static/admin/img/icon-unknown.svg HTTP/1.1" 200 655 +INFO 2025-09-03 17:43:34,645 basehttp 73355 6392344576 "GET /static/admin/img/search.svg HTTP/1.1" 200 458 +INFO 2025-09-03 17:43:34,646 basehttp 73355 6341865472 "GET /static/admin/img/selector-icons.svg HTTP/1.1" 200 3291 +INFO 2025-09-03 17:43:43,096 basehttp 73355 6341865472 "GET /en/admin/patients/ HTTP/1.1" 200 8946 +INFO 2025-09-03 17:43:43,106 basehttp 73355 6341865472 "GET /static/admin/css/dashboard.css HTTP/1.1" 200 441 +INFO 2025-09-03 17:43:46,692 basehttp 73355 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:43:46,694 basehttp 73355 6392344576 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 17:44:08,575 autoreload 73355 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:44:08,961 autoreload 74058 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:44:52,470 autoreload 74058 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:44:52,770 autoreload 74382 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:44:57,973 autoreload 74382 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:44:58,251 autoreload 74393 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:45:00,591 basehttp 74393 6200373248 "GET /en/admin/appointments/waitingqueue/11/change/ HTTP/1.1" 200 137403 +INFO 2025-09-03 17:45:00,606 basehttp 74393 6200373248 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:45:16,675 basehttp 74393 6200373248 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 17:45:18,271 autoreload 74393 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:45:18,639 autoreload 74557 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:45:47,732 basehttp 74557 6203928576 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:46:09,294 autoreload 74557 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:46:09,623 autoreload 74955 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:46:47,384 autoreload 74955 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:46:47,690 autoreload 75294 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:48:47,599 autoreload 75294 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:48:47,884 autoreload 76148 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:49:33,106 autoreload 76148 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 17:49:33,422 autoreload 76541 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 17:49:36,642 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11737 +INFO 2025-09-03 17:49:39,096 basehttp 76541 6158381056 "GET /en/admin/appointments/waitingqueue/11/change/ HTTP/1.1" 200 139309 +INFO 2025-09-03 17:49:39,108 basehttp 76541 6158381056 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:49:46,776 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 17:49:47,501 basehttp 76541 6158381056 "GET /en/admin/patients/claimdocument/ HTTP/1.1" 200 70243 +INFO 2025-09-03 17:49:47,511 basehttp 76541 6158381056 "GET /static/admin/css/changelists.css HTTP/1.1" 200 6878 +INFO 2025-09-03 17:49:47,512 basehttp 76541 6158381056 "GET /static/admin/js/filters.js HTTP/1.1" 200 978 +INFO 2025-09-03 17:49:47,515 basehttp 76541 6175207424 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:49:47,524 basehttp 76541 6175207424 "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 +INFO 2025-09-03 17:49:51,781 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:49:53,978 basehttp 76541 6158381056 "GET /en/admin/patients/claimstatushistory/ HTTP/1.1" 200 128819 +INFO 2025-09-03 17:49:53,995 basehttp 76541 6158381056 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:49:54,004 basehttp 76541 6158381056 "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097 +INFO 2025-09-03 17:49:58,461 basehttp 76541 6158381056 "GET /en/admin/patients/claimstatushistory/976/change/ HTTP/1.1" 200 92157 +INFO 2025-09-03 17:49:58,475 basehttp 76541 6158381056 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:50:02,952 basehttp 76541 6158381056 "GET /en/admin/patients/claimstatushistory/ HTTP/1.1" 200 128819 +INFO 2025-09-03 17:50:14,492 basehttp 76541 6158381056 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36078 +WARNING 2025-09-03 17:50:14,549 log 76541 6158381056 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 17:50:14,549 basehttp 76541 6158381056 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 17:50:14,589 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:50:44,613 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 17:51:14,612 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:51:14,617 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 17:51:37,031 basehttp 76541 13035925504 "GET /en/admin/patients/claimstatushistory/976/change/ HTTP/1.1" 200 92157 +INFO 2025-09-03 17:51:37,050 basehttp 76541 13035925504 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:51:44,781 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 17:51:47,241 basehttp 76541 13035925504 "GET /en/admin/patients/insuranceclaim/ HTTP/1.1" 200 147251 +INFO 2025-09-03 17:51:47,254 basehttp 76541 13035925504 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +ERROR 2025-09-03 17:51:50,385 log 76541 13035925504 Internal Server Error: /en/admin/patients/insuranceclaim/200/change/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 719, in wrapper + return self.admin_site.admin_view(view)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/sites.py", line 246, in inner + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1987, in change_view + return self.changeform_view(request, object_id, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1840, in changeform_view + return self._changeform_view(request, object_id, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1916, in _changeform_view + formsets, inline_instances = self._create_formsets( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 2358, in _create_formsets + for FormSet, inline in self.get_formsets_with_inlines(*get_formsets_args): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 938, in get_formsets_with_inlines + yield inline.get_formset(request, obj), inline + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 2535, in get_formset + return inlineformset_factory(self.parent_model, self.model, **defaults) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 1343, in inlineformset_factory + FormSet = modelformset_factory(model, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 1051, in modelformset_factory + form = modelform_factory( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 654, in modelform_factory + return type(form)(class_name, (form,), form_class_attrs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 334, in __new__ + raise FieldError(message) +django.core.exceptions.FieldError: Unknown field(s) (status) specified for ClaimStatusHistory +ERROR 2025-09-03 17:51:50,387 basehttp 76541 13035925504 "GET /en/admin/patients/insuranceclaim/200/change/ HTTP/1.1" 500 171484 +INFO 2025-09-03 17:51:55,161 basehttp 76541 13035925504 "GET /en/admin/patients/insuranceclaim/ HTTP/1.1" 200 147251 +INFO 2025-09-03 17:52:14,793 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:52:14,796 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 17:52:19,252 basehttp 76541 6158381056 "GET /en/admin/patients/claimstatushistory/ HTTP/1.1" 200 128819 +INFO 2025-09-03 17:52:19,268 basehttp 76541 6158381056 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:52:27,817 basehttp 76541 6158381056 "GET /en/admin/patients/insuranceclaim/ HTTP/1.1" 200 147251 +INFO 2025-09-03 17:52:27,830 basehttp 76541 6158381056 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 17:52:44,786 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11737 +INFO 2025-09-03 17:53:15,787 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:53:40,787 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 17:54:16,783 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:54:40,774 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 17:55:17,783 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:55:40,783 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 17:56:18,777 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:56:40,822 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 17:57:41,969 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:57:41,970 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 17:58:41,957 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 17:59:41,974 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 17:59:41,980 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11740 +INFO 2025-09-03 18:00:41,962 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:01:41,963 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:01:41,965 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:02:41,962 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:03:41,965 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:03:41,968 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:04:41,965 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:05:41,977 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:05:41,979 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11737 +INFO 2025-09-03 18:06:41,964 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11737 +INFO 2025-09-03 18:07:41,980 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:07:41,982 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:10:46,963 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:11:46,911 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:11:46,915 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:12:46,902 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:13:46,911 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:13:46,914 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:14:46,905 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:15:46,906 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:15:46,909 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:16:46,902 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:17:46,912 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:17:46,914 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:18:46,902 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:19:46,906 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:19:46,907 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:20:46,899 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:21:46,904 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:21:46,905 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:22:46,897 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:23:46,909 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:23:46,911 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:24:46,895 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11737 +INFO 2025-09-03 18:25:46,919 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:25:46,922 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:26:46,918 basehttp 76541 13035925504 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:26:46,921 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:27:46,893 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:28:46,897 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:28:46,900 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:29:46,913 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:29:46,916 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11737 +INFO 2025-09-03 18:30:00,276 basehttp 76541 13035925504 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:30:02,198 basehttp 76541 6158381056 "GET /en/patients/insurance-info/5/ HTTP/1.1" 200 36078 +WARNING 2025-09-03 18:30:02,214 log 76541 6158381056 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-03 18:30:02,214 basehttp 76541 6158381056 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-03 18:30:02,296 basehttp 76541 6158381056 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 18:30:15,372 log 76541 6158381056 Internal Server Error: /en/admin/patients/insuranceclaim/189/change/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 719, in wrapper + return self.admin_site.admin_view(view)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/sites.py", line 246, in inner + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1987, in change_view + return self.changeform_view(request, object_id, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 192, in _view_wrapper + result = _process_exception(request, e) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 190, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1840, in changeform_view + return self._changeform_view(request, object_id, form_url, extra_context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 1916, in _changeform_view + formsets, inline_instances = self._create_formsets( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 2358, in _create_formsets + for FormSet, inline in self.get_formsets_with_inlines(*get_formsets_args): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 938, in get_formsets_with_inlines + yield inline.get_formset(request, obj), inline + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/admin/options.py", line 2535, in get_formset + return inlineformset_factory(self.parent_model, self.model, **defaults) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 1343, in inlineformset_factory + FormSet = modelformset_factory(model, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 1051, in modelformset_factory + form = modelform_factory( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 654, in modelform_factory + return type(form)(class_name, (form,), form_class_attrs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 334, in __new__ + raise FieldError(message) +django.core.exceptions.FieldError: Unknown field(s) (status) specified for ClaimStatusHistory +ERROR 2025-09-03 18:30:15,373 basehttp 76541 6158381056 "GET /en/admin/patients/insuranceclaim/189/change/ HTTP/1.1" 500 171496 +INFO 2025-09-03 18:30:32,879 basehttp 76541 6158381056 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:30:36,031 autoreload 76541 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/admin.py changed, reloading. +INFO 2025-09-03 18:30:36,554 autoreload 94585 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 18:30:38,940 basehttp 94585 6161477632 "GET /en/admin/patients/insuranceclaim/189/change/ HTTP/1.1" 200 127811 +INFO 2025-09-03 18:30:38,956 basehttp 94585 12901707776 "GET /static/admin/js/calendar.js HTTP/1.1" 200 9141 +INFO 2025-09-03 18:30:38,956 basehttp 94585 12918534144 "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19319 +INFO 2025-09-03 18:30:38,958 basehttp 94585 6161477632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 18:30:38,986 basehttp 94585 6161477632 "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086 +INFO 2025-09-03 18:30:38,986 basehttp 94585 12918534144 "GET /static/admin/img/icon-clock.svg HTTP/1.1" 200 677 +INFO 2025-09-03 18:30:57,913 basehttp 94585 12918534144 "POST /en/admin/patients/insuranceclaim/189/change/ HTTP/1.1" 302 0 +INFO 2025-09-03 18:30:57,963 basehttp 94585 12918534144 "GET /en/admin/patients/insuranceclaim/ HTTP/1.1" 200 143077 +INFO 2025-09-03 18:30:57,978 basehttp 94585 12918534144 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 18:30:57,989 basehttp 94585 12918534144 "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436 +INFO 2025-09-03 18:31:02,904 basehttp 94585 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:31:02,908 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/5/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:31:08,427 basehttp 94585 6161477632 "GET /en/admin/patients/insuranceclaim/ HTTP/1.1" 200 142820 +INFO 2025-09-03 18:31:08,442 basehttp 94585 6161477632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 18:31:11,359 basehttp 94585 6161477632 "GET /en/admin/patients/insuranceclaim/200/change/ HTTP/1.1" 200 127231 +INFO 2025-09-03 18:31:11,371 basehttp 94585 6161477632 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-03 18:31:23,527 basehttp 94585 6161477632 "GET /en/patients/ HTTP/1.1" 200 139705 +INFO 2025-09-03 18:31:23,603 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:31:23,607 basehttp 94585 12918534144 "GET /en/patients/patient-stats/ HTTP/1.1" 200 12305 +INFO 2025-09-03 18:31:38,843 basehttp 94585 12918534144 "GET /en/patients/patientprofile/33/details/ HTTP/1.1" 200 32204 +INFO 2025-09-03 18:31:38,877 basehttp 94585 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:31:51,463 basehttp 94585 12918534144 "GET /en/patients/insurance-info/33/ HTTP/1.1" 200 36211 +INFO 2025-09-03 18:31:51,496 basehttp 94585 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:32:21,526 basehttp 94585 12918534144 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:32:51,369 basehttp 94585 12918534144 "GET /en/admin/patients/insuranceclaim/ HTTP/1.1" 200 142820 +INFO 2025-09-03 18:32:51,902 basehttp 94585 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:32:51,904 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 11739 +INFO 2025-09-03 18:44:07,355 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 11737 +INFO 2025-09-03 18:44:43,359 basehttp 94585 12901707776 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:44:43,361 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 11737 +INFO 2025-09-03 18:45:13,345 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 11736 +INFO 2025-09-03 18:45:45,799 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 11738 +INFO 2025-09-03 18:45:46,161 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:46:15,796 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 63828 +INFO 2025-09-03 18:46:45,796 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 48547 +INFO 2025-09-03 18:46:46,166 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:47:15,797 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 73160 +INFO 2025-09-03 18:47:45,796 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 79944 +INFO 2025-09-03 18:47:46,177 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:48:07,562 basehttp 94585 6161477632 "POST /en/patients/check-eligibility/33/ HTTP/1.1" 200 14083 +INFO 2025-09-03 18:48:15,774 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 67510 +INFO 2025-09-03 18:48:16,762 basehttp 94585 6161477632 "POST /en/patients/check-eligibility/33/ HTTP/1.1" 200 14126 +INFO 2025-09-03 18:48:45,772 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 60687 +INFO 2025-09-03 18:48:46,158 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:48:49,705 basehttp 94585 6161477632 "GET /en/patients/insurance-info/33/ HTTP/1.1" 200 36211 +INFO 2025-09-03 18:48:49,755 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:48:56,275 basehttp 94585 6161477632 "GET /en/patients/insurance-info/create/39/ HTTP/1.1" 200 40576 +WARNING 2025-09-03 18:48:56,286 basehttp 94585 6161477632 "GET /static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 404 2146 +WARNING 2025-09-03 18:48:56,286 basehttp 94585 12901707776 "GET /static/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 404 2140 +INFO 2025-09-03 18:48:56,312 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:49:19,778 basehttp 94585 6161477632 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 71922 +INFO 2025-09-03 18:49:49,407 basehttp 94585 6161477632 "GET /en/patients/insurance-info/create/39/ HTTP/1.1" 200 40576 +WARNING 2025-09-03 18:49:49,416 basehttp 94585 6161477632 "GET /static/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 404 2146 +WARNING 2025-09-03 18:49:49,417 basehttp 94585 12901707776 "GET /static/assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 404 2140 +INFO 2025-09-03 18:49:49,441 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:49:59,072 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:49:59,078 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 79934 +INFO 2025-09-03 18:50:19,776 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 78751 +INFO 2025-09-03 18:50:49,777 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 72058 +INFO 2025-09-03 18:51:08,449 basehttp 94585 12901707776 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:51:19,775 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 48438 +INFO 2025-09-03 18:51:49,776 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 48202 +INFO 2025-09-03 18:52:08,450 basehttp 94585 12901707776 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:52:19,777 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 48214 +INFO 2025-09-03 18:52:49,777 basehttp 94585 12901707776 "GET /en/patients/insurance-claims-history/33/ HTTP/1.1" 200 71321 +INFO 2025-09-03 18:53:08,454 basehttp 94585 12901707776 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:53:22,874 basehttp 94585 12901707776 "GET /en/appointments/create/?patient=33 HTTP/1.1" 200 36516 +INFO 2025-09-03 18:53:22,909 basehttp 94585 12901707776 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:53:46,131 basehttp 94585 12901707776 "GET / HTTP/1.1" 302 0 +INFO 2025-09-03 18:53:46,152 basehttp 94585 6161477632 "GET /en/ HTTP/1.1" 200 49782 +INFO 2025-09-03 18:53:46,198 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:53:46,210 basehttp 94585 12918534144 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 18:53:46,210 basehttp 94585 12935360512 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-03 18:53:46,212 basehttp 94585 12901707776 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 18:54:08,922 basehttp 94585 12901707776 "GET /en/patients/insurance-info HTTP/1.1" 301 0 +INFO 2025-09-03 18:54:08,950 basehttp 94585 12918534144 "GET /en/patients/insurance-info/ HTTP/1.1" 200 139304 +INFO 2025-09-03 18:54:08,997 basehttp 94585 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:54:45,149 basehttp 94585 12918534144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 18:54:46,207 basehttp 94585 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:54:46,207 basehttp 94585 12935360512 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 18:54:49,704 basehttp 94585 12918534144 "GET /en/inpatients/ HTTP/1.1" 200 41779 +INFO 2025-09-03 18:54:49,750 basehttp 94585 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:54:49,751 basehttp 94585 12935360512 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-09-03 18:54:49,771 basehttp 94585 6161477632 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-09-03 18:54:52,415 basehttp 94585 6161477632 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 18:54:52,504 basehttp 94585 6161477632 "GET /static/plugins/dropzone/dist/min/dropzone.min.js HTTP/1.1" 200 114702 +INFO 2025-09-03 18:54:52,518 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:54:52,631 basehttp 94585 6161477632 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 18:55:11,030 basehttp 94585 6161477632 "GET /en/inpatients/admissions/create/ HTTP/1.1" 200 51245 +INFO 2025-09-03 18:55:11,065 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:55:22,658 basehttp 94585 6161477632 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 18:55:52,533 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:55:52,642 basehttp 94585 6161477632 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 18:56:22,656 basehttp 94585 6161477632 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 18:56:52,530 basehttp 94585 6161477632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 18:56:52,643 basehttp 94585 6161477632 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 18:57:22,660 basehttp 94585 6161477632 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 18:59:09,915 autoreload 2903 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 18:59:10,192 basehttp 2903 6189297664 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40578 +INFO 2025-09-03 18:59:10,240 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:00:10,252 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:00:18,422 basehttp 2903 6206124032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:00:18,494 basehttp 2903 6189297664 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 19:00:22,657 basehttp 2903 6189297664 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 19:00:29,500 basehttp 2903 6189297664 "GET /en/inpatients/discharge/335/ HTTP/1.1" 200 40578 +INFO 2025-09-03 19:00:29,544 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:01:29,557 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:01:38,479 basehttp 2903 6206124032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:01:38,546 basehttp 2903 6189297664 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 19:01:42,535 basehttp 2903 6189297664 "GET /en/inpatients/beds/1758/ HTTP/1.1" 200 33490 +INFO 2025-09-03 19:01:42,570 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:02:41,566 basehttp 2903 6189297664 "GET /en/emr HTTP/1.1" 301 0 +INFO 2025-09-03 19:02:41,595 basehttp 2903 6206124032 "GET /en/emr/ HTTP/1.1" 200 71709 +INFO 2025-09-03 19:02:41,643 basehttp 2903 6206124032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:02:41,649 basehttp 2903 6189297664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 19:02:49,802 basehttp 2903 6189297664 "GET /en/emr/encounters/ HTTP/1.1" 200 148284 +INFO 2025-09-03 19:02:49,839 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:02:59,829 basehttp 2903 6189297664 "GET /en/emr/vital-signs/ HTTP/1.1" 200 91448 +INFO 2025-09-03 19:02:59,865 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:03:11,719 basehttp 2903 6189297664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 19:03:32,317 basehttp 2903 6189297664 "GET /en/emr/problems/ HTTP/1.1" 200 104971 +INFO 2025-09-03 19:03:32,349 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:03:40,131 basehttp 2903 6189297664 "GET /en/emr/notes/ HTTP/1.1" 200 98610 +INFO 2025-09-03 19:03:40,167 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:03:52,866 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:03:52,875 basehttp 2903 6206124032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 19:04:22,874 basehttp 2903 6206124032 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 19:04:28,095 basehttp 2903 6206124032 "GET /en/emr/encounters/981/ HTTP/1.1" 200 31615 +INFO 2025-09-03 19:04:28,130 basehttp 2903 6206124032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 19:04:43,810 log 2903 6206124032 Bad Request: /en/emr/encounter/981/vitals/add/ +WARNING 2025-09-03 19:04:43,810 basehttp 2903 6206124032 "GET /en/emr/encounter/981/vitals/add/ HTTP/1.1" 400 28 +INFO 2025-09-03 19:04:52,864 basehttp 2903 6206124032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:04:52,871 basehttp 2903 6189297664 "GET /en/emr/stats/ HTTP/1.1" 200 2966 +INFO 2025-09-03 19:05:00,165 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:05:04,148 basehttp 2903 6189297664 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 19:05:34,159 basehttp 2903 6189297664 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 19:05:56,315 basehttp 2903 6189297664 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 19:05:56,409 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:05:56,538 basehttp 2903 6189297664 "GET /en/inpatients/beds/ HTTP/1.1" 200 2109937 +INFO 2025-09-03 19:05:59,622 basehttp 2903 6189297664 "GET /en/inpatients/transfers/ HTTP/1.1" 200 87537 +INFO 2025-09-03 19:05:59,653 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +WARNING 2025-09-03 19:06:25,986 log 2903 6189297664 Not Found: /en/inpatients/transfers/34 +WARNING 2025-09-03 19:06:25,986 basehttp 2903 6189297664 "GET /en/inpatients/transfers/34 HTTP/1.1" 404 40274 +INFO 2025-09-03 19:06:31,799 basehttp 2903 6189297664 "GET /en/inpatients/transfer/85/approve/ HTTP/1.1" 200 9418 +INFO 2025-09-03 19:06:59,666 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:07:59,670 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:08:14,924 basehttp 2903 6206124032 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:08:14,928 basehttp 2903 6189297664 "GET /en/inpatients/stats/ HTTP/1.1" 200 3000 +INFO 2025-09-03 19:08:14,954 basehttp 2903 6222950400 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-09-03 19:08:14,985 basehttp 2903 6189297664 "GET /en/inpatients/bed-grid/ HTTP/1.1" 200 611361 +INFO 2025-09-03 19:08:21,210 basehttp 2903 6189297664 "GET /en/inpatients/wards/ HTTP/1.1" 200 48071 +INFO 2025-09-03 19:08:21,241 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:09:21,248 basehttp 2903 6189297664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:09:27,274 autoreload 2903 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-03 19:09:27,609 autoreload 7374 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 19:10:21,316 basehttp 7374 6169440256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:11:22,190 basehttp 7374 6169440256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:11:34,286 basehttp 7374 6169440256 "GET /en/patients/ HTTP/1.1" 200 139705 +INFO 2025-09-03 19:11:34,340 basehttp 7374 6169440256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:11:34,344 basehttp 7374 12901707776 "GET /en/patients/patient-stats/ HTTP/1.1" 200 12305 +WARNING 2025-09-03 19:11:40,756 log 7374 12901707776 Not Found: /en/patients/consent +WARNING 2025-09-03 19:11:40,757 basehttp 7374 12901707776 "GET /en/patients/consent HTTP/1.1" 404 48373 +INFO 2025-09-03 19:11:48,192 basehttp 7374 12901707776 "GET /en/patients/consents HTTP/1.1" 301 0 +ERROR 2025-09-03 19:11:48,239 log 7374 6169440256 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_detail' not found. 'consent_form_detail' is not a valid view function or pattern name. +ERROR 2025-09-03 19:11:48,242 basehttp 7374 6169440256 "GET /en/patients/consents/ HTTP/1.1" 500 250956 +INFO 2025-09-03 19:13:39,862 autoreload 7374 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 19:13:40,213 autoreload 9245 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 19:13:42,689 log 9245 6171701248 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_detail' not found. 'consent_form_detail' is not a valid view function or pattern name. +ERROR 2025-09-03 19:13:42,692 basehttp 9245 6171701248 "GET /en/patients/consents/ HTTP/1.1" 500 251093 +INFO 2025-09-03 19:13:57,051 autoreload 9245 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 19:13:57,378 autoreload 9409 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 19:13:58,270 log 9409 6168571904 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_update' not found. 'consent_form_update' is not a valid view function or pattern name. +ERROR 2025-09-03 19:13:58,272 basehttp 9409 6168571904 "GET /en/patients/consents/ HTTP/1.1" 500 255228 +INFO 2025-09-03 19:15:54,828 autoreload 9409 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-03 19:15:55,205 autoreload 10261 8466948288 Watching for file changes with StatReloader +INFO 2025-09-03 19:18:55,272 autoreload 10261 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-03 19:18:55,563 autoreload 11582 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-03 19:18:59,062 log 11582 6192689152 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_delete' not found. 'consent_form_delete' is not a valid view function or pattern name. +ERROR 2025-09-03 19:18:59,065 basehttp 11582 6192689152 "GET /en/patients/consents/ HTTP/1.1" 500 254626 +ERROR 2025-09-03 19:19:35,793 log 11582 6192689152 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_create' not found. 'consent_form_create' is not a valid view function or pattern name. +ERROR 2025-09-03 19:19:35,794 basehttp 11582 6192689152 "GET /en/patients/consents/ HTTP/1.1" 500 229052 +ERROR 2025-09-03 19:20:33,015 log 11582 6192689152 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_preview' not found. 'consent_form_preview' is not a valid view function or pattern name. +ERROR 2025-09-03 19:20:33,016 basehttp 11582 6192689152 "GET /en/patients/consents/ HTTP/1.1" 500 231510 +ERROR 2025-09-03 19:20:45,890 log 11582 6192689152 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_activate' not found. 'consent_form_activate' is not a valid view function or pattern name. +ERROR 2025-09-03 19:20:45,891 basehttp 11582 6192689152 "GET /en/patients/consents/ HTTP/1.1" 500 232392 +INFO 2025-09-03 19:21:32,662 basehttp 11582 6192689152 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-03 19:21:32,717 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 19:21:37,026 log 11582 6192689152 Internal Server Error: /en/patients/consent-forms/detail/74/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_list' not found. 'consent_form_list' is not a valid view function or pattern name. +ERROR 2025-09-03 19:21:37,037 basehttp 11582 6192689152 "GET /en/patients/consent-forms/detail/74/ HTTP/1.1" 500 169670 +ERROR 2025-09-03 19:22:05,825 log 11582 6192689152 Internal Server Error: /en/patients/consent-forms/detail/74/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_delete' not found. 'consent_form_delete' is not a valid view function or pattern name. +ERROR 2025-09-03 19:22:05,826 basehttp 11582 6192689152 "GET /en/patients/consent-forms/detail/74/ HTTP/1.1" 500 169871 +ERROR 2025-09-03 19:22:18,813 log 11582 6192689152 Internal Server Error: /en/patients/consent-forms/detail/74/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_preview' not found. 'consent_form_preview' is not a valid view function or pattern name. +ERROR 2025-09-03 19:22:18,814 basehttp 11582 6192689152 "GET /en/patients/consent-forms/detail/74/ HTTP/1.1" 500 169323 +INFO 2025-09-03 19:22:51,459 basehttp 11582 6192689152 "GET /en/patients/consent-forms/detail/74/ HTTP/1.1" 200 22785 +INFO 2025-09-03 19:22:51,492 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:22:59,452 basehttp 11582 6192689152 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-03 19:22:59,453 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:22:59,496 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 19:23:02,645 log 11582 6209515520 Internal Server Error: /en/patients/consent-forms/update/74/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'consent_form_list' not found. 'consent_form_list' is not a valid view function or pattern name. +ERROR 2025-09-03 19:23:02,646 basehttp 11582 6209515520 "GET /en/patients/consent-forms/update/74/ HTTP/1.1" 500 184500 +ERROR 2025-09-03 19:23:22,031 log 11582 6209515520 Internal Server Error: /en/patients/consent-forms/update/74/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'save_consent_form_draft' not found. 'save_consent_form_draft' is not a valid view function or pattern name. +ERROR 2025-09-03 19:23:22,032 basehttp 11582 6209515520 "GET /en/patients/consent-forms/update/74/ HTTP/1.1" 500 181623 +INFO 2025-09-03 19:23:49,627 basehttp 11582 6209515520 "GET /en/patients/consent-forms/update/74/ HTTP/1.1" 200 33258 +WARNING 2025-09-03 19:23:49,635 basehttp 11582 6192689152 "GET /static/assets/plugins/summernote/dist/summernote-lite.min.js HTTP/1.1" 404 2086 +INFO 2025-09-03 19:23:49,636 basehttp 11582 6209515520 "GET /static/plugins/summernote/dist/summernote-lite.min.css HTTP/1.1" 200 30684 +INFO 2025-09-03 19:23:49,656 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:23:57,660 basehttp 11582 6209515520 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-03 19:23:57,694 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:24:02,926 basehttp 11582 6209515520 "GET /en/patients/consent-forms/detail/74/ HTTP/1.1" 200 22785 +INFO 2025-09-03 19:24:02,956 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:24:07,429 basehttp 11582 6209515520 "GET /en/patients/consent-forms/update/74/ HTTP/1.1" 200 33258 +WARNING 2025-09-03 19:24:07,439 basehttp 11582 6209515520 "GET /static/assets/plugins/summernote/dist/summernote-lite.min.js HTTP/1.1" 404 2086 +INFO 2025-09-03 19:24:07,464 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:24:35,546 basehttp 11582 6192689152 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-03 19:24:35,582 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:25:36,951 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:26:34,224 basehttp 11582 6192689152 "GET / HTTP/1.1" 302 0 +INFO 2025-09-03 19:26:34,242 basehttp 11582 6209515520 "GET /en/ HTTP/1.1" 200 49794 +INFO 2025-09-03 19:26:34,296 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:26:34,302 basehttp 11582 6243168256 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-03 19:26:34,303 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:26:34,305 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:27:04,289 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:27:34,312 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:27:34,314 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:27:34,314 basehttp 11582 6243168256 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:28:04,294 basehttp 11582 6243168256 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:28:34,297 basehttp 11582 6243168256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:28:34,298 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:28:34,301 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:29:05,186 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:29:35,211 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:29:35,211 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:29:35,213 basehttp 11582 6243168256 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:30:36,196 basehttp 11582 6243168256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:30:36,197 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:30:37,180 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:31:37,196 basehttp 11582 6243168256 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:31:37,196 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:31:41,187 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:32:38,200 basehttp 11582 6243168256 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:32:38,201 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:32:41,188 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:33:41,204 basehttp 11582 6243168256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:33:41,206 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:33:41,208 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:34:41,168 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:35:41,196 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:35:41,197 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:35:41,198 basehttp 11582 6243168256 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:36:41,166 basehttp 11582 6243168256 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:37:41,167 basehttp 11582 6243168256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:37:41,170 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:37:41,172 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:38:41,174 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:39:41,187 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:39:41,190 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:39:41,192 basehttp 11582 6243168256 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:40:41,167 basehttp 11582 6243168256 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:41:41,189 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:41:41,192 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:41:41,194 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:42:41,180 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:42:41,180 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:42:41,181 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:43:41,180 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:44:41,192 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:44:41,195 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:44:41,196 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:45:41,186 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:46:41,187 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:46:41,188 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:46:41,190 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:47:41,181 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:47:41,181 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:47:41,182 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:48:41,086 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:49:41,108 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:49:41,110 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:49:41,111 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:50:36,988 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:50:41,102 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:50:41,104 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:50:51,458 basehttp 11582 6192689152 "GET /en/operating-theatre/ HTTP/1.1" 200 34120 +INFO 2025-09-03 19:50:51,522 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:50:51,523 basehttp 11582 6209515520 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-03 19:51:00,069 basehttp 11582 6209515520 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 23266 +INFO 2025-09-03 19:51:00,099 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:03,256 basehttp 11582 6209515520 "GET /en/operating-theatre/rooms/ HTTP/1.1" 200 30821 +INFO 2025-09-03 19:51:03,296 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:03,297 basehttp 11582 6192689152 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-03 19:51:06,182 basehttp 11582 6192689152 "GET /en/operating-theatre/blocks/ HTTP/1.1" 200 28835 +INFO 2025-09-03 19:51:06,212 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:11,214 basehttp 11582 6192689152 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 26947 +INFO 2025-09-03 19:51:11,248 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:14,272 basehttp 11582 6192689152 "GET /en/operating-theatre/equipment/ HTTP/1.1" 200 29350 +INFO 2025-09-03 19:51:14,303 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:18,634 basehttp 11582 6192689152 "GET /en/operating-theatre/templates/ HTTP/1.1" 200 41476 +WARNING 2025-09-03 19:51:18,647 basehttp 11582 6243168256 "GET /static/assets/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 404 2122 +WARNING 2025-09-03 19:51:18,647 basehttp 11582 6192689152 "GET /static/assets/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 404 2128 +WARNING 2025-09-03 19:51:18,647 basehttp 11582 6226341888 "GET /static/assets/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2098 +WARNING 2025-09-03 19:51:18,648 basehttp 11582 6209515520 "GET /static/assets/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 404 2161 +WARNING 2025-09-03 19:51:18,650 basehttp 11582 6243168256 "GET /static/assets/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 404 2155 +WARNING 2025-09-03 19:51:18,650 basehttp 11582 6259994624 "GET /static/assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 404 2143 +INFO 2025-09-03 19:51:18,670 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:30,594 basehttp 11582 6192689152 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-03 19:51:44,752 basehttp 11582 6192689152 "GET /en/hr HTTP/1.1" 301 0 +INFO 2025-09-03 19:51:44,787 basehttp 11582 6192689152 "GET /en/hr/ HTTP/1.1" 200 42461 +INFO 2025-09-03 19:51:44,830 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:53,634 basehttp 11582 6192689152 "GET /en/hr/employees/ HTTP/1.1" 200 130557 +INFO 2025-09-03 19:51:53,668 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:51:57,058 basehttp 11582 6192689152 "GET /en/hr/employees/56/ HTTP/1.1" 200 34527 +INFO 2025-09-03 19:51:57,088 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:52:00,460 basehttp 11582 6192689152 "GET /en/hr/departments/ HTTP/1.1" 200 125487 +WARNING 2025-09-03 19:52:00,471 basehttp 11582 6226341888 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +INFO 2025-09-03 19:52:00,471 basehttp 11582 6192689152 "GET /static/plugins/datatables.net-buttons-bs5/css/buttons.bootstrap5.min.css HTTP/1.1" 200 8136 +INFO 2025-09-03 19:52:00,471 basehttp 11582 6209515520 "GET /static/plugins/select2/dist/css/select2.min.css HTTP/1.1" 200 14966 +INFO 2025-09-03 19:52:00,475 basehttp 11582 6209515520 "GET /static/plugins/datatables.net-buttons-bs5/js/buttons.bootstrap5.min.js HTTP/1.1" 200 1627 +INFO 2025-09-03 19:52:00,475 basehttp 11582 6243168256 "GET /static/plugins/datatables.net-buttons/js/buttons.print.min.js HTTP/1.1" 200 3073 +INFO 2025-09-03 19:52:00,477 basehttp 11582 6226341888 "GET /static/plugins/datatables.net-buttons/js/buttons.html5.min.js HTTP/1.1" 200 26043 +INFO 2025-09-03 19:52:00,477 basehttp 11582 6192689152 "GET /static/plugins/datatables.net-buttons/js/dataTables.buttons.min.js HTTP/1.1" 200 27926 +INFO 2025-09-03 19:52:00,481 basehttp 11582 6259994624 "GET /static/plugins/jszip/dist/jszip.min.js HTTP/1.1" 200 97630 +INFO 2025-09-03 19:52:00,481 basehttp 11582 6243168256 "GET /static/plugins/select2/dist/js/select2.min.js HTTP/1.1" 200 70851 +INFO 2025-09-03 19:52:00,487 basehttp 11582 6209515520 "GET /static/plugins/pdfmake/build/vfs_fonts.js HTTP/1.1" 200 828866 +INFO 2025-09-03 19:52:00,491 basehttp 11582 6276820992 "GET /static/plugins/pdfmake/build/pdfmake.min.js HTTP/1.1" 200 1400771 +INFO 2025-09-03 19:52:00,514 basehttp 11582 6276820992 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:52:02,181 basehttp 11582 6276820992 "GET /en/hr/departments/12/ HTTP/1.1" 200 35183 +WARNING 2025-09-03 19:52:02,197 basehttp 11582 6276820992 "GET /static/plugins/chart.js/dist/Chart.min.css HTTP/1.1" 404 2032 +WARNING 2025-09-03 19:52:02,199 basehttp 11582 6209515520 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-09-03 19:52:02,199 basehttp 11582 6243168256 "GET /static/plugins/chart.js/dist/Chart.min.js HTTP/1.1" 404 2029 +INFO 2025-09-03 19:52:02,223 basehttp 11582 6259994624 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:52:38,024 basehttp 11582 6259994624 "GET /en/hr/schedules/ HTTP/1.1" 200 121816 +WARNING 2025-09-03 19:52:38,033 basehttp 11582 6259994624 "GET /static/plugins/fullcalendar/main.min.css HTTP/1.1" 404 2026 +WARNING 2025-09-03 19:52:38,035 basehttp 11582 6226341888 "GET /static/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2077 +WARNING 2025-09-03 19:52:38,035 basehttp 11582 6192689152 "GET /static/plugins/fullcalendar/main.min.js HTTP/1.1" 404 2023 +INFO 2025-09-03 19:52:38,065 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:52:44,066 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:52:44,070 basehttp 11582 6209515520 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-03 19:53:03,433 basehttp 11582 6209515520 "GET /en/laboratory/ HTTP/1.1" 200 51764 +INFO 2025-09-03 19:53:03,484 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 19:53:03,510 log 11582 6192689152 Internal Server Error: /en/laboratory/htmx/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/laboratory/views.py", line 946, in laboratory_stats + 'results_pending': LabResult.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: abnormal_flag, analyzed_by, analyzed_by_id, analyzed_datetime, analyzer, created_at, critical_called, critical_called_datetime, critical_called_to, id, is_critical, order, order_id, pathologist_comments, qc_notes, qc_passed, quality_controls, reference_range, reported_datetime, result_id, result_type, result_unit, result_value, specimen, specimen_id, status, technician_comments, test, test_id, updated_at, verified, verified_by, verified_by_id, verified_datetime +ERROR 2025-09-03 19:53:03,511 basehttp 11582 6192689152 "GET /en/laboratory/htmx/stats/ HTTP/1.1" 500 124523 +INFO 2025-09-03 19:53:17,469 basehttp 11582 6192689152 "GET /en/laboratory/tests/ HTTP/1.1" 200 89448 +INFO 2025-09-03 19:53:17,502 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:53:30,656 basehttp 11582 6192689152 "GET /en/laboratory/tests/4/ HTTP/1.1" 200 58641 +INFO 2025-09-03 19:53:30,686 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +ERROR 2025-09-03 19:53:47,130 log 11582 6192689152 Internal Server Error: /en/laboratory/htmx/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/laboratory/views.py", line 946, in laboratory_stats + 'results_pending': LabResult.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: abnormal_flag, analyzed_by, analyzed_by_id, analyzed_datetime, analyzer, created_at, critical_called, critical_called_datetime, critical_called_to, id, is_critical, order, order_id, pathologist_comments, qc_notes, qc_passed, quality_controls, reference_range, reported_datetime, result_id, result_type, result_unit, result_value, specimen, specimen_id, status, technician_comments, test, test_id, updated_at, verified, verified_by, verified_by_id, verified_datetime +ERROR 2025-09-03 19:53:47,131 basehttp 11582 6192689152 "GET /en/laboratory/htmx/stats/ HTTP/1.1" 500 124249 +INFO 2025-09-03 19:53:57,391 basehttp 11582 6192689152 "GET /en/laboratory/specimens/ HTTP/1.1" 200 138400 +INFO 2025-09-03 19:53:57,433 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:54:03,491 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:54:04,173 basehttp 11582 6192689152 "GET /en/laboratory/results/create/ HTTP/1.1" 200 308216 +INFO 2025-09-03 19:54:04,216 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:54:07,572 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:54:07,576 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:54:07,576 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:54:38,082 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:55:08,104 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:55:08,105 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:55:08,107 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:55:39,081 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:56:09,102 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:56:09,104 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:56:09,104 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:56:40,079 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:57:10,087 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:57:10,087 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:57:41,071 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:58:11,090 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:58:11,090 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:58:41,079 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 19:59:12,088 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 19:59:12,088 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 19:59:41,080 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:00:41,099 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:00:41,101 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:00:41,103 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:01:41,099 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:01:41,100 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:01:41,101 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:02:41,080 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:02:41,082 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:03:41,089 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:03:41,091 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:04:41,076 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:04:41,078 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:05:41,085 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:05:41,087 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:06:41,097 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:06:41,098 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:06:41,100 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:07:41,069 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:07:41,073 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:07:41,073 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:08:41,095 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:08:41,096 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:08:41,097 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:09:41,065 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:10:41,076 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:10:41,084 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:10:41,087 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:11:41,073 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:12:41,068 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:12:41,072 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:12:41,072 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:13:41,087 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:13:41,089 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:13:41,090 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:14:41,063 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:15:41,086 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:15:41,086 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:15:41,088 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:16:41,071 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:16:41,074 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:17:41,064 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:17:41,065 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:18:41,083 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:18:41,085 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:18:41,086 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:19:41,152 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:20:41,179 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:20:41,181 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:20:41,183 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:21:41,148 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:22:41,175 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:22:41,176 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:22:41,178 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:23:41,164 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:23:41,166 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:24:41,150 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:24:41,153 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:25:41,174 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:25:41,175 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:25:41,177 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:26:41,168 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:26:41,170 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:27:41,164 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:27:41,165 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:28:41,162 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:28:41,166 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:29:41,148 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:29:41,149 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:30:41,166 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:30:41,166 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:30:41,169 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:31:41,166 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:31:41,168 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:32:41,168 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:32:41,169 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:32:41,172 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:33:41,200 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:33:41,202 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:33:41,202 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:34:41,162 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:35:41,190 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:35:41,190 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:35:41,193 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:36:41,161 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:37:41,186 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:37:41,187 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:37:41,189 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:38:41,164 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:39:41,183 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:39:41,183 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:39:41,186 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:40:41,187 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 20:40:41,187 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 20:40:41,188 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 20:41:41,166 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 21:17:02,169 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 21:17:02,171 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 21:17:02,172 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 21:18:02,032 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 21:19:02,050 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 21:19:02,053 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 21:19:02,054 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 21:20:02,031 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 21:21:02,043 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 21:21:02,047 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 21:21:02,049 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 22:16:50,501 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 22:16:50,504 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3804 +INFO 2025-09-03 22:16:50,504 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:14:29,942 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:19:45,808 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:19:45,812 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:19:45,816 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:22:14,425 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:22:14,425 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:22:14,426 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:39:49,283 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:41:02,876 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:41:02,877 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:41:02,877 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:42:02,871 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:42:02,873 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:42:02,875 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:43:02,870 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:43:02,870 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:43:02,873 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:44:02,846 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:45:02,871 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:45:02,872 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:45:02,874 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:46:02,870 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:46:02,872 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:46:02,873 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:47:02,844 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:48:02,866 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:48:02,867 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:48:02,868 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:49:02,853 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:49:02,856 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:50:02,844 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:50:02,846 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:51:02,867 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:51:02,867 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:51:02,869 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:52:02,846 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:53:02,866 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:53:02,868 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:53:02,869 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:54:02,852 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:55:02,947 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:55:02,948 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:55:02,949 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:56:02,945 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:56:02,945 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:56:02,947 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:57:02,947 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:57:02,949 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:57:02,951 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:58:02,924 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-03 23:59:02,941 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-03 23:59:02,942 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-03 23:59:02,944 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:00:02,952 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:00:02,952 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:00:02,955 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:01:02,932 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:02:02,944 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:02:02,946 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:02:02,948 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:03:02,939 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:03:02,939 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:03:02,940 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:04:02,941 basehttp 11582 6192689152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:04:02,943 basehttp 11582 6226341888 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:04:02,945 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:05:02,915 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:06:02,933 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:06:02,935 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:06:02,936 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:07:02,927 basehttp 11582 6209515520 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:07:02,928 basehttp 11582 6192689152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:07:02,928 basehttp 11582 6226341888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:08:02,938 basehttp 11582 6192689152 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:08:02,938 basehttp 11582 6226341888 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:08:02,955 basehttp 11582 6209515520 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:09:02,917 basehttp 11582 6209515520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:09:52,883 autoreload 11582 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-04 00:09:53,377 autoreload 65489 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 00:09:54,753 basehttp 65489 6129217536 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 00:09:54,783 basehttp 65489 6162870272 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2096 +INFO 2025-09-04 00:09:54,787 basehttp 65489 6146043904 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:10:00,044 basehttp 65489 6146043904 "GET /en/patients/ HTTP/1.1" 200 139704 +INFO 2025-09-04 00:10:00,100 basehttp 65489 6146043904 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:10:00,103 basehttp 65489 6162870272 "GET /en/patients/patient-stats/ HTTP/1.1" 200 12305 +INFO 2025-09-04 00:10:01,380 basehttp 65489 6162870272 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-04 00:10:01,448 basehttp 65489 6162870272 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:10:06,323 basehttp 65489 6162870272 "GET /en/patients/consent-forms/detail/74/ HTTP/1.1" 200 22785 +INFO 2025-09-04 00:10:06,361 basehttp 65489 6162870272 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:10:31,489 basehttp 65489 6162870272 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-04 00:10:31,525 basehttp 65489 6162870272 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:11:01,573 basehttp 65489 6162870272 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-04 00:11:01,613 basehttp 65489 6162870272 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:11:31,653 basehttp 65489 6162870272 "GET /en/patients/consents/ HTTP/1.1" 200 174578 +INFO 2025-09-04 00:11:31,693 basehttp 65489 6162870272 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:11:46,123 autoreload 65489 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/urls.py changed, reloading. +INFO 2025-09-04 00:11:46,484 autoreload 66339 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 00:11:47,402 log 66339 6169538560 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 2281, in get_context_data + recent_consents = ConsentForm.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: consent_id, created_at, created_by, created_by_id, effective_date, expiry_date, guardian_name, guardian_relationship, guardian_signature, guardian_signed_at, id, notes, patient, patient_id, patient_ip_address, patient_signature, patient_signed_at, provider_name, provider_signature, provider_signed_at, revocation_reason, revoked_at, revoked_by, revoked_by_id, status, template, template_id, updated_at, witness_name, witness_signature, witness_signed_at, witness_title +ERROR 2025-09-04 00:11:47,404 basehttp 66339 6169538560 "GET /en/patients/consents/ HTTP/1.1" 500 144089 +INFO 2025-09-04 00:12:25,991 autoreload 66339 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-04 00:12:26,323 autoreload 66663 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 00:12:26,682 log 66663 6156791808 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 2289, in get_context_data + expiring_consents = ConsentForm.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: consent_id, created_at, created_by, created_by_id, effective_date, expiry_date, guardian_name, guardian_relationship, guardian_signature, guardian_signed_at, id, notes, patient, patient_id, patient_ip_address, patient_signature, patient_signed_at, provider_name, provider_signature, provider_signed_at, revocation_reason, revoked_at, revoked_by, revoked_by_id, status, template, template_id, updated_at, witness_name, witness_signature, witness_signed_at, witness_title +ERROR 2025-09-04 00:12:26,683 basehttp 66663 6156791808 "GET /en/patients/consents/ HTTP/1.1" 500 147283 +ERROR 2025-09-04 00:12:28,105 log 66663 6156791808 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 2289, in get_context_data + expiring_consents = ConsentForm.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: consent_id, created_at, created_by, created_by_id, effective_date, expiry_date, guardian_name, guardian_relationship, guardian_signature, guardian_signed_at, id, notes, patient, patient_id, patient_ip_address, patient_signature, patient_signed_at, provider_name, provider_signature, provider_signed_at, revocation_reason, revoked_at, revoked_by, revoked_by_id, status, template, template_id, updated_at, witness_name, witness_signature, witness_signed_at, witness_title +ERROR 2025-09-04 00:12:28,106 basehttp 66663 6156791808 "GET /en/patients/consents/ HTTP/1.1" 500 147283 +INFO 2025-09-04 00:14:18,173 autoreload 66663 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-04 00:14:18,523 autoreload 67443 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 00:14:19,136 log 67443 6157856768 Internal Server Error: /en/patients/consents/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py", line 2329, in get_context_data + template_form = ConsentTemplateForm( + ^^^^^^^^^^^^^^^^^^^^ +TypeError: BaseModelForm.__init__() got an unexpected keyword argument 'user' +ERROR 2025-09-04 00:14:19,137 basehttp 67443 6157856768 "GET /en/patients/consents/ HTTP/1.1" 500 93772 +INFO 2025-09-04 00:16:59,730 autoreload 67443 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/forms.py changed, reloading. +INFO 2025-09-04 00:17:00,087 autoreload 68695 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 00:17:08,598 autoreload 68695 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/forms.py changed, reloading. +INFO 2025-09-04 00:17:08,913 autoreload 68711 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 00:17:10,199 basehttp 68711 6202159104 "GET /en/patients/consents/ HTTP/1.1" 200 21814 +INFO 2025-09-04 00:17:10,245 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:18:10,259 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:19:10,259 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:20:10,263 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:21:10,265 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:22:01,535 basehttp 68711 6202159104 "GET /en/patients/consents/ HTTP/1.1" 200 38105 +INFO 2025-09-04 00:22:01,574 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 00:22:12,404 log 68711 6202159104 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:22:12,404 basehttp 68711 6202159104 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:23:01,584 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:24:01,577 basehttp 68711 6202159104 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:24:18,324 autoreload 68711 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/views.py changed, reloading. +INFO 2025-09-04 00:24:18,770 autoreload 71901 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 00:24:20,101 log 71901 6191804416 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:24:20,101 basehttp 71901 6191804416 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 00:24:20,117 log 71901 6191804416 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:24:20,117 basehttp 71901 6191804416 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:24:25,682 basehttp 71901 6191804416 "GET /en/patients/consents/ HTTP/1.1" 200 145701 +WARNING 2025-09-04 00:24:25,694 log 71901 6191804416 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:24:25,694 basehttp 71901 6191804416 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:24:25,777 basehttp 71901 6191804416 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-04 00:24:25,779 basehttp 71901 6259109888 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-04 00:24:25,783 basehttp 71901 6191804416 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-04 00:24:25,787 basehttp 71901 6275936256 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-04 00:24:25,790 basehttp 71901 6225457152 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-04 00:24:25,791 basehttp 71901 6191804416 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-04 00:24:25,792 basehttp 71901 6242283520 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-04 00:24:25,795 basehttp 71901 6208630784 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-04 00:24:25,796 basehttp 71901 6259109888 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-04 00:24:25,939 basehttp 71901 6259109888 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-04 00:24:26,001 basehttp 71901 6191804416 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-04 00:24:26,001 basehttp 71901 6208630784 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-04 00:24:26,001 basehttp 71901 6225457152 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-04 00:24:26,002 basehttp 71901 6259109888 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-04 00:24:26,002 basehttp 71901 6242283520 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-04 00:24:26,004 basehttp 71901 6275936256 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-04 00:24:26,009 basehttp 71901 6275936256 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-04 00:24:26,009 basehttp 71901 6242283520 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-04 00:24:26,009 basehttp 71901 6259109888 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-04 00:24:26,010 basehttp 71901 6208630784 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-04 00:24:26,010 basehttp 71901 6191804416 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-04 00:24:26,013 basehttp 71901 6275936256 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-04 00:24:26,014 basehttp 71901 6191804416 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-04 00:24:26,014 basehttp 71901 6259109888 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-04 00:24:26,014 basehttp 71901 6208630784 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-04 00:24:26,015 basehttp 71901 6242283520 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-04 00:24:26,016 basehttp 71901 6259109888 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-04 00:24:26,016 basehttp 71901 6225457152 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-04 00:24:26,019 basehttp 71901 6242283520 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-04 00:24:26,020 basehttp 71901 6259109888 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-04 00:24:26,020 basehttp 71901 6191804416 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-04 00:24:26,021 basehttp 71901 6225457152 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-04 00:24:26,021 basehttp 71901 6208630784 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-04 00:24:26,023 basehttp 71901 6275936256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 00:24:26,157 log 71901 6275936256 Not Found: /favicon.ico +WARNING 2025-09-04 00:24:26,157 basehttp 71901 6275936256 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-04 00:24:57,168 basehttp 71901 6275936256 "GET /en/patients/consents/ HTTP/1.1" 200 145701 +WARNING 2025-09-04 00:24:57,189 log 71901 6275936256 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:24:57,189 basehttp 71901 6275936256 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:24:57,282 basehttp 71901 6275936256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:25:57,856 basehttp 71901 6275936256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:26:58,847 basehttp 71901 6275936256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:27:59,838 basehttp 71901 6275936256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:29:00,843 basehttp 71901 6275936256 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:30:01,841 basehttp 71901 6191804416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:31:02,844 basehttp 71901 6191804416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:32:04,843 basehttp 71901 6191804416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:34:02,835 basehttp 71901 6191804416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:36:02,836 basehttp 71901 6191804416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:37:35,238 basehttp 71901 6191804416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:37:42,915 basehttp 71901 6191804416 "GET /en/operating-theatre/ HTTP/1.1" 200 34120 +WARNING 2025-09-04 00:37:42,931 log 71901 6191804416 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:37:42,931 basehttp 71901 6191804416 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:37:43,026 basehttp 71901 6191804416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:37:43,029 basehttp 71901 6208630784 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 00:37:48,371 basehttp 71901 6208630784 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 26947 +WARNING 2025-09-04 00:37:48,388 log 71901 6208630784 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:37:48,388 basehttp 71901 6208630784 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:37:48,471 basehttp 71901 6208630784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:38:48,844 basehttp 71901 6208630784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:39:49,827 basehttp 71901 6208630784 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:40:48,313 basehttp 71901 6208630784 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 200 44739 +INFO 2025-09-04 00:40:48,325 basehttp 71901 6191804416 "GET /static/plugins/select2/dist/css/select2.min.css HTTP/1.1" 200 14966 +INFO 2025-09-04 00:40:48,329 basehttp 71901 6242283520 "GET /static/plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css HTTP/1.1" 200 3034 +INFO 2025-09-04 00:40:48,330 basehttp 71901 6259109888 "GET /static/plugins/summernote/dist/summernote-lite.min.css HTTP/1.1" 200 30684 +INFO 2025-09-04 00:40:48,331 basehttp 71901 6225457152 "GET /static/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.css HTTP/1.1" 200 17192 +WARNING 2025-09-04 00:40:48,334 log 71901 6208630784 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-09-04 00:40:48,335 basehttp 71901 6191804416 "GET /static/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.js HTTP/1.1" 200 58136 +INFO 2025-09-04 00:40:48,336 basehttp 71901 6275936256 "GET /static/plugins/select2/dist/js/select2.min.js HTTP/1.1" 200 70851 +WARNING 2025-09-04 00:40:48,336 basehttp 71901 6208630784 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:40:48,337 basehttp 71901 6208630784 - Broken pipe from ('127.0.0.1', 53927) +INFO 2025-09-04 00:40:48,337 basehttp 71901 6225457152 "GET /static/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js HTTP/1.1" 200 18685 +INFO 2025-09-04 00:40:48,337 basehttp 71901 6259109888 "GET /static/plugins/summernote/dist/summernote-lite.min.js HTTP/1.1" 200 186367 +INFO 2025-09-04 00:40:48,383 basehttp 71901 6259109888 "GET /static/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.css.map HTTP/1.1" 200 18548 +INFO 2025-09-04 00:40:48,398 basehttp 71901 6259109888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:40:48,426 basehttp 71901 6259109888 "GET /static/plugins/summernote/dist/font/summernote.woff2 HTTP/1.1" 200 6932 +INFO 2025-09-04 00:41:48,401 basehttp 71901 6259109888 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 00:42:13,154 log 71901 6259109888 Internal Server Error: /en/operating-theatre/notes/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_preview' not found. 'surgical_note_preview' is not a valid view function or pattern name. +ERROR 2025-09-04 00:42:13,156 basehttp 71901 6259109888 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 500 172869 +WARNING 2025-09-04 00:42:13,173 log 71901 6259109888 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:42:13,173 basehttp 71901 6259109888 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 00:42:13,200 log 71901 6259109888 Not Found: /favicon.ico +WARNING 2025-09-04 00:42:13,200 basehttp 71901 6259109888 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-04 00:46:58,048 autoreload 71901 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 00:46:58,509 autoreload 81991 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 00:52:24,070 autoreload 81991 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 00:52:24,454 autoreload 84396 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 00:53:17,674 autoreload 84396 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/urls.py changed, reloading. +INFO 2025-09-04 00:53:18,023 autoreload 84802 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 00:54:35,395 log 84802 6341865472 Internal Server Error: /en/operating-theatre/notes/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_preview' not found. 'surgical_note_preview' is not a valid view function or pattern name. +ERROR 2025-09-04 00:54:35,398 basehttp 84802 6341865472 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 500 172741 +WARNING 2025-09-04 00:54:35,414 log 84802 6341865472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:54:35,414 basehttp 84802 6341865472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 00:54:38,712 log 84802 6341865472 Internal Server Error: /en/operating-theatre/notes/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_preview' not found. 'surgical_note_preview' is not a valid view function or pattern name. +ERROR 2025-09-04 00:54:38,713 basehttp 84802 6341865472 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 500 172741 +WARNING 2025-09-04 00:54:38,724 log 84802 6341865472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:54:38,725 basehttp 84802 6341865472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:55:00,298 autoreload 84802 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/urls.py changed, reloading. +INFO 2025-09-04 00:55:00,611 autoreload 85575 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 00:55:01,044 log 85575 6161133568 Internal Server Error: /en/operating-theatre/notes/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_preview' with no arguments not found. 1 pattern(s) tried: ['en/operating\\-theatre/notes/(?P[0-9]+)/preview/\\Z'] +ERROR 2025-09-04 00:55:01,045 basehttp 85575 6161133568 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 500 174741 +WARNING 2025-09-04 00:55:01,062 log 85575 6161133568 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:55:01,063 basehttp 85575 6161133568 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 00:55:52,411 log 85575 6161133568 Internal Server Error: /en/operating-theatre/notes/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_preview' with arguments '('',)' not found. 1 pattern(s) tried: ['en/operating\\-theatre/notes/(?P[0-9]+)/preview/\\Z'] +ERROR 2025-09-04 00:55:52,412 basehttp 85575 6161133568 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 500 176314 +WARNING 2025-09-04 00:55:52,425 log 85575 6161133568 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:55:52,425 basehttp 85575 6161133568 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:57:05,199 basehttp 85575 6161133568 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 200 50023 +INFO 2025-09-04 00:57:05,210 basehttp 85575 6211612672 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-04 00:57:05,211 basehttp 85575 6245265408 "GET /static/plugins/select2/dist/css/select2.min.css HTTP/1.1" 200 14966 +WARNING 2025-09-04 00:57:05,213 log 85575 6161133568 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 00:57:05,214 basehttp 85575 6161133568 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 00:57:05,216 basehttp 85575 6245265408 "GET /static/plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css HTTP/1.1" 200 3034 +INFO 2025-09-04 00:57:05,216 basehttp 85575 6211612672 "GET /static/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 200 15733 +INFO 2025-09-04 00:57:05,219 basehttp 85575 6177959936 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-04 00:57:05,219 basehttp 85575 6211612672 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-04 00:57:05,223 basehttp 85575 6228439040 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-04 00:57:05,225 basehttp 85575 6245265408 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-04 00:57:05,225 basehttp 85575 6194786304 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-04 00:57:05,231 basehttp 85575 6177959936 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-04 00:57:05,231 basehttp 85575 6228439040 "GET /static/plugins/select2/dist/js/select2.min.js HTTP/1.1" 200 70851 +INFO 2025-09-04 00:57:05,232 basehttp 85575 6161133568 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-04 00:57:05,234 basehttp 85575 6245265408 "GET /static/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 200 33871 +INFO 2025-09-04 00:57:05,234 basehttp 85575 6194786304 "GET /static/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js HTTP/1.1" 200 18685 +INFO 2025-09-04 00:57:05,238 basehttp 85575 6211612672 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-04 00:57:05,526 basehttp 85575 6211612672 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-04 00:57:05,623 basehttp 85575 6194786304 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-04 00:57:05,624 basehttp 85575 6228439040 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-04 00:57:05,624 basehttp 85575 6211612672 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-04 00:57:05,625 basehttp 85575 6245265408 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-04 00:57:05,627 basehttp 85575 6161133568 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-04 00:57:05,629 basehttp 85575 6177959936 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-04 00:57:05,631 basehttp 85575 6177959936 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-04 00:57:05,633 basehttp 85575 6194786304 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-04 00:57:05,634 basehttp 85575 6228439040 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-04 00:57:05,635 basehttp 85575 6161133568 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-04 00:57:05,638 basehttp 85575 6194786304 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-04 00:57:05,638 basehttp 85575 6228439040 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-04 00:57:05,639 basehttp 85575 6177959936 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-04 00:57:05,641 basehttp 85575 6161133568 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-04 00:57:05,643 basehttp 85575 6211612672 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-04 00:57:05,645 basehttp 85575 6194786304 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-04 00:57:05,645 basehttp 85575 6228439040 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-04 00:57:05,647 basehttp 85575 6245265408 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:57:05,647 basehttp 85575 6177959936 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-04 00:57:05,647 basehttp 85575 6161133568 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-04 00:57:05,648 basehttp 85575 6194786304 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-04 00:57:05,648 basehttp 85575 6211612672 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-04 00:57:05,648 basehttp 85575 6228439040 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-04 00:57:05,649 basehttp 85575 6177959936 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-04 00:58:05,642 basehttp 85575 6211612672 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 00:59:05,633 basehttp 85575 6211612672 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:00:05,636 basehttp 85575 6161133568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:01:05,649 basehttp 85575 6161133568 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:01:17,970 autoreload 85575 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/urls.py changed, reloading. +INFO 2025-09-04 01:01:18,423 autoreload 88294 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 01:01:20,763 basehttp 88294 6341865472 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 26947 +WARNING 2025-09-04 01:01:20,779 log 88294 6341865472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 01:01:20,779 basehttp 88294 6341865472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 01:01:20,866 basehttp 88294 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:02:20,887 basehttp 88294 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:03:20,879 basehttp 88294 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:03:50,196 autoreload 88294 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 01:03:50,631 autoreload 89468 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 01:04:20,958 basehttp 89468 6168309760 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:04:23,072 autoreload 89468 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 01:04:23,428 autoreload 89706 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 01:04:25,356 log 89706 6194196480 Internal Server Error: /en/operating-theatre/notes/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_stats' not found. 'surgical_note_stats' is not a valid view function or pattern name. +ERROR 2025-09-04 01:04:25,358 basehttp 89706 6194196480 "GET /en/operating-theatre/notes/ HTTP/1.1" 500 167071 +WARNING 2025-09-04 01:04:25,373 log 89706 6194196480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 01:04:25,373 basehttp 89706 6194196480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 01:06:24,585 log 89706 6194196480 Internal Server Error: /en/operating-theatre/notes/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_export' not found. 'surgical_note_export' is not a valid view function or pattern name. +ERROR 2025-09-04 01:06:24,586 basehttp 89706 6194196480 "GET /en/operating-theatre/notes/ HTTP/1.1" 500 167755 +WARNING 2025-09-04 01:06:24,598 log 89706 6194196480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 01:06:24,598 basehttp 89706 6194196480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 01:07:04,215 basehttp 89706 6194196480 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 30495 +INFO 2025-09-04 01:07:04,236 basehttp 89706 6227849216 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-04 01:07:04,238 basehttp 89706 6261501952 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-04 01:07:04,239 basehttp 89706 6211022848 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-04 01:07:04,239 basehttp 89706 6278328320 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-04 01:07:04,240 basehttp 89706 6227849216 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +WARNING 2025-09-04 01:07:04,241 log 89706 6194196480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 01:07:04,242 basehttp 89706 6194196480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 01:07:04,242 basehttp 89706 6244675584 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +INFO 2025-09-04 01:07:04,299 basehttp 89706 6244675584 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:08:00,983 autoreload 89706 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 01:08:01,350 autoreload 91337 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 01:08:02,052 log 91337 6123565056 Internal Server Error: /en/operating-theatre/notes/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 199, in render + len_values = len(values) + ^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 366, in __len__ + self._fetch_all() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1949, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1610, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 766, in as_sql + extra_select, order_by, group_by = self.pre_sql_setup( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 85, in pre_sql_setup + self.setup_query(with_col_aliases=with_col_aliases) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 74, in setup_query + self.select, self.klass_info, self.annotation_col_map = self.get_select( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 299, in get_select + related_klass_infos = self.get_related_selections(select, select_mask) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1396, in get_related_selections + raise FieldError( +django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'template'. Choices are: surgical_case, surgeon, template_used +ERROR 2025-09-04 01:08:02,054 basehttp 91337 6123565056 "GET /en/operating-theatre/notes/ HTTP/1.1" 500 222330 +WARNING 2025-09-04 01:08:02,071 log 91337 6123565056 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 01:08:02,071 basehttp 91337 6123565056 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 01:08:27,573 autoreload 91337 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 01:08:27,960 autoreload 91512 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 01:08:28,719 basehttp 91512 6129971200 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 30495 +WARNING 2025-09-04 01:08:28,734 log 91512 6129971200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 01:08:28,734 basehttp 91512 6129971200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 01:08:28,792 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:08:47,821 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 70486 +INFO 2025-09-04 01:08:47,832 basehttp 91512 13052751872 "GET /static/admin/js/theme.js HTTP/1.1" 200 1653 +INFO 2025-09-04 01:08:47,832 basehttp 91512 6146797568 "GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2808 +INFO 2025-09-04 01:08:47,832 basehttp 91512 6163623936 "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810 +INFO 2025-09-04 01:08:47,833 basehttp 91512 6129971200 "GET /static/admin/css/base.css HTTP/1.1" 200 22120 +INFO 2025-09-04 01:08:47,834 basehttp 91512 13035925504 "GET /static/admin/css/changelists.css HTTP/1.1" 200 6878 +INFO 2025-09-04 01:08:47,835 basehttp 91512 6129971200 "GET /static/admin/js/core.js HTTP/1.1" 200 6208 +INFO 2025-09-04 01:08:47,835 basehttp 91512 13052751872 "GET /static/admin/css/responsive.css HTTP/1.1" 200 16565 +INFO 2025-09-04 01:08:47,836 basehttp 91512 6163623936 "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 +INFO 2025-09-04 01:08:47,836 basehttp 91512 13035925504 "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 9777 +INFO 2025-09-04 01:08:47,837 basehttp 91512 13052751872 "GET /static/admin/js/urlify.js HTTP/1.1" 200 7887 +INFO 2025-09-04 01:08:47,838 basehttp 91512 6129971200 "GET /static/admin/js/actions.js HTTP/1.1" 200 8076 +INFO 2025-09-04 01:08:47,838 basehttp 91512 6163623936 "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 +INFO 2025-09-04 01:08:47,840 basehttp 91512 13052751872 "GET /static/admin/img/search.svg HTTP/1.1" 200 458 +INFO 2025-09-04 01:08:47,842 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:08:47,843 basehttp 91512 6146797568 "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 285314 +INFO 2025-09-04 01:08:47,845 basehttp 91512 6146797568 "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063 +INFO 2025-09-04 01:08:47,845 basehttp 91512 13035925504 "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 325171 +INFO 2025-09-04 01:08:47,847 basehttp 91512 13035925504 "GET /static/admin/js/filters.js HTTP/1.1" 200 978 +INFO 2025-09-04 01:08:47,853 basehttp 91512 13035925504 "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 +INFO 2025-09-04 01:08:47,853 basehttp 91512 6146797568 "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 +INFO 2025-09-04 01:08:47,853 basehttp 91512 13069578240 "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 +INFO 2025-09-04 01:09:29,755 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:09:33,102 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 70486 +INFO 2025-09-04 01:09:33,117 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:09:34,516 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 70486 +INFO 2025-09-04 01:09:34,534 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:09:38,639 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/surgicalnotetemplate/ HTTP/1.1" 200 69932 +INFO 2025-09-04 01:09:38,653 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:10:20,149 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/surgicalcase/ HTTP/1.1" 200 71253 +INFO 2025-09-04 01:10:20,167 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:10:26,224 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/equipmentusage/ HTTP/1.1" 200 70584 +INFO 2025-09-04 01:10:26,238 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:10:30,488 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/orblock/ HTTP/1.1" 200 72726 +INFO 2025-09-04 01:10:30,504 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:10:30,741 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:10:32,982 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/orblock/ HTTP/1.1" 200 72726 +INFO 2025-09-04 01:10:32,994 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:10:34,074 basehttp 91512 13069578240 "GET /en/admin/operating_theatre/orblock/ HTTP/1.1" 200 72726 +INFO 2025-09-04 01:10:34,090 basehttp 91512 13069578240 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 01:11:31,747 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:12:32,736 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:13:33,740 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:14:34,744 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:15:36,741 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:17:02,739 basehttp 91512 13069578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:19:51,376 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:21:51,353 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:24:03,829 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:26:16,737 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:28:53,050 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:31:30,688 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:33:30,690 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:35:30,687 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:37:30,682 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:39:30,681 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:41:30,685 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:43:30,685 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:45:30,672 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:47:30,672 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:49:30,702 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:51:30,698 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:53:30,698 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:55:30,685 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:57:30,691 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 01:59:30,697 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:01:30,683 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:03:30,686 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:05:30,677 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:07:30,675 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:09:30,673 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:11:30,679 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:13:30,668 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:15:30,665 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:17:11,749 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:17:17,405 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 82700 +INFO 2025-09-04 02:17:17,416 basehttp 91512 6146797568 "GET /static/admin/img/icon-yes.svg HTTP/1.1" 200 436 +INFO 2025-09-04 02:17:17,420 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:17:17,435 basehttp 91512 6129971200 "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 200 1097 +INFO 2025-09-04 02:17:25,040 basehttp 91512 6129971200 "POST /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 69435 +INFO 2025-09-04 02:17:25,052 basehttp 91512 6129971200 "GET /static/admin/js/cancel.js HTTP/1.1" 200 884 +INFO 2025-09-04 02:17:26,323 basehttp 91512 6129971200 "POST /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 302 0 +INFO 2025-09-04 02:17:26,338 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 71858 +INFO 2025-09-04 02:17:26,353 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:18:12,655 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:19:00,743 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 90051 +INFO 2025-09-04 02:19:00,749 basehttp 91512 6146797568 "GET /static/admin/img/icon-no.svg HTTP/1.1" 200 560 +INFO 2025-09-04 02:19:00,754 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:19:10,638 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/orblock/ HTTP/1.1" 200 72726 +INFO 2025-09-04 02:19:10,654 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:19:13,417 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/equipmentusage/ HTTP/1.1" 200 70584 +INFO 2025-09-04 02:19:13,432 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:19:14,668 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:19:17,581 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 90051 +INFO 2025-09-04 02:19:17,597 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:19:22,575 basehttp 91512 6129971200 "POST /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 71545 +INFO 2025-09-04 02:19:23,966 basehttp 91512 6129971200 "POST /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 302 0 +INFO 2025-09-04 02:19:23,988 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 71858 +INFO 2025-09-04 02:19:24,003 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:19:34,650 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 90016 +INFO 2025-09-04 02:19:34,662 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:19:44,336 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/surgicalcase/ HTTP/1.1" 200 71253 +INFO 2025-09-04 02:19:44,350 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:20:30,672 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:22:30,683 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:24:30,678 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:24:57,230 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 90016 +INFO 2025-09-04 02:24:57,246 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:25:01,265 basehttp 91512 6129971200 "POST /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 71507 +INFO 2025-09-04 02:25:02,511 basehttp 91512 6129971200 "POST /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 302 0 +INFO 2025-09-04 02:25:02,530 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 71858 +INFO 2025-09-04 02:25:02,546 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:25:31,677 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:26:29,896 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 71712 +INFO 2025-09-04 02:26:29,908 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:26:33,655 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:26:35,623 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/equipmentusage/ HTTP/1.1" 200 70584 +INFO 2025-09-04 02:26:35,637 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:28:30,666 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:30:30,669 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:30:46,058 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/equipmentusage/ HTTP/1.1" 200 70584 +INFO 2025-09-04 02:30:46,070 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:30:49,088 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/operatingroom/ HTTP/1.1" 200 71712 +INFO 2025-09-04 02:30:49,105 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:30:52,718 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/orblock/ HTTP/1.1" 200 72726 +INFO 2025-09-04 02:30:52,730 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:30:56,439 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 70486 +INFO 2025-09-04 02:30:56,454 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:31:02,371 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/surgicalcase/ HTTP/1.1" 200 71253 +INFO 2025-09-04 02:31:02,386 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:31:44,856 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/surgicalcase/ HTTP/1.1" 200 71253 +INFO 2025-09-04 02:31:44,869 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:32:30,662 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:34:30,664 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:36:30,687 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:37:34,257 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/surgicalcase/ HTTP/1.1" 200 106253 +INFO 2025-09-04 02:37:34,269 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:37:39,806 basehttp 91512 6129971200 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 98848 +INFO 2025-09-04 02:37:39,823 basehttp 91512 6129971200 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 02:37:41,531 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 02:37:42,904 log 91512 6129971200 Internal Server Error: /en/operating-theatre/notes/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_edit' not found. 'surgical_note_edit' is not a valid view function or pattern name. +ERROR 2025-09-04 02:37:42,906 basehttp 91512 6129971200 "GET /en/operating-theatre/notes/ HTTP/1.1" 500 252427 +WARNING 2025-09-04 02:37:42,923 log 91512 6129971200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:37:42,923 basehttp 91512 6129971200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:40:59,270 log 91512 6129971200 Internal Server Error: /en/operating-theatre/notes/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_delete' not found. 'surgical_note_delete' is not a valid view function or pattern name. +ERROR 2025-09-04 02:40:59,276 basehttp 91512 6129971200 "GET /en/operating-theatre/notes/ HTTP/1.1" 500 252500 +WARNING 2025-09-04 02:40:59,287 log 91512 6129971200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:40:59,287 basehttp 91512 6129971200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:41:20,524 basehttp 91512 6129971200 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 101059 +WARNING 2025-09-04 02:41:20,538 log 91512 6129971200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:41:20,538 basehttp 91512 6129971200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:41:20,613 basehttp 91512 6129971200 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 02:41:25,264 log 91512 6129971200 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 112, in get + self.object = self.get_object() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 31, in get_object + queryset = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 913, in get_queryset + return SurgicalNote.objects.filter(tenant=self.request.user.tenant) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: blood_transfusion, closure, complications, condition, created_at, disposition, drains, estimated_blood_loss, findings, follow_up, id, implants, indication, note_id, planned_procedure, postop_instructions, postoperative_diagnosis, preoperative_diagnosis, procedure_performed, signed_datetime, specimens, status, surgeon, surgeon_id, surgical_approach, surgical_case, surgical_case_id, technique, template_used, template_used_id, updated_at +ERROR 2025-09-04 02:41:25,267 basehttp 91512 6129971200 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 141071 +WARNING 2025-09-04 02:41:25,282 log 91512 6129971200 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:41:25,282 basehttp 91512 6129971200 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:42:22,085 autoreload 91512 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:42:22,545 autoreload 32597 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 02:42:23,430 log 32597 6162427904 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'operative_note_list' not found. 'operative_note_list' is not a valid view function or pattern name. +ERROR 2025-09-04 02:42:23,433 basehttp 32597 6162427904 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 174923 +WARNING 2025-09-04 02:42:23,443 log 32597 6162427904 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:42:23,443 basehttp 32597 6162427904 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:42:25,079 log 32597 6162427904 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'operative_note_list' not found. 'operative_note_list' is not a valid view function or pattern name. +ERROR 2025-09-04 02:42:25,081 basehttp 32597 6162427904 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 174923 +WARNING 2025-09-04 02:42:25,093 log 32597 6162427904 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:42:25,093 basehttp 32597 6162427904 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:43:15,341 log 32597 6162427904 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'operative_note_pdf' not found. 'operative_note_pdf' is not a valid view function or pattern name. +ERROR 2025-09-04 02:43:15,343 basehttp 32597 6162427904 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 174302 +WARNING 2025-09-04 02:43:15,355 log 32597 6162427904 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:43:15,355 basehttp 32597 6162427904 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:43:43,587 log 32597 6162427904 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'operative_note_sign' not found. 'operative_note_sign' is not a valid view function or pattern name. +ERROR 2025-09-04 02:43:43,588 basehttp 32597 6162427904 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 170508 +WARNING 2025-09-04 02:43:43,602 log 32597 6162427904 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:43:43,602 basehttp 32597 6162427904 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:44:06,012 log 32597 6162427904 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'sign_note' with arguments '('',)' not found. 1 pattern(s) tried: ['en/operating\\-theatre/notes/(?P[0-9]+)/sign/\\Z'] +ERROR 2025-09-04 02:44:06,014 basehttp 32597 6162427904 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 173672 +WARNING 2025-09-04 02:44:06,025 log 32597 6162427904 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:44:06,025 basehttp 32597 6162427904 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:44:37,291 log 32597 6162427904 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'sign_note' with arguments '('',)' not found. 1 pattern(s) tried: ['en/operating\\-theatre/notes/(?P[0-9]+)/sign/\\Z'] +ERROR 2025-09-04 02:44:37,293 basehttp 32597 6162427904 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 173707 +WARNING 2025-09-04 02:44:37,310 log 32597 6162427904 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:44:37,310 basehttp 32597 6162427904 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:44:44,869 log 32597 6162427904 Internal Server Error: /en/operating-theatre/notes/19/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'sign_note' with arguments '('',)' not found. 1 pattern(s) tried: ['en/operating\\-theatre/notes/(?P[0-9]+)/sign/\\Z'] +ERROR 2025-09-04 02:44:44,870 basehttp 32597 6162427904 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 500 173672 +WARNING 2025-09-04 02:44:44,880 log 32597 6162427904 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:44:44,880 basehttp 32597 6162427904 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:46:10,898 autoreload 32597 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:46:11,372 autoreload 34330 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 02:46:11,776 basehttp 34330 6129905664 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 200 28371 +WARNING 2025-09-04 02:46:11,796 log 34330 6129905664 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:46:11,797 basehttp 34330 6129905664 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:46:11,857 basehttp 34330 6129905664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 02:46:29,865 log 34330 6146732032 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:46:29,865 basehttp 34330 6146732032 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:46:29,867 basehttp 34330 6129905664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 02:46:29,875 log 34330 6129905664 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:46:29,875 basehttp 34330 6129905664 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:47:29,851 basehttp 34330 6129905664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:48:29,852 basehttp 34330 6129905664 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:48:41,169 autoreload 34330 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:48:41,509 autoreload 35426 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 02:48:41,992 basehttp 35426 6126612480 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 101059 +WARNING 2025-09-04 02:48:42,008 log 35426 6126612480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:48:42,008 basehttp 35426 6126612480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:48:42,102 basehttp 35426 6126612480 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:48:48,001 basehttp 35426 6126612480 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 101059 +INFO 2025-09-04 02:48:48,014 basehttp 35426 6160265216 "GET /static/css/custom.css HTTP/1.1" 200 2063 +INFO 2025-09-04 02:48:48,014 basehttp 35426 6177091584 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-04 02:48:48,015 basehttp 35426 6193917952 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +WARNING 2025-09-04 02:48:48,019 log 35426 6210744320 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:48:48,020 basehttp 35426 6210744320 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:48:48,023 basehttp 35426 6193917952 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-04 02:48:48,025 basehttp 35426 6126612480 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-04 02:48:48,030 basehttp 35426 6210744320 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-04 02:48:48,034 basehttp 35426 6160265216 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-04 02:48:48,038 basehttp 35426 6160265216 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-04 02:48:48,038 basehttp 35426 6126612480 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-04 02:48:48,041 basehttp 35426 6177091584 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-04 02:48:48,041 basehttp 35426 6143438848 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-04 02:48:48,045 basehttp 35426 6126612480 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-04 02:48:48,047 basehttp 35426 6210744320 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +INFO 2025-09-04 02:48:48,051 basehttp 35426 6193917952 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-04 02:48:48,054 basehttp 35426 6160265216 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-04 02:48:48,233 basehttp 35426 6160265216 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-04 02:48:48,307 basehttp 35426 6193917952 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-04 02:48:48,307 basehttp 35426 6210744320 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-04 02:48:48,307 basehttp 35426 6160265216 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-04 02:48:48,308 basehttp 35426 6126612480 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-04 02:48:48,308 basehttp 35426 6143438848 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-04 02:48:48,312 basehttp 35426 6177091584 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-04 02:48:48,325 basehttp 35426 6177091584 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-04 02:48:48,326 basehttp 35426 6143438848 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-04 02:48:48,326 basehttp 35426 6126612480 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-04 02:48:48,326 basehttp 35426 6160265216 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-04 02:48:48,328 basehttp 35426 6210744320 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-04 02:48:48,330 basehttp 35426 6160265216 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-04 02:48:48,330 basehttp 35426 6177091584 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-04 02:48:48,330 basehttp 35426 6126612480 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-04 02:48:48,331 basehttp 35426 6210744320 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-04 02:48:48,334 basehttp 35426 6193917952 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-04 02:48:48,335 basehttp 35426 6160265216 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-04 02:48:48,338 basehttp 35426 6177091584 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-04 02:48:48,339 basehttp 35426 6126612480 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-04 02:48:48,339 basehttp 35426 6210744320 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-04 02:48:48,340 basehttp 35426 6193917952 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-04 02:48:48,340 basehttp 35426 6160265216 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-04 02:48:48,341 basehttp 35426 6177091584 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +INFO 2025-09-04 02:48:48,342 basehttp 35426 6143438848 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 02:48:48,492 log 35426 6143438848 Not Found: /favicon.ico +WARNING 2025-09-04 02:48:48,492 basehttp 35426 6143438848 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-04 02:48:54,647 basehttp 35426 6143438848 "GET /en/operating-theatre/notes/create/ HTTP/1.1" 200 50023 +INFO 2025-09-04 02:48:54,659 basehttp 35426 6160265216 "GET /static/plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css HTTP/1.1" 200 3034 +INFO 2025-09-04 02:48:54,660 basehttp 35426 6177091584 "GET /static/plugins/select2/dist/css/select2.min.css HTTP/1.1" 200 14966 +INFO 2025-09-04 02:48:54,660 basehttp 35426 6193917952 "GET /static/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 200 15733 +INFO 2025-09-04 02:48:54,661 basehttp 35426 6210744320 "GET /static/plugins/select2/dist/js/select2.min.js HTTP/1.1" 200 70851 +INFO 2025-09-04 02:48:54,662 basehttp 35426 6126612480 "GET /static/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 200 33871 +WARNING 2025-09-04 02:48:54,667 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-09-04 02:48:54,667 basehttp 35426 6126612480 "GET /static/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js HTTP/1.1" 200 18685 +WARNING 2025-09-04 02:48:54,668 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 02:48:57,258 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:48:57,258 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:48:57,948 basehttp 35426 6143438848 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 101059 +WARNING 2025-09-04 02:48:57,963 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:48:57,963 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:48:58,021 basehttp 35426 6143438848 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 02:49:00,905 log 35426 6143438848 Internal Server Error: /en/operating-theatre/notes/39/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_edit' not found. 'surgical_note_edit' is not a valid view function or pattern name. +ERROR 2025-09-04 02:49:00,907 basehttp 35426 6143438848 "GET /en/operating-theatre/notes/39/ HTTP/1.1" 500 192026 +WARNING 2025-09-04 02:49:00,927 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:49:00,928 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:50:07,907 log 35426 6143438848 Internal Server Error: /en/operating-theatre/notes/39/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_export' not found. 'surgical_note_export' is not a valid view function or pattern name. +ERROR 2025-09-04 02:50:07,909 basehttp 35426 6143438848 "GET /en/operating-theatre/notes/39/ HTTP/1.1" 500 172107 +WARNING 2025-09-04 02:50:07,921 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:50:07,921 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:50:22,671 log 35426 6143438848 Internal Server Error: /en/operating-theatre/notes/39/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_sign' not found. 'surgical_note_sign' is not a valid view function or pattern name. +ERROR 2025-09-04 02:50:22,672 basehttp 35426 6143438848 "GET /en/operating-theatre/notes/39/ HTTP/1.1" 500 172307 +WARNING 2025-09-04 02:50:22,683 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:50:22,683 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:50:40,623 log 35426 6143438848 Internal Server Error: /en/operating-theatre/notes/39/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_note_amend' not found. 'surgical_note_amend' is not a valid view function or pattern name. +ERROR 2025-09-04 02:50:40,625 basehttp 35426 6143438848 "GET /en/operating-theatre/notes/39/ HTTP/1.1" 500 172437 +WARNING 2025-09-04 02:50:40,638 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:50:40,638 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:51:46,884 basehttp 35426 6143438848 "GET /en/operating-theatre/notes/39/ HTTP/1.1" 200 31796 +WARNING 2025-09-04 02:51:46,901 log 35426 6143438848 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:51:46,901 basehttp 35426 6143438848 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:51:46,967 basehttp 35426 6143438848 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:51:59,040 basehttp 35426 6143438848 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 02:51:59,045 log 35426 6126612480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:51:59,045 basehttp 35426 6126612480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 02:51:59,068 log 35426 6126612480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:51:59,069 basehttp 35426 6126612480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:52:10,447 basehttp 35426 6126612480 "GET /en/operating-theatre/ HTTP/1.1" 200 43438 +WARNING 2025-09-04 02:52:10,467 log 35426 6126612480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:52:10,468 basehttp 35426 6126612480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:52:10,520 basehttp 35426 6126612480 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 02:52:12,210 basehttp 35426 6126612480 "GET /en/operating-theatre/blocks/ HTTP/1.1" 200 30344 +WARNING 2025-09-04 02:52:12,232 log 35426 6126612480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:52:12,232 basehttp 35426 6126612480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:52:12,285 basehttp 35426 6126612480 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:53:12,299 basehttp 35426 6126612480 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:53:50,881 autoreload 35426 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:53:51,296 autoreload 37791 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 02:54:12,377 basehttp 37791 6125563904 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 02:54:24,844 autoreload 37791 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:54:25,252 autoreload 38033 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 02:54:26,383 log 38033 6201716736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:54:26,383 basehttp 38033 6201716736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 02:54:26,392 log 38033 6201716736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:54:26,393 basehttp 38033 6201716736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 02:54:27,256 log 38033 6201716736 Internal Server Error: /en/operating-theatre/blocks/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 199, in render + len_values = len(values) + ^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 366, in __len__ + self._fetch_all() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1949, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1610, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 766, in as_sql + extra_select, order_by, group_by = self.pre_sql_setup( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 85, in pre_sql_setup + self.setup_query(with_col_aliases=with_col_aliases) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 74, in setup_query + self.select, self.klass_info, self.annotation_col_map = self.get_select( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 299, in get_select + related_klass_infos = self.get_related_selections(select, select_mask) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1396, in get_related_selections + raise FieldError( +django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'surgeon'. Choices are: operating_room, primary_surgeon, created_by +ERROR 2025-09-04 02:54:27,257 basehttp 38033 6201716736 "GET /en/operating-theatre/blocks/ HTTP/1.1" 500 216636 +WARNING 2025-09-04 02:54:27,274 log 38033 6201716736 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:54:27,274 basehttp 38033 6201716736 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:54:59,876 autoreload 38033 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:55:00,220 autoreload 38271 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 02:55:00,819 log 38271 6170423296 Internal Server Error: /en/operating-theatre/blocks/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'block_detail' not found. 'block_detail' is not a valid view function or pattern name. +ERROR 2025-09-04 02:55:00,820 basehttp 38271 6170423296 "GET /en/operating-theatre/blocks/ HTTP/1.1" 500 229236 +WARNING 2025-09-04 02:55:00,835 log 38271 6170423296 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:55:00,836 basehttp 38271 6170423296 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:55:29,240 basehttp 38271 6170423296 "GET /en/operating-theatre/blocks/ HTTP/1.1" 200 138849 +WARNING 2025-09-04 02:55:29,254 log 38271 6170423296 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:55:29,255 basehttp 38271 6170423296 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:55:29,333 basehttp 38271 6170423296 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 02:55:34,738 log 38271 6170423296 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 112, in get + self.object = self.get_object() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 31, in get_object + queryset = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 573, in get_queryset + return ORBlock.objects.filter(tenant=self.request.user.tenant) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: allocated_minutes, assistant_surgeons, block_id, block_type, created_at, created_by, created_by_id, date, end_time, id, notes, operating_room, operating_room_id, primary_surgeon, primary_surgeon_id, service, special_equipment, special_setup, start_time, status, surgical_cases, updated_at, used_minutes +ERROR 2025-09-04 02:55:34,740 basehttp 38271 6170423296 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 139986 +WARNING 2025-09-04 02:55:34,757 log 38271 6170423296 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:55:34,758 basehttp 38271 6170423296 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:56:15,238 autoreload 38271 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:56:15,559 autoreload 38820 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 02:56:16,317 log 38820 6170079232 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 580, in get_context_data + context['scheduled_cases'] = SurgicalCase.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'operating_room' into field. Choices are: actual_end, actual_start, admission, admission_id, anesthesia_type, anesthesiologist, anesthesiologist_id, approach, assistant_surgeons, blood_products, case_id, case_number, case_type, circulating_nurse, circulating_nurse_id, clinical_notes, complications, created_at, created_by, created_by_id, diagnosis, diagnosis_codes, encounter, encounter_id, equipment_usage, estimated_blood_loss, estimated_duration, id, implants, or_block, or_block_id, patient, patient_id, patient_position, primary_procedure, primary_surgeon, primary_surgeon_id, procedure_codes, scheduled_start, scrub_nurse, scrub_nurse_id, secondary_procedures, special_equipment, status, surgical_note, updated_at +ERROR 2025-09-04 02:56:16,319 basehttp 38820 6170079232 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 142005 +WARNING 2025-09-04 02:56:16,332 log 38820 6170079232 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:56:16,332 basehttp 38820 6170079232 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:57:15,065 autoreload 38820 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:57:15,411 autoreload 39286 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 02:57:16,057 log 39286 6134149120 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 580, in get_context_data + context['scheduled_cases'] = SurgicalCase.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'scheduled_start_time' into field. Choices are: actual_end, actual_start, admission, admission_id, anesthesia_type, anesthesiologist, anesthesiologist_id, approach, assistant_surgeons, blood_products, case_id, case_number, case_type, circulating_nurse, circulating_nurse_id, clinical_notes, complications, created_at, created_by, created_by_id, diagnosis, diagnosis_codes, encounter, encounter_id, equipment_usage, estimated_blood_loss, estimated_duration, id, implants, or_block, or_block_id, patient, patient_id, patient_position, primary_procedure, primary_surgeon, primary_surgeon_id, procedure_codes, scheduled_start, scrub_nurse, scrub_nurse_id, secondary_procedures, special_equipment, status, surgical_note, updated_at +ERROR 2025-09-04 02:57:16,059 basehttp 39286 6134149120 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 141576 +WARNING 2025-09-04 02:57:16,073 log 39286 6134149120 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:57:16,073 basehttp 39286 6134149120 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:59:07,647 autoreload 39286 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:59:08,009 autoreload 40149 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 02:59:08,845 log 40149 6157332480 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 580, in get_context_data + context['scheduled_cases'] = SurgicalCase.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1563, in build_filter + self.check_related_objects(join_info.final_field, value, join_info.opts) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1372, in check_related_objects + self.check_query_object_type(value, opts, field) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1349, in check_query_object_type + raise ValueError( +ValueError: Cannot query "King Faisal Specialist Hospital - Abha": Must be "ORBlock" instance. +ERROR 2025-09-04 02:59:08,847 basehttp 40149 6157332480 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 138427 +WARNING 2025-09-04 02:59:08,861 log 40149 6157332480 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:59:08,861 basehttp 40149 6157332480 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:59:43,514 autoreload 40149 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:59:43,842 autoreload 40405 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 02:59:44,951 log 40405 6158036992 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 586, in get_context_data + ).select_related('patient', 'primary_surgeon').order_by('scheduled_start_time') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'scheduled_start_time' into field. Choices are: actual_end, actual_start, admission, admission_id, anesthesia_type, anesthesiologist, anesthesiologist_id, approach, assistant_surgeons, blood_products, case_id, case_number, case_type, circulating_nurse, circulating_nurse_id, clinical_notes, complications, created_at, created_by, created_by_id, diagnosis, diagnosis_codes, encounter, encounter_id, equipment_usage, estimated_blood_loss, estimated_duration, id, implants, or_block, or_block_id, patient, patient_id, patient_position, primary_procedure, primary_surgeon, primary_surgeon_id, procedure_codes, scheduled_start, scrub_nurse, scrub_nurse_id, secondary_procedures, special_equipment, status, surgical_note, updated_at +ERROR 2025-09-04 02:59:44,953 basehttp 40405 6158036992 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 106294 +WARNING 2025-09-04 02:59:44,964 log 40405 6191689728 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:59:44,964 basehttp 40405 6191689728 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 02:59:57,514 autoreload 40405 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 02:59:57,880 autoreload 40489 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 02:59:58,949 log 40489 6132068352 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 596, in get_context_data + if case.estimated_duration_minutes: + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalCase' object has no attribute 'estimated_duration_minutes' +ERROR 2025-09-04 02:59:58,952 basehttp 40489 6132068352 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 87612 +WARNING 2025-09-04 02:59:58,963 log 40489 6132068352 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 02:59:58,964 basehttp 40489 6132068352 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:01:44,807 autoreload 40489 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:01:45,121 autoreload 41356 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:01:45,601 log 41356 6124957696 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'block_schedule_list' not found. 'block_schedule_list' is not a valid view function or pattern name. +ERROR 2025-09-04 03:01:45,602 basehttp 41356 6124957696 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 178004 +WARNING 2025-09-04 03:01:45,619 log 41356 6124957696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:01:45,619 basehttp 41356 6124957696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:02:26,566 log 41356 6124957696 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'block_schedule_list' not found. 'block_schedule_list' is not a valid view function or pattern name. +ERROR 2025-09-04 03:02:26,567 basehttp 41356 6124957696 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 178296 +WARNING 2025-09-04 03:02:26,582 log 41356 6124957696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:02:26,582 basehttp 41356 6124957696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:02:44,402 log 41356 6124957696 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'case_create' not found. 'case_create' is not a valid view function or pattern name. +ERROR 2025-09-04 03:02:44,404 basehttp 41356 6124957696 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 175561 +WARNING 2025-09-04 03:02:44,416 log 41356 6124957696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:02:44,417 basehttp 41356 6124957696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:03:11,974 basehttp 41356 6124957696 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:03:11,996 log 41356 6124957696 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:03:11,996 basehttp 41356 6124957696 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:03:12,108 basehttp 41356 6124957696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 03:03:19,497 log 41356 6141784064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:03:19,497 basehttp 41356 6141784064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:03:19,499 basehttp 41356 6124957696 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 03:03:19,504 log 41356 6141784064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:03:19,504 basehttp 41356 6141784064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:03:24,522 basehttp 41356 6141784064 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:03:24,535 log 41356 6141784064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:03:24,535 basehttp 41356 6141784064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:03:24,614 basehttp 41356 6141784064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:03:50,959 autoreload 41356 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:03:51,292 autoreload 42333 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 03:03:52,512 log 42333 6157299712 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:03:52,513 basehttp 42333 6157299712 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 03:03:52,520 log 42333 6157299712 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:03:52,520 basehttp 42333 6157299712 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:03:54,542 basehttp 42333 6157299712 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:03:54,561 log 42333 6157299712 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:03:54,561 basehttp 42333 6157299712 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:03:54,649 basehttp 42333 6157299712 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:04:54,663 basehttp 42333 6157299712 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:05:54,701 basehttp 42333 6157299712 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:06:03,466 autoreload 42333 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:06:03,807 autoreload 43263 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:06:04,601 basehttp 43263 6198177792 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:06:04,620 log 43263 6198177792 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:06:04,620 basehttp 43263 6198177792 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:06:04,679 basehttp 43263 6198177792 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:07:04,687 basehttp 43263 6198177792 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:07:30,224 autoreload 43263 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:07:30,550 autoreload 43963 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:07:30,843 basehttp 43963 6204665856 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:07:30,854 log 43963 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:07:30,854 basehttp 43963 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:07:30,906 basehttp 43963 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 03:07:35,004 log 43963 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:07:35,006 basehttp 43963 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:07:35,006 basehttp 43963 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 03:07:35,015 log 43963 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:07:35,015 basehttp 43963 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:07:37,831 basehttp 43963 6204665856 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:07:37,852 log 43963 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:07:37,852 basehttp 43963 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:07:37,918 basehttp 43963 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:08:37,931 basehttp 43963 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:08:56,552 basehttp 43963 6204665856 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:08:56,568 log 43963 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:08:56,568 basehttp 43963 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:08:56,624 basehttp 43963 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:08:57,962 basehttp 43963 6204665856 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:08:57,978 log 43963 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:08:57,978 basehttp 43963 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:08:58,034 basehttp 43963 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:09:42,482 autoreload 43963 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:09:42,831 autoreload 44898 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:09:43,147 basehttp 44898 6193180672 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:09:43,164 log 44898 6193180672 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:09:43,164 basehttp 44898 6193180672 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:09:43,236 basehttp 44898 6193180672 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:10:03,892 autoreload 44898 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:10:04,215 autoreload 45064 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:10:04,598 basehttp 45064 6131118080 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:10:04,616 log 45064 6131118080 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:10:04,616 basehttp 45064 6131118080 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:10:04,676 basehttp 45064 6131118080 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:11:04,687 basehttp 45064 6131118080 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:11:36,438 basehttp 45064 6131118080 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:11:36,457 log 45064 6131118080 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:11:36,457 basehttp 45064 6131118080 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:11:36,511 basehttp 45064 6131118080 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 03:11:41,628 log 45064 6131118080 Internal Server Error: /en/operating-theatre/blocks/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 199, in render + len_values = len(values) + ^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 366, in __len__ + self._fetch_all() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1949, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1610, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 766, in as_sql + extra_select, order_by, group_by = self.pre_sql_setup( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 85, in pre_sql_setup + self.setup_query(with_col_aliases=with_col_aliases) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 74, in setup_query + self.select, self.klass_info, self.annotation_col_map = self.get_select( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 299, in get_select + related_klass_infos = self.get_related_selections(select, select_mask) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1396, in get_related_selections + raise FieldError( +django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'surgical_cases'. Choices are: operating_room, primary_surgeon, created_by +ERROR 2025-09-04 03:11:41,630 basehttp 45064 6131118080 "GET /en/operating-theatre/blocks/ HTTP/1.1" 500 217284 +WARNING 2025-09-04 03:11:41,648 log 45064 6131118080 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:11:41,648 basehttp 45064 6131118080 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 03:11:47,447 log 45064 6131118080 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:11:47,448 basehttp 45064 6131118080 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 03:11:47,461 log 45064 6131118080 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:11:47,461 basehttp 45064 6131118080 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 03:11:48,576 log 45064 6147944448 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:11:48,577 basehttp 45064 6147944448 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:11:48,577 basehttp 45064 6131118080 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 03:11:48,587 log 45064 6131118080 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:11:48,587 basehttp 45064 6131118080 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:11:49,714 log 45064 6131118080 Internal Server Error: /en/operating-theatre/blocks/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 199, in render + len_values = len(values) + ^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 366, in __len__ + self._fetch_all() + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1949, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1610, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 766, in as_sql + extra_select, order_by, group_by = self.pre_sql_setup( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 85, in pre_sql_setup + self.setup_query(with_col_aliases=with_col_aliases) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 74, in setup_query + self.select, self.klass_info, self.annotation_col_map = self.get_select( + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 299, in get_select + related_klass_infos = self.get_related_selections(select, select_mask) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/compiler.py", line 1396, in get_related_selections + raise FieldError( +django.core.exceptions.FieldError: Invalid field name(s) given in select_related: 'surgical_cases'. Choices are: operating_room, primary_surgeon, created_by +ERROR 2025-09-04 03:11:49,716 basehttp 45064 6131118080 "GET /en/operating-theatre/blocks/ HTTP/1.1" 500 217411 +WARNING 2025-09-04 03:11:49,729 log 45064 6131118080 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:11:49,729 basehttp 45064 6131118080 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:12:13,329 autoreload 45064 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:12:13,697 autoreload 46016 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:12:14,591 basehttp 46016 6341865472 "GET /en/operating-theatre/blocks/ HTTP/1.1" 200 138849 +WARNING 2025-09-04 03:12:14,610 log 46016 6341865472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:12:14,610 basehttp 46016 6341865472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:12:14,672 basehttp 46016 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:12:17,469 basehttp 46016 6341865472 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:12:17,492 log 46016 6341865472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:12:17,493 basehttp 46016 6341865472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:12:17,547 basehttp 46016 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:13:03,235 basehttp 46016 6341865472 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:13:03,251 log 46016 6341865472 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:13:03,252 basehttp 46016 6341865472 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:13:03,326 basehttp 46016 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:13:44,284 autoreload 46016 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:13:44,600 autoreload 46719 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 03:13:45,750 log 46719 6169964544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:13:45,750 basehttp 46719 6169964544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 03:13:45,757 log 46719 6169964544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:13:45,757 basehttp 46719 6169964544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:13:46,551 log 46719 6169964544 Internal Server Error: /en/operating-theatre/blocks/33/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 580, in get_context_data + context['scheduled_cases'] = SurgicalCase.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'operating_room' into field. Choices are: actual_end, actual_start, admission, admission_id, anesthesia_type, anesthesiologist, anesthesiologist_id, approach, assistant_surgeons, blood_products, case_id, case_number, case_type, circulating_nurse, circulating_nurse_id, clinical_notes, complications, created_at, created_by, created_by_id, diagnosis, diagnosis_codes, encounter, encounter_id, equipment_usage, estimated_blood_loss, estimated_duration, id, implants, or_block, or_block_id, patient, patient_id, patient_position, primary_procedure, primary_surgeon, primary_surgeon_id, procedure_codes, scheduled_start, scrub_nurse, scrub_nurse_id, secondary_procedures, special_equipment, status, surgical_note, updated_at +ERROR 2025-09-04 03:13:46,553 basehttp 46719 6169964544 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 500 142068 +WARNING 2025-09-04 03:13:46,565 log 46719 6169964544 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:13:46,565 basehttp 46719 6169964544 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:14:56,664 autoreload 46719 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:14:57,035 autoreload 47259 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:14:58,258 basehttp 47259 6122254336 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:14:58,272 log 47259 6122254336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:14:58,272 basehttp 47259 6122254336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:14:58,345 basehttp 47259 6122254336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:15:36,237 basehttp 47259 6122254336 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:15:36,251 log 47259 6122254336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:15:36,251 basehttp 47259 6122254336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:15:36,312 basehttp 47259 6122254336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:16:09,999 basehttp 47259 6122254336 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:16:10,017 log 47259 6122254336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:16:10,017 basehttp 47259 6122254336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:16:10,087 basehttp 47259 6122254336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:17:10,082 basehttp 47259 6122254336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:17:52,091 basehttp 47259 6122254336 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:17:52,110 log 47259 6122254336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:17:52,110 basehttp 47259 6122254336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:17:52,168 basehttp 47259 6122254336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:18:42,597 basehttp 47259 6122254336 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 32167 +WARNING 2025-09-04 03:18:42,612 log 47259 6122254336 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:18:42,613 basehttp 47259 6122254336 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:18:42,681 basehttp 47259 6122254336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:19:42,743 basehttp 47259 6122254336 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:19:43,030 autoreload 47259 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:19:43,396 autoreload 49350 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:19:44,268 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28437 +WARNING 2025-09-04 03:19:44,286 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:19:44,287 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:19:44,346 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:20:44,361 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:21:44,326 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:22:43,387 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28781 +WARNING 2025-09-04 03:22:43,404 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:22:43,404 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:22:43,469 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:23:34,485 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28797 +WARNING 2025-09-04 03:23:34,504 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:23:34,504 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:23:34,567 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:23:56,832 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28813 +WARNING 2025-09-04 03:23:56,847 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:23:56,847 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:23:56,901 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:24:56,913 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:25:56,905 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:26:19,968 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28848 +WARNING 2025-09-04 03:26:19,985 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:26:19,985 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:26:20,042 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:26:44,891 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28814 +WARNING 2025-09-04 03:26:44,910 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:26:44,910 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:26:44,965 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:27:21,191 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28785 +WARNING 2025-09-04 03:27:21,207 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:27:21,208 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:27:21,262 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:28:21,276 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:29:21,278 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:30:05,823 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28880 +WARNING 2025-09-04 03:30:05,838 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:30:05,838 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:30:05,894 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:30:36,901 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 28880 +WARNING 2025-09-04 03:30:36,915 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:30:36,915 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:30:36,990 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 03:31:10,319 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:31:10,320 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:31:12,441 basehttp 49350 6164066304 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28881 +WARNING 2025-09-04 03:31:12,458 log 49350 6164066304 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:31:12,458 basehttp 49350 6164066304 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:31:12,512 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:32:12,590 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:33:12,517 basehttp 49350 6164066304 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:33:20,431 autoreload 49350 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:33:21,429 autoreload 55456 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 03:33:22,691 log 55456 6190788608 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:33:22,692 basehttp 55456 6190788608 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 03:33:22,708 log 55456 6190788608 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:33:22,708 basehttp 55456 6190788608 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:33:25,150 basehttp 55456 6190788608 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28881 +WARNING 2025-09-04 03:33:25,164 log 55456 6190788608 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:33:25,164 basehttp 55456 6190788608 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:33:25,220 basehttp 55456 6190788608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:33:52,781 basehttp 55456 6190788608 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28886 +WARNING 2025-09-04 03:33:52,792 log 55456 6190788608 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:33:52,792 basehttp 55456 6190788608 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:33:52,842 basehttp 55456 6190788608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:34:01,934 basehttp 55456 6190788608 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28886 +WARNING 2025-09-04 03:34:01,951 log 55456 6190788608 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:34:01,951 basehttp 55456 6190788608 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:34:02,025 basehttp 55456 6190788608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:35:02,025 basehttp 55456 6190788608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:36:02,024 basehttp 55456 6190788608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:36:25,438 autoreload 55456 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:36:25,878 autoreload 56792 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 03:36:26,604 log 56792 6164410368 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:36:26,604 basehttp 56792 6164410368 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 03:36:26,615 log 56792 6164410368 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:36:26,615 basehttp 56792 6164410368 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:36:28,631 log 56792 6164410368 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 587, in get_context_data + scheduled_cases = context['scheduled_cases'] + ~~~~~~~^^^^^^^^^^^^^^^^^^^ +KeyError: 'scheduled_cases' +ERROR 2025-09-04 03:36:28,632 basehttp 56792 6164410368 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 86909 +WARNING 2025-09-04 03:36:28,646 log 56792 6164410368 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:36:28,646 basehttp 56792 6164410368 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:36:46,908 autoreload 56792 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:36:47,270 autoreload 56958 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:36:47,939 basehttp 56958 6194475008 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28886 +WARNING 2025-09-04 03:36:47,953 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:36:47,953 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:36:48,026 basehttp 56958 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:37:33,978 basehttp 56958 6194475008 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28886 +WARNING 2025-09-04 03:37:33,994 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:37:33,995 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:37:34,053 basehttp 56958 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:37:40,820 basehttp 56958 6194475008 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28886 +WARNING 2025-09-04 03:37:40,837 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:37:40,837 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:37:40,908 basehttp 56958 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:38:37,780 basehttp 56958 6194475008 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 28886 +WARNING 2025-09-04 03:38:37,796 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:38:37,796 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:38:37,850 basehttp 56958 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 03:39:12,884 log 56958 6194475008 Internal Server Error: /en/operating-theatre/blocks/38/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'case_detail' not found. 'case_detail' is not a valid view function or pattern name. +ERROR 2025-09-04 03:39:12,886 basehttp 56958 6194475008 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 500 189943 +WARNING 2025-09-04 03:39:12,899 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:39:12,899 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:39:56,748 basehttp 56958 6194475008 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 31083 +WARNING 2025-09-04 03:39:56,763 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:39:56,764 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:39:56,821 basehttp 56958 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:40:56,835 basehttp 56958 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 03:41:21,133 basehttp 56958 6194475008 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 31087 +WARNING 2025-09-04 03:41:21,152 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:41:21,152 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:41:21,209 basehttp 56958 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 03:41:28,717 log 56958 6194475008 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 112, in get + self.object = self.get_object() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 31, in get_object + queryset = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 752, in get_queryset + return SurgicalCase.objects.filter(tenant=self.request.user.tenant) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: actual_end, actual_start, admission, admission_id, anesthesia_type, anesthesiologist, anesthesiologist_id, approach, assistant_surgeons, blood_products, case_id, case_number, case_type, circulating_nurse, circulating_nurse_id, clinical_notes, complications, created_at, created_by, created_by_id, diagnosis, diagnosis_codes, encounter, encounter_id, equipment_usage, estimated_blood_loss, estimated_duration, id, implants, or_block, or_block_id, patient, patient_id, patient_position, primary_procedure, primary_surgeon, primary_surgeon_id, procedure_codes, scheduled_start, scrub_nurse, scrub_nurse_id, secondary_procedures, special_equipment, status, surgical_note, updated_at +ERROR 2025-09-04 03:41:28,719 basehttp 56958 6194475008 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 142750 +WARNING 2025-09-04 03:41:28,737 log 56958 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:41:28,738 basehttp 56958 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:41:51,401 autoreload 56958 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:41:51,770 autoreload 59245 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:41:52,284 log 59245 6165770240 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 112, in get + self.object = self.get_object() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 31, in get_object + queryset = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 752, in get_queryset + return SurgicalCase.objects.filter(or_block__tenant=self.request.user.tenant) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1563, in build_filter + self.check_related_objects(join_info.final_field, value, join_info.opts) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1372, in check_related_objects + self.check_query_object_type(value, opts, field) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1349, in check_query_object_type + raise ValueError( +ValueError: Cannot query "King Faisal Specialist Hospital - Abha": Must be "ORBlock" instance. +ERROR 2025-09-04 03:41:52,286 basehttp 59245 6165770240 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 140014 +WARNING 2025-09-04 03:41:52,299 log 59245 6165770240 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:41:52,299 basehttp 59245 6165770240 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:42:40,689 autoreload 59245 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:42:41,061 autoreload 59644 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 03:43:11,157 autoreload 59644 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:43:11,504 autoreload 59880 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:43:12,056 log 59880 6127808512 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 759, in get_context_data + context['surgical_notes'] = surgical_case.surgical_notes.all().order_by('-created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalCase' object has no attribute 'surgical_notes'. Did you mean: 'surgical_note'? +ERROR 2025-09-04 03:43:12,059 basehttp 59880 6127808512 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 86909 +WARNING 2025-09-04 03:43:12,074 log 59880 6127808512 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:43:12,074 basehttp 59880 6127808512 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:43:34,537 autoreload 59880 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:43:34,850 autoreload 60046 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:43:35,160 log 60046 6159052800 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 759, in get_context_data + context['surgical_notes'] = surgical_case.notes.all().order_by('-created_at') + ^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalCase' object has no attribute 'notes' +ERROR 2025-09-04 03:43:35,161 basehttp 60046 6159052800 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 86837 +WARNING 2025-09-04 03:43:35,176 log 60046 6159052800 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:43:35,177 basehttp 60046 6159052800 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:44:48,753 autoreload 60046 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:44:49,112 autoreload 60592 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:44:49,642 log 60592 6194278400 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 759, in get_context_data + context['surgical_notes'] = surgical_case.surgical_note.all().order_by('-created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalNote' object has no attribute 'all' +ERROR 2025-09-04 03:44:49,643 basehttp 60592 6194278400 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 86869 +WARNING 2025-09-04 03:44:49,658 log 60592 6194278400 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:44:49,659 basehttp 60592 6194278400 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:45:14,162 autoreload 60592 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:45:14,535 autoreload 60757 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:45:15,157 log 60757 6123122688 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 759, in get_context_data + context['surgical_notes'] = surgical_case.surgical_note.all.order_by('-created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalNote' object has no attribute 'all' +ERROR 2025-09-04 03:45:15,158 basehttp 60757 6123122688 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 86865 +WARNING 2025-09-04 03:45:15,173 log 60757 6123122688 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:45:15,173 basehttp 60757 6123122688 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:45:16,297 log 60757 6123122688 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 759, in get_context_data + context['surgical_notes'] = surgical_case.surgical_note.all.order_by('-created_at') + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalNote' object has no attribute 'all' +ERROR 2025-09-04 03:45:16,297 basehttp 60757 6123122688 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 86865 +WARNING 2025-09-04 03:45:16,314 log 60757 6123122688 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:45:16,314 basehttp 60757 6123122688 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:45:49,982 autoreload 60757 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:45:50,335 autoreload 61068 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:45:50,707 log 61068 6204911616 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 759, in get_context_data + context['surgical_notes'] = surgical_case.surgical_case_notes.all() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalCase' object has no attribute 'surgical_case_notes' +ERROR 2025-09-04 03:45:50,710 basehttp 61068 6204911616 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 86881 +WARNING 2025-09-04 03:45:50,723 log 61068 6204911616 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:45:50,723 basehttp 61068 6204911616 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:46:40,324 autoreload 61068 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/models.py changed, reloading. +INFO 2025-09-04 03:46:40,653 autoreload 61459 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:46:43,357 log 61459 6200651776 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 759, in get_context_data + context['surgical_notes'] = surgical_case.surgical_notes.all() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalNote' object has no attribute 'all' +ERROR 2025-09-04 03:46:43,358 basehttp 61459 6200651776 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 86805 +WARNING 2025-09-04 03:46:43,373 log 61459 6200651776 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:46:43,373 basehttp 61459 6200651776 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:46:52,348 autoreload 61459 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:46:52,680 autoreload 61552 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:46:53,922 log 61552 6205091840 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 762, in get_context_data + context['equipment_usage'] = EquipmentUsage.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: created_at, end_time, equipment_name, equipment_type, expiration_date, id, lot_number, manufacturer, model, notes, quantity_used, recorded_by, recorded_by_id, serial_number, start_time, sterilization_date, surgical_case, surgical_case_id, total_cost, unit_cost, unit_of_measure, updated_at, usage_id +ERROR 2025-09-04 03:46:53,924 basehttp 61552 6205091840 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 139960 +WARNING 2025-09-04 03:46:53,944 log 61552 6205091840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:46:53,945 basehttp 61552 6205091840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:46:54,703 log 61552 6205091840 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 762, in get_context_data + context['equipment_usage'] = EquipmentUsage.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: created_at, end_time, equipment_name, equipment_type, expiration_date, id, lot_number, manufacturer, model, notes, quantity_used, recorded_by, recorded_by_id, serial_number, start_time, sterilization_date, surgical_case, surgical_case_id, total_cost, unit_cost, unit_of_measure, updated_at, usage_id +ERROR 2025-09-04 03:46:54,704 basehttp 61552 6205091840 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 139960 +WARNING 2025-09-04 03:46:54,720 log 61552 6205091840 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:46:54,720 basehttp 61552 6205091840 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:48:47,606 autoreload 61552 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:48:47,949 autoreload 62412 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:48:48,863 log 62412 6163083264 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 768, in get_context_data + if surgical_case.actual_start_time and surgical_case.actual_end_time: + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalCase' object has no attribute 'actual_start_time'. Did you mean: 'actual_start'? +ERROR 2025-09-04 03:48:48,867 basehttp 62412 6163083264 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 87192 +WARNING 2025-09-04 03:48:48,879 log 62412 6163083264 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:48:48,879 basehttp 62412 6163083264 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:48:49,796 log 62412 6163083264 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 768, in get_context_data + if surgical_case.actual_start_time and surgical_case.actual_end_time: + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'SurgicalCase' object has no attribute 'actual_start_time'. Did you mean: 'actual_start'? +ERROR 2025-09-04 03:48:49,799 basehttp 62412 6163083264 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 87192 +WARNING 2025-09-04 03:48:49,814 log 62412 6163083264 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:48:49,814 basehttp 62412 6163083264 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:49:19,199 autoreload 62412 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 03:49:19,563 autoreload 62649 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 03:49:20,314 log 62649 6131920896 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_case_start' not found. 'surgical_case_start' is not a valid view function or pattern name. +ERROR 2025-09-04 03:49:20,316 basehttp 62649 6131920896 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 178456 +WARNING 2025-09-04 03:49:20,330 log 62649 6131920896 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:49:20,330 basehttp 62649 6131920896 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:50:09,246 log 62649 6131920896 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_case_complete' not found. 'surgical_case_complete' is not a valid view function or pattern name. +ERROR 2025-09-04 03:50:09,248 basehttp 62649 6131920896 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 178744 +WARNING 2025-09-04 03:50:09,260 log 62649 6131920896 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:50:09,260 basehttp 62649 6131920896 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:50:26,440 log 62649 6131920896 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_case_cancel' not found. 'surgical_case_cancel' is not a valid view function or pattern name. +ERROR 2025-09-04 03:50:26,441 basehttp 62649 6131920896 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 178571 +WARNING 2025-09-04 03:50:26,453 log 62649 6131920896 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:50:26,454 basehttp 62649 6131920896 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 03:51:01,949 log 62649 6131920896 Internal Server Error: /en/operating-theatre/cases/36/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'surgical_case_export' not found. 'surgical_case_export' is not a valid view function or pattern name. +ERROR 2025-09-04 03:51:01,950 basehttp 62649 6131920896 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 500 179204 +WARNING 2025-09-04 03:51:01,963 log 62649 6131920896 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:51:01,963 basehttp 62649 6131920896 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:51:12,549 basehttp 62649 6131920896 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 200 31984 +WARNING 2025-09-04 03:51:12,565 basehttp 62649 6148747264 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 03:51:12,569 log 62649 6131920896 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 03:51:12,569 basehttp 62649 6131920896 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 03:51:12,635 basehttp 62649 6131920896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:02:11,434 autoreload 94389 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 06:02:15,650 basehttp 94389 6131380224 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 200 31984 +WARNING 2025-09-04 06:02:15,661 basehttp 94389 6131380224 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 06:02:15,749 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 06:02:16,046 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:02:16,046 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:03:15,748 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 06:03:50,313 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:03:50,313 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 06:03:56,011 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:03:56,011 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:03:58,012 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31116 +WARNING 2025-09-04 06:03:58,032 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:03:58,033 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:03:58,088 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:04:58,099 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:05:12,835 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31116 +WARNING 2025-09-04 06:05:12,845 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:05:12,845 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:05:12,914 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:05:28,540 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31117 +WARNING 2025-09-04 06:05:28,556 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:05:28,557 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:05:28,615 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:05:59,789 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31116 +WARNING 2025-09-04 06:05:59,801 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:05:59,801 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:05:59,866 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:06:49,969 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31117 +WARNING 2025-09-04 06:06:49,980 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:06:49,980 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:06:50,035 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:07:00,302 basehttp 94389 6148206592 "GET /en/operating-theatre/cases/38/ HTTP/1.1" 200 31980 +WARNING 2025-09-04 06:07:00,317 basehttp 94389 6131380224 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 06:07:00,320 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:07:00,320 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:07:00,358 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 06:07:02,817 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:07:02,817 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 06:07:02,829 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:07:02,829 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:07:50,408 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:08:51,407 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:09:52,418 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:10:52,427 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:11:40,698 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31295 +WARNING 2025-09-04 06:11:40,715 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:11:40,715 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:11:40,781 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:12:12,081 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31259 +WARNING 2025-09-04 06:12:12,095 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:12:12,096 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:12:12,153 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:13:12,158 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:13:58,142 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31728 +WARNING 2025-09-04 06:13:58,155 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:13:58,155 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:13:58,211 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:14:56,142 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31721 +WARNING 2025-09-04 06:14:56,156 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:14:56,156 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:14:56,212 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:15:36,344 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31217 +WARNING 2025-09-04 06:15:36,356 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:15:36,356 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:15:36,411 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:15:55,198 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31212 +WARNING 2025-09-04 06:15:55,210 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:15:55,210 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:15:55,265 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:16:55,280 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:17:55,294 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:18:16,018 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31139 +WARNING 2025-09-04 06:18:16,032 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:18:16,032 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:18:16,105 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:19:16,422 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:20:17,445 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:21:18,437 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:22:19,438 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:23:07,606 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31642 +WARNING 2025-09-04 06:23:07,620 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:23:07,620 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:23:07,718 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:23:34,104 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31652 +WARNING 2025-09-04 06:23:34,116 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:23:34,116 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:23:34,218 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:24:34,226 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:24:51,222 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31712 +WARNING 2025-09-04 06:24:51,236 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:24:51,236 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:24:51,289 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:25:29,216 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31727 +WARNING 2025-09-04 06:25:29,228 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:25:29,228 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:25:29,279 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:25:40,018 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31725 +WARNING 2025-09-04 06:25:40,029 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:25:40,029 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:25:40,083 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:25:49,752 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31728 +WARNING 2025-09-04 06:25:49,761 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:25:49,761 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:25:49,813 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:25:59,783 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31728 +WARNING 2025-09-04 06:25:59,795 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:25:59,795 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:25:59,867 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:27:00,435 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:27:41,456 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31724 +WARNING 2025-09-04 06:27:41,465 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:27:41,466 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:27:41,532 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:28:42,437 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:29:43,445 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:30:43,512 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:31:06,809 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31729 +WARNING 2025-09-04 06:31:06,820 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:31:06,820 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:31:06,888 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:31:15,099 basehttp 94389 6148206592 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31725 +WARNING 2025-09-04 06:31:15,109 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:31:15,109 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:31:15,161 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:32:03,531 basehttp 94389 6131380224 "GET /en/operating-theatre/cases/38/ HTTP/1.1" 200 31980 +WARNING 2025-09-04 06:32:03,543 basehttp 94389 6148206592 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 06:32:03,547 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:32:03,547 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:32:03,614 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:33:03,588 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:34:03,579 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:35:03,582 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:36:03,601 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:36:22,561 basehttp 94389 6131380224 "GET /en/operating-theatre/cases/38/ HTTP/1.1" 200 31980 +WARNING 2025-09-04 06:36:22,570 basehttp 94389 6131380224 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 06:36:22,575 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:36:22,575 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:36:22,615 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:36:24,801 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 06:36:24,802 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:36:24,802 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 06:36:24,810 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:36:24,810 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:36:26,066 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 31895 +WARNING 2025-09-04 06:36:26,081 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:36:26,081 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:36:26,143 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:37:26,150 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:38:26,149 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:39:26,155 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:39:39,859 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32557 +WARNING 2025-09-04 06:39:39,873 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:39:39,874 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:39:39,932 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:40:19,727 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32572 +WARNING 2025-09-04 06:40:19,742 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:40:19,742 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:40:19,806 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:40:59,533 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32582 +WARNING 2025-09-04 06:40:59,548 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:40:59,548 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:40:59,621 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:41:30,951 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32546 +WARNING 2025-09-04 06:41:30,969 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:41:30,969 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:41:31,041 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:42:31,032 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:42:32,228 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32769 +WARNING 2025-09-04 06:42:32,242 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:42:32,242 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:42:32,301 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:43:22,252 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 33001 +WARNING 2025-09-04 06:43:22,263 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:43:22,264 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:43:22,317 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:43:51,375 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32760 +WARNING 2025-09-04 06:43:51,389 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:43:51,389 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:43:51,449 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:44:51,464 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:45:41,015 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32760 +WARNING 2025-09-04 06:45:41,029 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:45:41,030 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:45:41,098 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:46:41,098 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:47:15,314 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32771 +WARNING 2025-09-04 06:47:15,331 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:47:15,331 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:47:15,390 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:47:42,479 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32793 +WARNING 2025-09-04 06:47:42,491 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:47:42,491 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:47:42,542 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:47:52,362 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32786 +WARNING 2025-09-04 06:47:52,373 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:47:52,373 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:47:52,426 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:48:52,431 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:49:06,540 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32808 +WARNING 2025-09-04 06:49:06,552 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:49:06,552 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:49:06,622 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:49:42,140 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32824 +WARNING 2025-09-04 06:49:42,150 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:49:42,151 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:49:42,202 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:49:58,067 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32824 +WARNING 2025-09-04 06:49:58,080 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:49:58,080 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:49:58,157 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:50:53,930 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32824 +WARNING 2025-09-04 06:50:53,945 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:50:53,945 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:50:54,002 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:51:54,015 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:52:27,376 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32826 +WARNING 2025-09-04 06:52:27,393 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:52:27,393 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:52:27,468 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:53:27,468 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:54:09,938 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32892 +WARNING 2025-09-04 06:54:09,952 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:54:09,952 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:54:10,010 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:54:39,354 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32878 +WARNING 2025-09-04 06:54:39,367 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:54:39,367 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:54:39,443 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:54:52,521 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32881 +WARNING 2025-09-04 06:54:52,535 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:54:52,535 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:54:52,594 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:55:12,738 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32886 +WARNING 2025-09-04 06:55:12,754 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:55:12,754 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:55:12,812 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:55:39,664 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32897 +WARNING 2025-09-04 06:55:39,683 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:55:39,683 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:55:39,741 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:56:39,744 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:56:47,930 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32892 +WARNING 2025-09-04 06:56:47,946 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:56:47,946 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:56:48,019 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:07,840 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/36/ HTTP/1.1" 200 32889 +WARNING 2025-09-04 06:57:07,850 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:07,850 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:07,903 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:37,401 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/ HTTP/1.1" 200 138849 +WARNING 2025-09-04 06:57:37,413 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:37,413 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:37,488 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:39,512 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/ HTTP/1.1" 200 138849 +WARNING 2025-09-04 06:57:39,528 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:39,528 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:39,585 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:42,637 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/?date= HTTP/1.1" 200 138861 +WARNING 2025-09-04 06:57:42,656 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:42,657 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:42,716 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:45,372 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/?date=2025-09-03 HTTP/1.1" 200 138881 +WARNING 2025-09-04 06:57:45,391 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:45,391 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:45,453 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:46,118 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/?date= HTTP/1.1" 200 138861 +WARNING 2025-09-04 06:57:46,139 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:46,139 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:46,193 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:48,815 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/?date=2025-09-05 HTTP/1.1" 200 138881 +WARNING 2025-09-04 06:57:48,836 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:48,836 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:48,895 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:57:58,778 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/?page=2&date=2025-09-05 HTTP/1.1" 200 95252 +WARNING 2025-09-04 06:57:58,827 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:57:58,827 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:57:58,856 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:58:00,940 basehttp 94389 6131380224 "GET /en/operating-theatre/blocks/12/ HTTP/1.1" 200 32878 +WARNING 2025-09-04 06:58:00,961 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 06:58:00,961 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 06:58:01,021 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 06:59:06,189 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:01:22,965 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:02:23,968 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:03:24,970 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:06:02,392 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:08:16,815 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:09:40,460 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:11:01,456 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:14:26,875 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:25:05,974 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:34:06,312 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:39:19,956 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:41:19,939 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:43:19,948 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:45:19,961 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:47:19,952 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:50:59,726 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:51:12,194 basehttp 94389 6131380224 "GET /en/operating-theatre/ HTTP/1.1" 200 49202 +WARNING 2025-09-04 07:51:12,214 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:51:12,214 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 07:51:12,315 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:51:12,319 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:51:42,315 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:52:12,337 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:52:12,339 basehttp 94389 6131380224 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:52:42,328 basehttp 94389 6131380224 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:53:12,345 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:53:12,347 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:53:42,326 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:54:10,009 basehttp 94389 6148206592 "GET /en/operating-theatre/ HTTP/1.1" 200 49003 +WARNING 2025-09-04 07:54:10,019 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:54:10,019 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 07:54:10,114 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:54:10,115 basehttp 94389 6131380224 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:54:25,437 basehttp 94389 6131380224 "GET /en/operating-theatre/rooms/ HTTP/1.1" 200 62154 +WARNING 2025-09-04 07:54:25,453 log 94389 6131380224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:54:25,454 basehttp 94389 6131380224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 07:54:25,528 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:54:25,530 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +WARNING 2025-09-04 07:54:27,846 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:54:27,846 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 07:54:27,858 log 94389 6148206592 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:54:27,858 basehttp 94389 6148206592 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 07:54:40,107 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:55:10,109 basehttp 94389 6148206592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:55:10,112 basehttp 94389 6131380224 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:55:40,112 basehttp 94389 6131380224 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:56:10,112 basehttp 94389 6131380224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 07:56:10,115 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:56:40,126 basehttp 94389 6148206592 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 07:57:06,338 autoreload 94389 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 07:57:06,851 autoreload 33595 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 07:57:07,345 log 33595 6196916224 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'or_block' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 07:57:07,347 basehttp 33595 6196916224 "GET /en/operating-theatre/ HTTP/1.1" 500 143744 +WARNING 2025-09-04 07:57:07,364 log 33595 6196916224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:57:07,364 basehttp 33595 6196916224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 07:58:03,112 autoreload 33595 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 07:58:03,492 autoreload 34009 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 07:58:04,185 log 34009 6171275264 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'surgical_cases' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 07:58:04,187 basehttp 34009 6171275264 "GET /en/operating-theatre/ HTTP/1.1" 500 142949 +WARNING 2025-09-04 07:58:04,199 log 34009 6171275264 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:58:04,199 basehttp 34009 6171275264 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 07:58:57,632 autoreload 34009 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 07:58:57,977 autoreload 34483 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 07:58:58,281 log 34483 6189674496 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query_utils.py", line 91, in resolve_expression + clause, joins = query._add_q( + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'surgical_cases' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 07:58:58,283 basehttp 34483 6189674496 "GET /en/operating-theatre/ HTTP/1.1" 500 150279 +WARNING 2025-09-04 07:58:58,298 log 34483 6189674496 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:58:58,298 basehttp 34483 6189674496 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 07:58:59,943 log 34483 6189674496 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query_utils.py", line 91, in resolve_expression + clause, joins = query._add_q( + ^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'surgical_cases' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 07:58:59,944 basehttp 34483 6189674496 "GET /en/operating-theatre/ HTTP/1.1" 500 150279 +WARNING 2025-09-04 07:58:59,957 log 34483 6189674496 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 07:58:59,957 basehttp 34483 6189674496 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:03:34,789 autoreload 34483 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:03:35,175 autoreload 36503 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 08:03:35,838 log 36503 6137884672 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2049, in resolve_ref + join_info = self.setup_joins( + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'or_block' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 08:03:35,840 basehttp 36503 6137884672 "GET /en/operating-theatre/ HTTP/1.1" 500 143992 +WARNING 2025-09-04 08:03:35,854 log 36503 6137884672 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:03:35,854 basehttp 36503 6137884672 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:03:43,726 autoreload 36503 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:03:44,071 autoreload 36596 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 08:03:44,817 log 36596 6127579136 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1923, in transform + return self.try_transform(wrapped, name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1458, in try_transform + raise FieldError( +django.core.exceptions.FieldError: Unsupported lookup 'surgical_cases' for BigAutoField or join on the field not permitted. + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2065, in resolve_ref + transform = join_info.transform_function(targets[0], final_alias) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1927, in transform + raise last_field_exception + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'surgical_cases' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 08:03:44,819 basehttp 36596 6127579136 "GET /en/operating-theatre/ HTTP/1.1" 500 170505 +WARNING 2025-09-04 08:03:44,835 log 36596 6127579136 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:03:44,835 basehttp 36596 6127579136 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:04:13,300 autoreload 36596 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:04:13,636 autoreload 36836 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 08:04:13,959 log 36836 6166343680 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1923, in transform + return self.try_transform(wrapped, name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1458, in try_transform + raise FieldError( +django.core.exceptions.FieldError: Unsupported lookup 'surgical_cases' for BigAutoField or join on the field not permitted. + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2065, in resolve_ref + transform = join_info.transform_function(targets[0], final_alias) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1927, in transform + raise last_field_exception + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'surgical_cases' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 08:04:13,961 basehttp 36836 6166343680 "GET /en/operating-theatre/ HTTP/1.1" 500 170775 +WARNING 2025-09-04 08:04:13,974 log 36836 6166343680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:04:13,974 basehttp 36836 6166343680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 08:04:15,190 log 36836 6166343680 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1923, in transform + return self.try_transform(wrapped, name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1458, in try_transform + raise FieldError( +django.core.exceptions.FieldError: Unsupported lookup 'surgical_cases' for BigAutoField or join on the field not permitted. + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 120, in get_context_data + ).annotate( + ^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1649, in annotate + return self._annotate(args, kwargs, select=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1701, in _annotate + clone.query.add_annotation( + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1218, in add_annotation + annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 176, in resolve_expression + result = super().resolve_expression(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/aggregates.py", line 63, in resolve_expression + c = super().resolve_expression(query, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 300, in resolve_expression + expr.resolve_expression(query, allow_joins, reuse, summarize, for_save) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/expressions.py", line 902, in resolve_expression + return query.resolve_ref(self.name, allow_joins, reuse, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2065, in resolve_ref + transform = join_info.transform_function(targets[0], final_alias) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1927, in transform + raise last_field_exception + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1900, in setup_joins + path, final_field, targets, rest = self.names_to_path( + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'surgical_cases' into field. Choices are: accepts_emergency, air_changes_per_hour, building, ceiling_height, cleaning_time, created_at, created_by, created_by_id, equipment_list, floor_number, has_c_arm, has_ct, has_mri, has_neuromonitoring, has_ultrasound, humidity_max, humidity_min, id, is_active, max_case_duration, or_blocks, positive_pressure, required_nurses, required_techs, room_id, room_name, room_number, room_size, room_type, special_features, status, supports_laparoscopic, supports_laser, supports_microscopy, supports_robotic, temperature_max, temperature_min, tenant, tenant_id, turnover_time, updated_at, wing +ERROR 2025-09-04 08:04:15,192 basehttp 36836 6166343680 "GET /en/operating-theatre/ HTTP/1.1" 500 170775 +WARNING 2025-09-04 08:04:15,204 log 36836 6166343680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:04:15,205 basehttp 36836 6166343680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:06:14,507 autoreload 36836 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:06:14,845 autoreload 37704 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:06:17,286 basehttp 37704 6196293632 "GET /en/operating-theatre/ HTTP/1.1" 200 73125 +WARNING 2025-09-04 08:06:17,306 log 37704 6196293632 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:06:17,306 basehttp 37704 6196293632 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:06:17,373 basehttp 37704 6196293632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:06:17,377 basehttp 37704 6213120000 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 08:06:33,087 basehttp 37704 6213120000 "GET /en/operating-theatre/cases/1/ HTTP/1.1" 200 32155 +WARNING 2025-09-04 08:06:33,102 basehttp 37704 6196293632 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 08:06:33,107 log 37704 6213120000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:06:33,107 basehttp 37704 6213120000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:06:33,159 basehttp 37704 6213120000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 08:06:37,581 log 37704 6213120000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:06:37,581 basehttp 37704 6213120000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:06:37,595 log 37704 6213120000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:06:37,595 basehttp 37704 6213120000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:06:47,377 basehttp 37704 6213120000 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 08:07:17,370 basehttp 37704 6213120000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:07:17,374 basehttp 37704 6196293632 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 08:07:47,373 basehttp 37704 6196293632 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 08:07:47,485 basehttp 37704 6196293632 "GET /en/operating-theatre/ HTTP/1.1" 200 73106 +WARNING 2025-09-04 08:07:47,496 log 37704 6196293632 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:07:47,496 basehttp 37704 6196293632 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:07:47,558 basehttp 37704 6196293632 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:07:47,567 basehttp 37704 6213120000 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +ERROR 2025-09-04 08:08:00,791 log 37704 6213120000 Internal Server Error: /en/operating-theatre/rooms/55/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 207, in get_context_data + context['todays_cases'] = operating_room.surgical_cases.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'OperatingRoom' object has no attribute 'surgical_cases' +ERROR 2025-09-04 08:08:00,793 basehttp 37704 6213120000 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 500 86937 +WARNING 2025-09-04 08:08:00,807 log 37704 6213120000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:08:00,807 basehttp 37704 6213120000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:08:41,230 autoreload 37704 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:08:41,552 autoreload 38805 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 08:08:42,706 log 38805 6158233600 Internal Server Error: /en/operating-theatre/rooms/55/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 207, in get_context_data + context['todays_cases'] = operating_room.or_blocks.surgical_cases.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'RelatedManager' object has no attribute 'surgical_cases' +ERROR 2025-09-04 08:08:42,709 basehttp 38805 6158233600 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 500 87118 +WARNING 2025-09-04 08:08:42,723 log 38805 6158233600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:08:42,723 basehttp 38805 6158233600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 08:08:43,566 log 38805 6158233600 Internal Server Error: /en/operating-theatre/rooms/55/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 113, in get + context = self.get_context_data(object=self.object) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 207, in get_context_data + context['todays_cases'] = operating_room.or_blocks.surgical_cases.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'RelatedManager' object has no attribute 'surgical_cases' +ERROR 2025-09-04 08:08:43,568 basehttp 38805 6158233600 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 500 87118 +WARNING 2025-09-04 08:08:43,583 log 38805 6158233600 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:08:43,583 basehttp 38805 6158233600 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:09:35,682 autoreload 38805 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:09:36,002 autoreload 39202 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:10:08,520 autoreload 39202 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:10:08,845 autoreload 39437 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:10:09,855 basehttp 39437 6194475008 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 42721 +WARNING 2025-09-04 08:10:09,875 log 39437 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:10:09,875 basehttp 39437 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:10:09,948 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:11:09,967 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:12:09,959 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:13:10,006 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:14:09,969 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:14:26,461 basehttp 39437 6194475008 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 40248 +WARNING 2025-09-04 08:14:26,477 log 39437 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:14:26,477 basehttp 39437 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:14:26,548 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:15:05,352 basehttp 39437 6194475008 "POST /en/operating-theatre/rooms/55/update-status/ HTTP/1.1" 302 0 +INFO 2025-09-04 08:15:05,367 basehttp 39437 6194475008 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 40248 +INFO 2025-09-04 08:15:26,548 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:16:24,756 basehttp 39437 6194475008 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 40490 +WARNING 2025-09-04 08:16:24,769 log 39437 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:16:24,769 basehttp 39437 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:16:24,819 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:17:24,833 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:18:24,826 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:19:24,833 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:19:51,030 basehttp 39437 6194475008 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 41700 +WARNING 2025-09-04 08:19:51,047 log 39437 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:19:51,047 basehttp 39437 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:19:51,113 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:20:01,738 basehttp 39437 6194475008 "GET /en/operating-theatre/rooms/55/update/ HTTP/1.1" 200 49286 +WARNING 2025-09-04 08:20:01,756 log 39437 6194475008 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:20:01,756 basehttp 39437 6194475008 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:20:01,813 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:21:01,829 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:22:01,827 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:23:01,827 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:24:01,843 basehttp 39437 6194475008 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:24:51,885 autoreload 39437 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:24:52,248 autoreload 45949 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:25:01,902 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:26:01,851 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:27:01,857 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:27:33,642 basehttp 45949 6123352064 "GET /en/operating-theatre/rooms/55/update/ HTTP/1.1" 200 43298 +WARNING 2025-09-04 08:27:33,657 log 45949 6123352064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:27:33,657 basehttp 45949 6123352064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:27:33,708 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:28:33,726 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:29:33,726 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:30:22,429 basehttp 45949 6123352064 "GET /en/operating-theatre/rooms/55/update/ HTTP/1.1" 200 33328 +WARNING 2025-09-04 08:30:22,445 log 45949 6123352064 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:30:22,445 basehttp 45949 6123352064 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:30:22,486 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:31:22,500 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:32:22,492 basehttp 45949 6123352064 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:32:32,780 autoreload 45949 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:32:33,156 autoreload 49377 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:33:08,644 autoreload 49377 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/forms.py changed, reloading. +INFO 2025-09-04 08:33:08,990 autoreload 49618 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:33:09,669 basehttp 49618 6162067456 "GET /en/operating-theatre/rooms/55/update/ HTTP/1.1" 200 43307 +WARNING 2025-09-04 08:33:09,686 log 49618 6162067456 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:33:09,686 basehttp 49618 6162067456 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:33:09,751 basehttp 49618 6162067456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:33:16,711 basehttp 49618 6162067456 "GET /en/operating-theatre/rooms/55/update/ HTTP/1.1" 200 43307 +INFO 2025-09-04 08:33:16,724 basehttp 49618 13052751872 "GET /static/css/custom.css HTTP/1.1" 200 2063 +WARNING 2025-09-04 08:33:16,726 log 49618 13069578240 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:33:16,727 basehttp 49618 13069578240 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:33:16,734 basehttp 49618 13052751872 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-04 08:33:16,734 basehttp 49618 6162067456 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-04 08:33:16,735 basehttp 49618 13069578240 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-04 08:33:16,740 basehttp 49618 13103230976 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-04 08:33:16,741 basehttp 49618 13035925504 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-04 08:33:16,742 basehttp 49618 13086404608 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-04 08:33:16,746 basehttp 49618 6162067456 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-04 08:33:16,753 basehttp 49618 13052751872 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-04 08:33:16,862 basehttp 49618 13052751872 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-04 08:33:16,924 basehttp 49618 13052751872 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-04 08:33:16,925 basehttp 49618 13086404608 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-04 08:33:16,925 basehttp 49618 13035925504 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-04 08:33:16,925 basehttp 49618 13103230976 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-04 08:33:16,926 basehttp 49618 6162067456 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-04 08:33:16,930 basehttp 49618 13103230976 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-04 08:33:16,932 basehttp 49618 13052751872 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-04 08:33:16,932 basehttp 49618 13069578240 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-04 08:33:16,932 basehttp 49618 13035925504 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-04 08:33:16,933 basehttp 49618 13086404608 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-04 08:33:16,934 basehttp 49618 13052751872 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-04 08:33:16,934 basehttp 49618 13035925504 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-04 08:33:16,934 basehttp 49618 13069578240 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-04 08:33:16,934 basehttp 49618 13086404608 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-04 08:33:16,935 basehttp 49618 13052751872 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-04 08:33:16,936 basehttp 49618 13052751872 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-04 08:33:16,938 basehttp 49618 6162067456 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-04 08:33:16,941 basehttp 49618 13052751872 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-04 08:33:16,942 basehttp 49618 13103230976 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:33:16,942 basehttp 49618 13035925504 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-04 08:33:16,943 basehttp 49618 13069578240 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-04 08:33:16,943 basehttp 49618 6162067456 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-04 08:33:16,943 basehttp 49618 13086404608 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-04 08:33:16,943 basehttp 49618 13052751872 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +WARNING 2025-09-04 08:33:17,082 log 49618 13052751872 Not Found: /favicon.ico +WARNING 2025-09-04 08:33:17,082 basehttp 49618 13052751872 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-04 08:34:16,945 basehttp 49618 13052751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:35:16,949 basehttp 49618 13052751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:35:32,489 autoreload 49618 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/forms.py changed, reloading. +INFO 2025-09-04 08:35:32,872 autoreload 50722 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:36:16,987 basehttp 50722 6132969472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:36:26,999 autoreload 50722 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:36:27,361 autoreload 51132 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:36:45,238 autoreload 51132 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/forms.py changed, reloading. +INFO 2025-09-04 08:36:45,560 autoreload 51293 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 08:36:46,826 log 51293 12918534144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:36:46,826 basehttp 51293 12918534144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:36:46,849 log 51293 12918534144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:36:46,850 basehttp 51293 12918534144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:36:48,491 basehttp 51293 12918534144 "GET /en/operating-theatre/rooms/55/update/ HTTP/1.1" 200 47164 +WARNING 2025-09-04 08:36:48,509 log 51293 12918534144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:36:48,509 basehttp 51293 12918534144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:36:48,596 basehttp 51293 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:37:18,356 basehttp 51293 12918534144 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 42073 +WARNING 2025-09-04 08:37:18,373 log 51293 12918534144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:37:18,373 basehttp 51293 12918534144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:37:29,682 basehttp 51293 12918534144 "GET /en/operating-theatre/ HTTP/1.1" 200 73106 +WARNING 2025-09-04 08:37:29,697 log 51293 12918534144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:37:29,698 basehttp 51293 12918534144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:37:29,760 basehttp 51293 12918534144 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 08:37:33,224 basehttp 51293 12918534144 "GET /en/operating-theatre/cases/1/ HTTP/1.1" 200 32155 +WARNING 2025-09-04 08:37:33,236 basehttp 51293 12935360512 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 08:37:33,240 log 51293 12918534144 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:37:33,241 basehttp 51293 12918534144 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:37:33,292 basehttp 51293 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:38:33,305 basehttp 51293 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:39:33,306 basehttp 51293 12918534144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:40:01,173 autoreload 51293 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:40:01,515 autoreload 52766 8466948288 Watching for file changes with StatReloader +WARNING 2025-09-04 08:40:02,607 basehttp 52766 6139392000 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 08:40:02,609 log 52766 6122565632 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:40:02,610 basehttp 52766 6122565632 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:40:02,620 log 52766 6122565632 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:40:02,620 basehttp 52766 6122565632 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:40:04,118 basehttp 52766 6122565632 "GET /en/operating-theatre/cases/1/ HTTP/1.1" 200 32155 +WARNING 2025-09-04 08:40:04,132 basehttp 52766 6122565632 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 08:40:04,136 log 52766 6139392000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:40:04,136 basehttp 52766 6139392000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:40:04,180 basehttp 52766 6139392000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 08:40:59,307 log 52766 6122565632 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:40:59,308 basehttp 52766 6122565632 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:40:59,308 basehttp 52766 6139392000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 08:40:59,315 log 52766 6139392000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:40:59,315 basehttp 52766 6139392000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:41:01,531 basehttp 52766 6139392000 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 73908 +WARNING 2025-09-04 08:41:01,547 log 52766 6139392000 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:41:01,547 basehttp 52766 6139392000 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:41:01,608 basehttp 52766 6139392000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:42:01,612 basehttp 52766 6139392000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:43:01,637 basehttp 52766 6139392000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:44:01,632 basehttp 52766 6139392000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:45:01,634 basehttp 52766 6139392000 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:46:00,431 autoreload 52766 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:46:00,899 autoreload 55378 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:46:01,677 basehttp 55378 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:47:01,666 basehttp 55378 6341865472 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:47:12,586 autoreload 55378 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:47:12,936 autoreload 55921 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:47:36,824 autoreload 55921 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:47:37,130 autoreload 56099 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:48:03,188 autoreload 56099 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/urls.py changed, reloading. +INFO 2025-09-04 08:48:03,516 autoreload 56343 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:48:26,523 autoreload 56343 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/urls.py changed, reloading. +INFO 2025-09-04 08:48:26,840 autoreload 56506 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 08:48:50,023 log 56506 6203076608 Internal Server Error: /en/operating-theatre/cases/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'start_case' with arguments '(39,)' not found. 1 pattern(s) tried: ['en/operating\\-theatre/cases/(?P[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/start/\\Z'] +ERROR 2025-09-04 08:48:50,025 basehttp 56506 6203076608 "GET /en/operating-theatre/cases/ HTTP/1.1" 500 260632 +WARNING 2025-09-04 08:48:50,044 log 56506 6203076608 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:48:50,044 basehttp 56506 6203076608 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:49:22,079 autoreload 56506 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/urls.py changed, reloading. +INFO 2025-09-04 08:49:22,411 autoreload 56904 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:49:24,346 basehttp 56904 6167031808 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 72955 +WARNING 2025-09-04 08:49:24,362 log 56904 6167031808 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:49:24,363 basehttp 56904 6167031808 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:49:24,399 basehttp 56904 6167031808 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:49:30,120 basehttp 56904 6167031808 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 72955 +INFO 2025-09-04 08:49:30,140 basehttp 56904 6200684544 "GET /static/css/custom.css HTTP/1.1" 200 2063 +WARNING 2025-09-04 08:49:30,143 log 56904 6217510912 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:49:30,143 basehttp 56904 6217510912 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:49:30,148 basehttp 56904 6167031808 "GET /static/css/vendor.min.css HTTP/1.1" 200 177466 +INFO 2025-09-04 08:49:30,151 basehttp 56904 6251163648 "GET /static/plugins/chart.js/dist/chart.js HTTP/1.1" 200 403805 +INFO 2025-09-04 08:49:30,152 basehttp 56904 6200684544 "GET /static/js/htmx.min.js HTTP/1.1" 200 50917 +INFO 2025-09-04 08:49:30,153 basehttp 56904 6183858176 "GET /static/css/default/app.min.css HTTP/1.1" 200 893480 +INFO 2025-09-04 08:49:30,153 basehttp 56904 6217510912 "GET /static/img/user/user-4.jpg HTTP/1.1" 200 5916 +INFO 2025-09-04 08:49:30,154 basehttp 56904 6234337280 "GET /static/plugins/apexcharts/dist/apexcharts.min.js HTTP/1.1" 200 574941 +INFO 2025-09-04 08:49:30,161 basehttp 56904 6251163648 "GET /static/js/app.min.js HTTP/1.1" 200 110394 +INFO 2025-09-04 08:49:30,170 basehttp 56904 6167031808 "GET /static/js/vendor.min.js HTTP/1.1" 200 1091361 +INFO 2025-09-04 08:49:30,395 basehttp 56904 6167031808 "GET /static/css/default/app.min.css.map HTTP/1.1" 200 1957526 +INFO 2025-09-04 08:49:30,428 basehttp 56904 6183858176 "GET /static/img/theme/apple.jpg HTTP/1.1" 200 28822 +INFO 2025-09-04 08:49:30,428 basehttp 56904 6251163648 "GET /static/img/theme/transparent.jpg HTTP/1.1" 200 32747 +INFO 2025-09-04 08:49:30,429 basehttp 56904 6217510912 "GET /static/img/theme/facebook.jpg HTTP/1.1" 200 27881 +INFO 2025-09-04 08:49:30,429 basehttp 56904 6167031808 "GET /static/img/theme/default.jpg HTTP/1.1" 200 26964 +INFO 2025-09-04 08:49:30,430 basehttp 56904 6234337280 "GET /static/img/theme/material.jpg HTTP/1.1" 200 28774 +INFO 2025-09-04 08:49:30,433 basehttp 56904 6200684544 "GET /static/img/theme/google.jpg HTTP/1.1" 200 86013 +INFO 2025-09-04 08:49:30,434 basehttp 56904 6234337280 "GET /static/img/version/angular10x.jpg HTTP/1.1" 200 24580 +INFO 2025-09-04 08:49:30,441 basehttp 56904 6167031808 "GET /static/img/version/ajax.jpg HTTP/1.1" 200 20223 +INFO 2025-09-04 08:49:30,442 basehttp 56904 6251163648 "GET /static/img/version/angular1x.jpg HTTP/1.1" 200 22869 +INFO 2025-09-04 08:49:30,442 basehttp 56904 6167031808 "GET /static/img/version/svelte.jpg HTTP/1.1" 200 25060 +INFO 2025-09-04 08:49:30,444 basehttp 56904 6234337280 "GET /static/img/version/laravel.jpg HTTP/1.1" 200 26040 +INFO 2025-09-04 08:49:30,444 basehttp 56904 6217510912 "GET /static/img/version/html.jpg HTTP/1.1" 200 17325 +INFO 2025-09-04 08:49:30,445 basehttp 56904 6183858176 "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 158220 +INFO 2025-09-04 08:49:30,463 basehttp 56904 6167031808 "GET /static/img/version/django.jpg HTTP/1.1" 200 20935 +INFO 2025-09-04 08:49:30,463 basehttp 56904 6217510912 "GET /static/img/version/nextjs.jpg HTTP/1.1" 200 20152 +INFO 2025-09-04 08:49:30,463 basehttp 56904 6251163648 "GET /static/img/version/vuejs.jpg HTTP/1.1" 200 22518 +INFO 2025-09-04 08:49:30,464 basehttp 56904 6234337280 "GET /static/img/version/reactjs.jpg HTTP/1.1" 200 26850 +INFO 2025-09-04 08:49:30,464 basehttp 56904 6183858176 "GET /static/img/version/dotnet.jpg HTTP/1.1" 200 24791 +INFO 2025-09-04 08:49:30,466 basehttp 56904 6200684544 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:49:30,468 basehttp 56904 6167031808 "GET /static/img/theme/forum.jpg HTTP/1.1" 200 28744 +INFO 2025-09-04 08:49:30,468 basehttp 56904 6217510912 "GET /static/img/theme/one-page-parallax.jpg HTTP/1.1" 200 22474 +INFO 2025-09-04 08:49:30,468 basehttp 56904 6234337280 "GET /static/img/theme/e-commerce.jpg HTTP/1.1" 200 37734 +INFO 2025-09-04 08:49:30,468 basehttp 56904 6251163648 "GET /static/img/theme/blog.jpg HTTP/1.1" 200 32334 +INFO 2025-09-04 08:49:30,468 basehttp 56904 6183858176 "GET /static/img/theme/corporate.jpg HTTP/1.1" 200 38911 +WARNING 2025-09-04 08:49:30,557 log 56904 6183858176 Not Found: /favicon.ico +WARNING 2025-09-04 08:49:30,558 basehttp 56904 6183858176 "GET /favicon.ico HTTP/1.1" 404 2557 +INFO 2025-09-04 08:49:40,367 basehttp 56904 6183858176 "GET /en/operating-theatre/cases/39/ HTTP/1.1" 200 32174 +WARNING 2025-09-04 08:49:40,385 basehttp 56904 6251163648 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 08:49:40,391 log 56904 6183858176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:49:40,392 basehttp 56904 6183858176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:49:40,472 basehttp 56904 6183858176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:49:46,055 basehttp 56904 6183858176 "POST /en/operating-theatre/cases/39/start/ HTTP/1.1" 302 0 +INFO 2025-09-04 08:49:46,073 basehttp 56904 6183858176 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 73251 +WARNING 2025-09-04 08:49:56,649 log 56904 6183858176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:49:56,650 basehttp 56904 6183858176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:49:56,660 log 56904 6183858176 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:49:56,661 basehttp 56904 6183858176 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:50:30,455 basehttp 56904 6183858176 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:51:29,469 autoreload 56904 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:51:29,829 autoreload 57866 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:51:30,184 basehttp 57866 6160936960 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 72857 +WARNING 2025-09-04 08:51:30,197 log 57866 6160936960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:51:30,197 basehttp 57866 6160936960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:51:30,267 basehttp 57866 6160936960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:52:13,156 basehttp 57866 6160936960 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 62005 +WARNING 2025-09-04 08:52:13,170 log 57866 6160936960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:52:13,170 basehttp 57866 6160936960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:52:13,247 basehttp 57866 6160936960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:52:24,172 basehttp 57866 6160936960 "GET /en/operating-theatre/cases/39/ HTTP/1.1" 200 32013 +WARNING 2025-09-04 08:52:24,185 basehttp 57866 6160936960 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 08:52:24,188 log 57866 6177763328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:52:24,188 basehttp 57866 6177763328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:52:24,240 basehttp 57866 6177763328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 08:52:59,714 log 57866 6177763328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:52:59,714 basehttp 57866 6177763328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:52:59,725 log 57866 6177763328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:52:59,725 basehttp 57866 6177763328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:53:13,233 basehttp 57866 6177763328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:54:13,237 basehttp 57866 6177763328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:54:36,315 basehttp 57866 6177763328 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 62005 +WARNING 2025-09-04 08:54:36,329 log 57866 6177763328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:54:36,330 basehttp 57866 6177763328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:54:36,390 basehttp 57866 6177763328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:54:44,532 basehttp 57866 6177763328 "POST /en/operating-theatre/cases/39/complete/ HTTP/1.1" 302 0 +INFO 2025-09-04 08:54:44,550 basehttp 57866 6177763328 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60458 +WARNING 2025-09-04 08:54:44,564 log 57866 6177763328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:54:44,565 basehttp 57866 6177763328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:54:44,639 basehttp 57866 6177763328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:54:50,751 basehttp 57866 6177763328 "POST /en/operating-theatre/cases/35/start/ HTTP/1.1" 302 0 +INFO 2025-09-04 08:54:50,772 basehttp 57866 6177763328 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60468 +WARNING 2025-09-04 08:54:50,787 log 57866 6177763328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:54:50,787 basehttp 57866 6177763328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:54:50,841 basehttp 57866 6177763328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 08:54:56,146 log 57866 6177763328 Internal Server Error: /en/operating-theatre/cases/35/update/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 201, in get + self.object = self.get_object() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/detail.py", line 31, in get_object + queryset = self.get_queryset() + ^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 858, in get_queryset + return SurgicalCase.objects.filter(tenant=self.request.user.tenant) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: actual_end, actual_start, admission, admission_id, anesthesia_type, anesthesiologist, anesthesiologist_id, approach, assistant_surgeons, blood_products, case_id, case_number, case_type, circulating_nurse, circulating_nurse_id, clinical_notes, complications, created_at, created_by, created_by_id, diagnosis, diagnosis_codes, encounter, encounter_id, equipment_usage, estimated_blood_loss, estimated_duration, id, implants, or_block, or_block_id, patient, patient_id, patient_position, primary_procedure, primary_surgeon, primary_surgeon_id, procedure_codes, scheduled_start, scrub_nurse, scrub_nurse_id, secondary_procedures, special_equipment, status, surgical_notes, updated_at +ERROR 2025-09-04 08:54:56,148 basehttp 57866 6177763328 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 500 147719 +WARNING 2025-09-04 08:54:56,168 log 57866 6177763328 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:54:56,169 basehttp 57866 6177763328 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:55:37,665 autoreload 57866 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:55:38,146 autoreload 59735 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 08:55:39,610 log 59735 6198996992 Internal Server Error: /en/operating-theatre/cases/35/update/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 202, in get + return super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 72, in get_context_data + kwargs["form"] = self.get_form() + ^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 36, in get_form + form_class = self.get_form_class() + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py", line 864, in get_form_class + class RestrictedSurgicalCaseForm(SurgicalCaseForm): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/forms/models.py", line 334, in __new__ + raise FieldError(message) +django.core.exceptions.FieldError: Unknown field(s) (notes) specified for SurgicalCase +ERROR 2025-09-04 08:55:39,611 basehttp 59735 6198996992 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 500 109860 +WARNING 2025-09-04 08:55:39,626 log 59735 6198996992 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:55:39,626 basehttp 59735 6198996992 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:56:16,933 autoreload 59735 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 08:56:17,310 autoreload 60043 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 08:56:19,142 basehttp 60043 6136967168 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 200 36121 +INFO 2025-09-04 08:56:19,162 basehttp 60043 6136967168 "GET /static/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css HTTP/1.1" 200 15733 +INFO 2025-09-04 08:56:19,162 basehttp 60043 6170619904 "GET /static/plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css HTTP/1.1" 200 3034 +INFO 2025-09-04 08:56:19,163 basehttp 60043 13035925504 "GET /static/plugins/select2/dist/css/select2.min.css HTTP/1.1" 200 14966 +WARNING 2025-09-04 08:56:19,165 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +INFO 2025-09-04 08:56:19,165 basehttp 60043 13052751872 "GET /static/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js HTTP/1.1" 200 33871 +INFO 2025-09-04 08:56:19,165 basehttp 60043 13069578240 "GET /static/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js HTTP/1.1" 200 18685 +WARNING 2025-09-04 08:56:19,166 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:56:19,166 basehttp 60043 6136967168 "GET /static/plugins/select2/dist/js/select2.min.js HTTP/1.1" 200 70851 +INFO 2025-09-04 08:56:19,214 basehttp 60043 6136967168 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:56:30,206 basehttp 60043 6136967168 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 08:56:30,207 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:56:30,207 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:56:30,217 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:56:30,217 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:56:30,873 basehttp 60043 6153793536 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60074 +WARNING 2025-09-04 08:56:30,885 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:56:30,885 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:56:31,791 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:56:31,791 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 08:56:32,606 log 60043 6153793536 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 890, in _resolve_lookup + raise TypeError +TypeError + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 320, in render + match = condition.eval(context) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 886, in eval + return self.value.resolve(context, ignore_failures=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 722, in resolve + obj = self.var.resolve(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 854, in resolve + value = self._resolve_lookup(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 901, in _resolve_lookup + current = getattr(current, bit) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/models.py", line 270, in current_case + return self.surgical_cases.filter( + ^^^^^^^^^^^^^^^^^^^ +AttributeError: 'OperatingRoom' object has no attribute 'surgical_cases' +ERROR 2025-09-04 08:56:32,609 basehttp 60043 6153793536 "GET /en/operating-theatre/ HTTP/1.1" 500 259596 +WARNING 2025-09-04 08:56:32,628 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:56:32,629 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +ERROR 2025-09-04 08:56:34,397 log 60043 6153793536 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 890, in _resolve_lookup + raise TypeError +TypeError + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 320, in render + match = condition.eval(context) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 886, in eval + return self.value.resolve(context, ignore_failures=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 722, in resolve + obj = self.var.resolve(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 854, in resolve + value = self._resolve_lookup(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 901, in _resolve_lookup + current = getattr(current, bit) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/models.py", line 270, in current_case + return self.surgical_cases.filter( + ^^^^^^^^^^^^^^^^^^^ +AttributeError: 'OperatingRoom' object has no attribute 'surgical_cases' +ERROR 2025-09-04 08:56:34,399 basehttp 60043 6153793536 "GET /en/operating-theatre/ HTTP/1.1" 500 259733 +WARNING 2025-09-04 08:56:34,415 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:56:34,415 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:57:26,333 basehttp 60043 6153793536 "GET /en/operating-theatre/blocks/12/ HTTP/1.1" 200 32878 +WARNING 2025-09-04 08:57:26,351 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:57:26,351 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:57:27,292 basehttp 60043 6153793536 "GET /en/operating-theatre/blocks/12/ HTTP/1.1" 200 32878 +WARNING 2025-09-04 08:57:27,309 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:57:27,309 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:57:27,374 basehttp 60043 6153793536 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 08:57:32,744 basehttp 60043 6153793536 "GET /en/operating-theatre/cases/13/ HTTP/1.1" 200 31982 +WARNING 2025-09-04 08:57:32,761 basehttp 60043 6136967168 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 08:57:32,766 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:57:32,766 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:57:32,839 basehttp 60043 6153793536 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 08:57:36,943 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:57:36,943 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 08:57:36,955 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:57:36,955 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:57:37,590 basehttp 60043 6153793536 "GET /en/operating-theatre/blocks/?page=2&date=2025-09-05 HTTP/1.1" 200 95252 +WARNING 2025-09-04 08:57:37,612 log 60043 6153793536 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:57:37,612 basehttp 60043 6153793536 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 08:57:44,203 basehttp 60043 6153793536 "GET /en/operating-theatre HTTP/1.1" 301 0 +ERROR 2025-09-04 08:57:44,279 log 60043 13069578240 Internal Server Error: /en/operating-theatre/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 890, in _resolve_lookup + raise TypeError +TypeError + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render + return nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render + nodelist.append(node.render_annotated(context)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 320, in render + match = condition.eval(context) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 886, in eval + return self.value.resolve(context, ignore_failures=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 722, in resolve + obj = self.var.resolve(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 854, in resolve + value = self._resolve_lookup(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 901, in _resolve_lookup + current = getattr(current, bit) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/models.py", line 270, in current_case + return self.surgical_cases.filter( + ^^^^^^^^^^^^^^^^^^^ +AttributeError: 'OperatingRoom' object has no attribute 'surgical_cases' +ERROR 2025-09-04 08:57:44,281 basehttp 60043 13069578240 "GET /en/operating-theatre/ HTTP/1.1" 500 259596 +WARNING 2025-09-04 08:57:44,301 log 60043 13069578240 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 08:57:44,301 basehttp 60043 13069578240 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:09:05,949 autoreload 60043 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/models.py changed, reloading. +INFO 2025-09-04 09:09:06,379 autoreload 65725 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 09:09:08,546 basehttp 65725 6198669312 "GET /en/operating-theatre/ HTTP/1.1" 200 73189 +WARNING 2025-09-04 09:09:08,567 log 65725 6198669312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:09:08,567 basehttp 65725 6198669312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:09:08,647 basehttp 65725 6198669312 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:09:08,649 basehttp 65725 6215495680 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 09:09:22,877 basehttp 65725 6215495680 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60074 +WARNING 2025-09-04 09:09:22,892 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:09:22,892 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:09:22,950 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 09:09:25,731 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:09:25,731 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 09:09:25,742 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:09:25,761 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:09:30,687 basehttp 65725 6215495680 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60074 +WARNING 2025-09-04 09:09:30,702 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:09:30,702 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:09:30,742 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 09:10:09,357 log 65725 6198669312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:10:09,357 basehttp 65725 6198669312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:10:09,359 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 09:10:09,375 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:10:09,375 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:11:09,344 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:12:09,351 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:13:09,346 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:14:08,633 basehttp 65725 6215495680 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 09:14:09,359 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:14:30,654 basehttp 65725 6215495680 "GET /en/operating-theatre/ HTTP/1.1" 200 59296 +WARNING 2025-09-04 09:14:30,667 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:14:30,667 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:14:30,721 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:14:30,739 basehttp 65725 6198669312 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 09:14:50,122 basehttp 65725 6198669312 "GET /en/operating-theatre/ HTTP/1.1" 200 59264 +WARNING 2025-09-04 09:14:50,136 log 65725 6198669312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:14:50,136 basehttp 65725 6198669312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:14:50,204 basehttp 65725 6215495680 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 09:14:50,208 basehttp 65725 6198669312 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:15:15,654 basehttp 65725 6198669312 "GET /en/operating-theatre/cases/1/ HTTP/1.1" 200 32155 +WARNING 2025-09-04 09:15:15,669 basehttp 65725 6198669312 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +WARNING 2025-09-04 09:15:15,673 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:15:15,673 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:15:15,725 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 09:15:19,772 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:15:19,772 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 09:15:19,790 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:15:19,790 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:15:30,725 basehttp 65725 6215495680 "GET /en/operating-theatre/rooms/ HTTP/1.1" 200 62360 +WARNING 2025-09-04 09:15:30,745 log 65725 6215495680 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:15:30,745 basehttp 65725 6215495680 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:15:30,820 basehttp 65725 6215495680 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 09:15:30,823 basehttp 65725 6198669312 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +WARNING 2025-09-04 09:15:38,427 log 65725 6198669312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:15:38,427 basehttp 65725 6198669312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 09:15:38,436 log 65725 6198669312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:15:38,437 basehttp 65725 6198669312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:15:41,661 basehttp 65725 6198669312 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60043 +WARNING 2025-09-04 09:15:41,683 log 65725 6198669312 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 09:15:41,683 basehttp 65725 6198669312 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 09:15:41,743 basehttp 65725 6198669312 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:00:06,992 autoreload 70999 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 11:00:52,024 basehttp 70999 6136360960 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60043 +WARNING 2025-09-04 11:00:52,068 log 70999 6136360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 11:00:52,068 basehttp 70999 6136360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 11:00:52,130 basehttp 70999 6136360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:00:55,460 basehttp 70999 6136360960 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 200 36121 +WARNING 2025-09-04 11:00:55,479 log 70999 6136360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 11:00:55,479 basehttp 70999 6136360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 11:00:55,564 basehttp 70999 6136360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:01:55,574 basehttp 70999 6136360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:02:55,578 basehttp 70999 6136360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:03:55,581 basehttp 70999 6136360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 11:04:31,226 log 70999 6136360960 Internal Server Error: /en/operating-theatre/cases/35/update/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_room_availability' not found. 'check_room_availability' is not a valid view function or pattern name. +ERROR 2025-09-04 11:04:31,228 basehttp 70999 6136360960 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 500 175981 +WARNING 2025-09-04 11:04:31,240 log 70999 6136360960 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 11:04:31,241 basehttp 70999 6136360960 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 11:07:57,026 autoreload 70999 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 11:07:57,417 autoreload 74422 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 11:08:39,777 autoreload 74422 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 11:08:40,124 autoreload 74807 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 11:09:03,945 autoreload 74807 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 11:09:04,239 autoreload 74972 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 11:10:05,545 autoreload 74972 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 11:10:05,837 autoreload 75438 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 11:10:09,218 log 75438 6159708160 Internal Server Error: /en/operating-theatre/cases/35/update/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_room_availability' not found. 'check_room_availability' is not a valid view function or pattern name. +ERROR 2025-09-04 11:10:09,221 basehttp 75438 6159708160 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 500 175981 +WARNING 2025-09-04 11:10:09,236 log 75438 6159708160 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 11:10:09,236 basehttp 75438 6159708160 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 11:10:36,166 autoreload 75438 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/urls.py changed, reloading. +INFO 2025-09-04 11:10:36,517 autoreload 75683 8466948288 Watching for file changes with StatReloader +ERROR 2025-09-04 11:10:37,782 log 75683 6137622528 Internal Server Error: /en/operating-theatre/cases/35/update/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'room_schedule' not found. 'room_schedule' is not a valid view function or pattern name. +ERROR 2025-09-04 11:10:37,784 basehttp 75683 6137622528 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 500 176775 +WARNING 2025-09-04 11:10:37,801 log 75683 6137622528 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 11:10:37,801 basehttp 75683 6137622528 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 11:11:15,928 basehttp 75683 6137622528 "GET /en/operating-theatre/cases/35/update/ HTTP/1.1" 200 34126 +WARNING 2025-09-04 11:11:15,942 log 75683 6137622528 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 11:11:15,943 basehttp 75683 6137622528 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 11:11:16,008 basehttp 75683 6137622528 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:12:56,454 basehttp 75683 6137622528 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:14:15,428 basehttp 75683 6137622528 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 11:18:03,578 basehttp 75683 6137622528 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:14:04,454 basehttp 75683 6137622528 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:14:53,177 basehttp 75683 6137622528 "GET /en/operating-theatre/rooms/ HTTP/1.1" 200 62360 +INFO 2025-09-04 12:14:53,218 basehttp 75683 6137622528 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:14:53,222 basehttp 75683 6154448896 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 12:14:57,859 basehttp 75683 6154448896 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 42041 +INFO 2025-09-04 12:14:57,895 basehttp 75683 6154448896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:15:04,359 basehttp 75683 6154448896 "GET /en/operating-theatre/rooms/55/update/ HTTP/1.1" 200 47164 +INFO 2025-09-04 12:15:04,392 basehttp 75683 6154448896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:15:13,592 basehttp 75683 6154448896 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 42041 +INFO 2025-09-04 12:15:13,626 basehttp 75683 6154448896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:15:22,536 basehttp 75683 6154448896 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 100952 +INFO 2025-09-04 12:15:22,552 basehttp 75683 6154448896 "GET /static/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 200 15096 +INFO 2025-09-04 12:15:22,552 basehttp 75683 6137622528 "GET /static/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 200 6044 +INFO 2025-09-04 12:15:22,553 basehttp 75683 13438578688 "GET /static/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 200 1470 +INFO 2025-09-04 12:15:22,554 basehttp 75683 6171275264 "GET /static/plugins/datatables.net/js/dataTables.min.js HTTP/1.1" 200 95735 +INFO 2025-09-04 12:15:22,554 basehttp 75683 13438578688 "GET /static/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 200 1796 +INFO 2025-09-04 12:15:22,554 basehttp 75683 6154448896 "GET /static/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 200 16086 +INFO 2025-09-04 12:15:22,590 basehttp 75683 6154448896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:15:29,660 basehttp 75683 6154448896 "GET /en/operating-theatre/notes/19/ HTTP/1.1" 200 31782 +INFO 2025-09-04 12:15:29,696 basehttp 75683 6154448896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:15:49,214 basehttp 75683 6154448896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:15:53,143 basehttp 75683 6154448896 "GET /en/operating-theatre/notes/ HTTP/1.1" 200 100952 +INFO 2025-09-04 12:15:53,177 basehttp 75683 6154448896 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:16:22,326 basehttp 75683 6154448896 "GET /en/operating-theatre/cases/5/ HTTP/1.1" 200 32149 +WARNING 2025-09-04 12:16:22,338 basehttp 75683 6154448896 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 12:16:22,363 basehttp 75683 6171275264 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:16:29,503 basehttp 75683 6171275264 "GET /en/operating-theatre/cases/5/update/ HTTP/1.1" 200 42733 +INFO 2025-09-04 12:16:29,536 basehttp 75683 6171275264 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:16:49,227 basehttp 75683 6171275264 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 12:17:15,525 log 75683 6171275264 Internal Server Error: /en/operating-theatre/blocks/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaulttags.py", line 480, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/base.py", line 98, in reverse + resolved_url = resolver._reverse_with_prefix(view, prefix, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'check_availability' not found. 'check_availability' is not a valid view function or pattern name. +ERROR 2025-09-04 12:17:15,527 basehttp 75683 6171275264 "GET /en/operating-theatre/blocks/create/ HTTP/1.1" 500 169656 +INFO 2025-09-04 12:38:21,809 autoreload 82708 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 12:38:25,852 basehttp 82708 6194950144 "GET / HTTP/1.1" 302 0 +INFO 2025-09-04 12:38:25,905 basehttp 82708 6211776512 "GET /en/ HTTP/1.1" 200 49904 +INFO 2025-09-04 12:38:25,959 basehttp 82708 6211776512 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:38:25,960 basehttp 82708 6245429248 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-04 12:38:25,961 basehttp 82708 6228602880 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 12:38:25,963 basehttp 82708 6194950144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 12:38:55,938 basehttp 82708 6194950144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 12:39:25,978 basehttp 82708 6194950144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:39:25,978 basehttp 82708 6228602880 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 12:39:25,980 basehttp 82708 6245429248 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 12:39:55,944 basehttp 82708 6245429248 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 12:40:25,950 basehttp 82708 6245429248 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:40:25,950 basehttp 82708 6228602880 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 12:40:25,952 basehttp 82708 6194950144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 12:40:55,956 basehttp 82708 6194950144 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 12:41:25,947 basehttp 82708 6194950144 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 12:41:25,948 basehttp 82708 6245429248 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 12:41:25,950 basehttp 82708 6228602880 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:11:04,651 autoreload 88648 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 14:11:06,462 basehttp 88648 6191460352 "GET / HTTP/1.1" 302 0 +INFO 2025-09-04 14:11:06,504 basehttp 88648 6208286720 "GET /en/ HTTP/1.1" 302 0 +INFO 2025-09-04 14:11:06,512 basehttp 88648 6208286720 "GET /accounts/login/?next=/en/ HTTP/1.1" 302 0 +ERROR 2025-09-04 14:11:06,536 log 88648 6191460352 Internal Server Error: /en/accounts/login/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/decorators.py", line 12, in wrap + resp = function(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 143, in sensitive_post_parameters_wrapper + return view(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 95, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/decorators.py", line 48, in _wrapper + return bound_method(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper + response = view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 53, in dispatch + response = super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 72, in get + response = super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/views.py", line 121, in get_context_data + signup_url = self.passthrough_next_url(reverse("account_signup")) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/mixins.py", line 191, in passthrough_next_url + return passthrough_next_redirect_url( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 285, in passthrough_next_redirect_url + next_url = get_next_redirect_url(request, redirect_field_name) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/utils.py", line 43, in get_next_redirect_url + if redirect_to and not get_adapter().is_safe_url(redirect_to): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/allauth/account/adapter.py", line 587, in is_safe_url + allowed_hosts = {context.request.get_host()} | set(settings.ALLOWED_HOSTS) + ^^^^^^^^^^^^^^^^^^^^^^^^ +AttributeError: 'NoneType' object has no attribute 'get_host' +ERROR 2025-09-04 14:11:06,539 basehttp 88648 6191460352 "GET /en/accounts/login/?next=/en/ HTTP/1.1" 500 160320 +INFO 2025-09-04 14:11:13,013 basehttp 88648 6191460352 "GET /en/admin HTTP/1.1" 301 0 +INFO 2025-09-04 14:11:13,047 basehttp 88648 6191460352 "GET /en/admin/ HTTP/1.1" 302 0 +INFO 2025-09-04 14:11:13,060 basehttp 88648 6191460352 "GET /en/admin/login/?next=/en/admin/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:11:13,068 basehttp 88648 6208286720 "GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2808 +INFO 2025-09-04 14:11:13,069 basehttp 88648 6225113088 "GET /static/admin/js/theme.js HTTP/1.1" 200 1653 +INFO 2025-09-04 14:11:13,069 basehttp 88648 6191460352 "GET /static/admin/css/base.css HTTP/1.1" 200 22120 +INFO 2025-09-04 14:11:13,070 basehttp 88648 6191460352 "GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810 +INFO 2025-09-04 14:11:13,070 basehttp 88648 6225113088 "GET /static/admin/css/login.css HTTP/1.1" 200 951 +INFO 2025-09-04 14:11:13,071 basehttp 88648 6208286720 "GET /static/admin/css/responsive.css HTTP/1.1" 200 16565 +INFO 2025-09-04 14:11:13,071 basehttp 88648 6225113088 "GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063 +INFO 2025-09-04 14:11:14,978 basehttp 88648 6225113088 "POST /en/admin/login/?next=/en/admin/ HTTP/1.1" 302 0 +INFO 2025-09-04 14:11:15,012 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:11:15,017 basehttp 88648 6225113088 "GET /en/admin/ HTTP/1.1" 200 90344 +INFO 2025-09-04 14:11:15,023 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:11:15,024 basehttp 88648 6225113088 "GET /static/admin/css/dashboard.css HTTP/1.1" 200 441 +INFO 2025-09-04 14:11:15,024 basehttp 88648 6241939456 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:11:15,027 basehttp 88648 6225113088 "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380 +INFO 2025-09-04 14:11:15,027 basehttp 88648 6241939456 "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331 +INFO 2025-09-04 14:11:15,027 basehttp 88648 6191460352 "GET /static/admin/img/icon-deletelink.svg HTTP/1.1" 200 392 +INFO 2025-09-04 14:11:16,968 basehttp 88648 6191460352 "GET / HTTP/1.1" 302 0 +INFO 2025-09-04 14:11:16,994 basehttp 88648 6241939456 "GET /en/ HTTP/1.1" 200 49904 +INFO 2025-09-04 14:11:17,064 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:11:17,069 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:11:17,072 basehttp 88648 6191460352 "GET /en/htmx/tenant-info/ HTTP/1.1" 200 1043 +INFO 2025-09-04 14:11:17,073 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:11:22,445 basehttp 88648 6225113088 "GET /en/operating-theatre/ HTTP/1.1" 200 59264 +INFO 2025-09-04 14:11:22,493 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:11:22,495 basehttp 88648 6191460352 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:11:43,300 basehttp 88648 6191460352 "GET /en/operating-theatre/rooms/55/ HTTP/1.1" 200 42041 +INFO 2025-09-04 14:11:43,332 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 14:11:59,106 log 88648 6191460352 Not Found: /en/operating-theatre/cases/1/start/ +WARNING 2025-09-04 14:11:59,106 basehttp 88648 6191460352 "POST /en/operating-theatre/cases/1/start/ HTTP/1.1" 404 39941 +INFO 2025-09-04 14:12:03,895 basehttp 88648 6191460352 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60043 +INFO 2025-09-04 14:12:03,927 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:12:15,011 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:12:15,158 basehttp 88648 6191460352 "POST /en/operating-theatre/cases/34/start/ HTTP/1.1" 302 0 +INFO 2025-09-04 14:12:15,170 basehttp 88648 6191460352 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 60459 +INFO 2025-09-04 14:12:15,200 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:12:25,594 basehttp 88648 6191460352 "POST /en/operating-theatre/cases/34/complete/ HTTP/1.1" 302 0 +INFO 2025-09-04 14:12:25,614 basehttp 88648 6191460352 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 58512 +INFO 2025-09-04 14:12:25,651 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:12:31,397 basehttp 88648 6191460352 "GET /en/operating-theatre/cases/30/ HTTP/1.1" 200 32151 +WARNING 2025-09-04 14:12:31,411 basehttp 88648 6191460352 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 14:12:31,429 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:12:39,863 basehttp 88648 6225113088 "GET /en/operating-theatre/cases/30/update/ HTTP/1.1" 200 42734 +INFO 2025-09-04 14:12:39,897 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:12:43,166 basehttp 88648 6225113088 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 58106 +INFO 2025-09-04 14:12:43,199 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:15,029 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:13:15,031 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:15,031 basehttp 88648 6241939456 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:13:31,443 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:37,681 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:41,646 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:43,461 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:13:43,461 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:43,464 basehttp 88648 6241939456 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:13:46,594 basehttp 88648 6241939456 "GET /en/operating-theatre/ HTTP/1.1" 200 59253 +INFO 2025-09-04 14:13:46,646 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:46,648 basehttp 88648 6208286720 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:13:53,246 basehttp 88648 6208286720 "GET /en/operating-theatre/rooms/ HTTP/1.1" 200 62361 +INFO 2025-09-04 14:13:53,284 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:13:53,285 basehttp 88648 6241939456 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:14:10,892 basehttp 88648 6241939456 "GET /en/operating-theatre/rooms/ HTTP/1.1" 200 62361 +INFO 2025-09-04 14:14:10,945 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:14:10,946 basehttp 88648 6208286720 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:14:13,836 basehttp 88648 6208286720 "GET /en/operating-theatre/rooms/create/ HTTP/1.1" 200 46766 +INFO 2025-09-04 14:14:13,866 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:14:15,002 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:14:40,942 basehttp 88648 6208286720 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:15:04,140 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:15:06,609 basehttp 88648 6208286720 "GET /en/operating-theatre/blocks/ HTTP/1.1" 200 138849 +INFO 2025-09-04 14:15:06,643 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:15:15,033 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:15:15,035 basehttp 88648 6241939456 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:15:15,037 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:15:18,478 basehttp 88648 6225113088 "GET /en/operating-theatre/blocks/38/ HTTP/1.1" 200 32859 +INFO 2025-09-04 14:15:18,527 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:15:36,996 basehttp 88648 6225113088 "GET /en/operating-theatre/cases/36/ HTTP/1.1" 200 31984 +WARNING 2025-09-04 14:15:37,006 basehttp 88648 6225113088 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 14:15:37,033 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:15:57,592 basehttp 88648 6241939456 "GET /en/operating-theatre/equipment/ HTTP/1.1" 200 31695 +INFO 2025-09-04 14:15:57,628 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:16:04,144 basehttp 88648 6241939456 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:16:05,086 basehttp 88648 6241939456 "GET /en/operating-theatre/templates/ HTTP/1.1" 200 41476 +WARNING 2025-09-04 14:16:05,100 basehttp 88648 6241939456 "GET /static/assets/plugins/datatables.net-bs5/css/dataTables.bootstrap5.min.css HTTP/1.1" 404 2128 +WARNING 2025-09-04 14:16:05,104 basehttp 88648 6191460352 "GET /static/assets/plugins/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 404 2098 +WARNING 2025-09-04 14:16:05,104 basehttp 88648 6208286720 "GET /static/assets/plugins/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css HTTP/1.1" 404 2161 +WARNING 2025-09-04 14:16:05,109 basehttp 88648 6258765824 "GET /static/assets/plugins/datatables.net-responsive-bs5/js/responsive.bootstrap5.min.js HTTP/1.1" 404 2155 +WARNING 2025-09-04 14:16:05,109 basehttp 88648 6225113088 "GET /static/assets/plugins/datatables.net-bs5/js/dataTables.bootstrap5.min.js HTTP/1.1" 404 2122 +WARNING 2025-09-04 14:16:05,109 basehttp 88648 6241939456 "GET /static/assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js HTTP/1.1" 404 2143 +INFO 2025-09-04 14:16:05,132 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:16:15,013 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:16:47,510 basehttp 88648 6191460352 "GET /en/billing/bills/create/ HTTP/1.1" 200 109320 +INFO 2025-09-04 14:16:47,556 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:16:51,098 basehttp 88648 6191460352 "GET /en/admin/ HTTP/1.1" 200 90344 +INFO 2025-09-04 14:17:06,011 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:17:15,031 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:17:15,035 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:17:15,037 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:17:15,680 basehttp 88648 6225113088 "GET /en/appointments/create/ HTTP/1.1" 200 36516 +INFO 2025-09-04 14:17:15,713 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:17:32,461 basehttp 88648 6225113088 "GET /en/admin/ HTTP/1.1" 200 90344 +INFO 2025-09-04 14:17:35,630 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:17:35,631 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:17:36,009 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:17:37,343 basehttp 88648 6225113088 "GET /en/operating-theatre/ HTTP/1.1" 200 59253 +INFO 2025-09-04 14:17:37,393 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:17:37,394 basehttp 88648 6208286720 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:18:15,031 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:18:15,031 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:18:15,032 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:18:37,402 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 14:19:05,825 log 88648 6208286720 Not Found: /en/configuration +WARNING 2025-09-04 14:19:05,825 basehttp 88648 6208286720 "GET /en/configuration HTTP/1.1" 404 29880 +WARNING 2025-09-04 14:19:08,761 log 88648 6208286720 Not Found: /en/configurations +WARNING 2025-09-04 14:19:08,761 basehttp 88648 6208286720 "GET /en/configurations HTTP/1.1" 404 29883 +INFO 2025-09-04 14:19:15,002 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:19:34,538 basehttp 88648 6208286720 "GET /en/hr HTTP/1.1" 301 0 +INFO 2025-09-04 14:19:34,574 basehttp 88648 6191460352 "GET /en/hr/ HTTP/1.1" 200 42463 +INFO 2025-09-04 14:19:34,615 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:19:38,106 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 14:19:52,933 log 88648 6191460352 Not Found: /en/communication +WARNING 2025-09-04 14:19:52,934 basehttp 88648 6191460352 "GET /en/communication HTTP/1.1" 404 29880 +INFO 2025-09-04 14:20:15,032 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:20:15,033 basehttp 88648 6225113088 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:20:15,036 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:20:20,235 basehttp 88648 6208286720 "GET /en/communications/messages HTTP/1.1" 301 0 +INFO 2025-09-04 14:20:20,251 basehttp 88648 6191460352 "GET /en/communications/messages/ HTTP/1.1" 200 29562 +INFO 2025-09-04 14:20:20,284 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:20:26,659 log 88648 6191460352 Internal Server Error: /en/communications/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 228, in get + context = self.get_context_data(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/communications/views.py", line 61, in get_context_data + 'recent_alerts': AlertInstance.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'tenant' into field. Choices are: acknowledged_at, acknowledged_by, acknowledged_by_id, alert_id, alert_rule, alert_rule_id, context_data, description, escalated_at, escalation_level, expires_at, last_notification_at, notifications_sent, resolution_notes, resolved_at, resolved_by, resolved_by_id, severity, status, title, trigger_data, triggered_at +ERROR 2025-09-04 14:20:26,661 basehttp 88648 6191460352 "GET /en/communications/ HTTP/1.1" 500 131927 +ERROR 2025-09-04 14:20:34,442 log 88648 6191460352 Internal Server Error: /en/communications/messages/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 105, in view + return self.dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch + return super().dispatch(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/base.py", line 144, in dispatch + return handler(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 178, in get + return super().get(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 142, in get + return self.render_to_response(self.get_context_data()) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 72, in get_context_data + kwargs["form"] = self.get_form() + ^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/views/generic/edit.py", line 37, in get_form + return form_class(**self.get_form_kwargs()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/communications/forms.py", line 76, in __init__ + ).order_by('template_name') + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1722, in order_by + obj.query.add_ordering(*field_names) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2291, in add_ordering + self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'template_name' into field. Choices are: alertrule, category, content_template, created_at, created_by, created_by_id, default_values, description, formatting_rules, is_active, is_system_template, last_used_at, name, requires_approval, subject_template, template_id, template_type, tenant, tenant_id, updated_at, usage_count, variables +ERROR 2025-09-04 14:20:34,444 basehttp 88648 6191460352 "GET /en/communications/messages/create/ HTTP/1.1" 500 115242 +INFO 2025-09-04 14:21:15,031 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:21:15,032 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:21:17,691 basehttp 88648 6191460352 "GET /en/pharmacy/ HTTP/1.1" 200 34315 +INFO 2025-09-04 14:21:17,738 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:21:17,784 log 88648 6208286720 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:21:17,788 basehttp 88648 6208286720 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:21:17,794 log 88648 6225113088 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:21:17,795 basehttp 88648 6225113088 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +ERROR 2025-09-04 14:21:47,772 log 88648 6225113088 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:21:47,773 basehttp 88648 6225113088 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:21:49,353 basehttp 88648 6225113088 "GET /en/pharmacy/prescriptions/create/ HTTP/1.1" 200 71387 +INFO 2025-09-04 14:21:49,387 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:21:57,722 basehttp 88648 6225113088 "GET /en/pharmacy/medications/create/ HTTP/1.1" 200 45999 +INFO 2025-09-04 14:21:57,756 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:22:15,031 basehttp 88648 6225113088 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:22:15,033 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:22:18,228 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:22:18,281 log 88648 6225113088 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:22:18,284 basehttp 88648 6225113088 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:22:18,291 log 88648 6191460352 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:22:18,292 basehttp 88648 6191460352 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:22:19,347 basehttp 88648 6191460352 "GET /en/pharmacy/inventory/create/ HTTP/1.1" 200 70718 +INFO 2025-09-04 14:22:19,381 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:22:26,669 basehttp 88648 6191460352 "GET /en/pharmacy/drug-interactions/ HTTP/1.1" 200 46048 +INFO 2025-09-04 14:22:26,700 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:22:31,612 basehttp 88648 6191460352 "GET /en/pharmacy/ HTTP/1.1" 200 34315 +INFO 2025-09-04 14:22:31,672 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:22:31,725 log 88648 6208286720 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:22:31,730 log 88648 6225113088 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:22:31,731 basehttp 88648 6208286720 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:22:31,731 basehttp 88648 6225113088 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:22:33,708 basehttp 88648 6225113088 "GET /en/pharmacy/ HTTP/1.1" 200 34315 +INFO 2025-09-04 14:22:33,757 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:22:33,802 log 88648 6191460352 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:22:33,804 basehttp 88648 6191460352 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:22:33,814 log 88648 6208286720 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:22:33,815 basehttp 88648 6208286720 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +ERROR 2025-09-04 14:23:07,360 log 88648 6208286720 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:23:07,361 basehttp 88648 6208286720 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:23:15,017 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:23:15,018 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:28:16,143 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:28:16,190 log 88648 6191460352 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:28:16,193 basehttp 88648 6191460352 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:28:16,203 log 88648 6225113088 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:28:16,203 basehttp 88648 6225113088 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +ERROR 2025-09-04 14:30:00,487 log 88648 6225113088 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:30:00,493 basehttp 88648 6225113088 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:30:06,463 basehttp 88648 6225113088 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:30:06,466 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:30:06,467 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:30:30,450 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:30:30,483 log 88648 6208286720 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:30:30,484 basehttp 88648 6208286720 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:30:31,462 log 88648 6208286720 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:30:31,463 basehttp 88648 6208286720 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +ERROR 2025-09-04 14:31:24,812 log 88648 6208286720 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:31:24,813 basehttp 88648 6208286720 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:31:28,796 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:31:53,806 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:31:53,835 log 88648 6191460352 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:31:53,836 basehttp 88648 6191460352 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:31:55,814 log 88648 6191460352 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:31:55,816 basehttp 88648 6191460352 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:32:36,835 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:32:36,835 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:32:36,839 basehttp 88648 6241939456 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +ERROR 2025-09-04 14:32:36,863 log 88648 6191460352 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:32:36,864 basehttp 88648 6191460352 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:41:43,788 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:41:43,819 log 88648 6208286720 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:41:43,820 basehttp 88648 6208286720 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:42:14,887 log 88648 6208286720 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:42:14,888 basehttp 88648 6208286720 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:42:17,798 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:42:17,798 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:42:17,799 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:42:26,579 basehttp 88648 6225113088 "GET /en/pharmacy/inventory/ HTTP/1.1" 200 120332 +INFO 2025-09-04 14:42:26,621 basehttp 88648 6225113088 "GET /static/css/saudiriyalsymbol.woff2 HTTP/1.1" 200 720 +INFO 2025-09-04 14:42:26,651 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:43:17,783 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:43:26,664 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:44:17,804 basehttp 88648 6225113088 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:44:17,805 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:44:17,806 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:44:26,666 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:45:17,803 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:45:17,803 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:45:17,804 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:45:26,671 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:46:15,273 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:46:15,321 log 88648 6191460352 Internal Server Error: /en/pharmacy/inventory-alerts/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 737, in inventory_alerts + low_stock = InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:46:15,326 log 88648 6208286720 Internal Server Error: /en/pharmacy/stats/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/pharmacy/views.py", line 682, in pharmacy_stats + 'low_stock_items': InventoryItem.objects.filter( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method + return getattr(self.get_queryset(), name)(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1493, in filter + return self._filter_or_exclude(False, args, kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1511, in _filter_or_exclude + clone._filter_or_exclude_inplace(negate, args, kwargs) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1518, in _filter_or_exclude_inplace + self._query.add_q(Q(*args, **kwargs)) + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1646, in add_q + clause, _ = self._add_q(q_object, can_reuse) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1678, in _add_q + child_clause, needed_inner = self.build_filter( + ^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1526, in build_filter + lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1333, in solve_lookup_type + _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 1805, in names_to_path + raise FieldError( +django.core.exceptions.FieldError: Cannot resolve keyword 'current_stock' into field. Choices are: bin_location, created_at, created_by, created_by_id, dispense_records, expiration_date, id, inventory_id, last_counted, lot_number, medication, medication_id, purchase_order_number, quality_check_date, quality_checked, quality_notes, quantity_allocated, quantity_available, quantity_on_hand, received_date, reorder_point, reorder_quantity, status, storage_location, supplier, tenant, tenant_id, total_cost, unit_cost, updated_at +ERROR 2025-09-04 14:46:15,327 basehttp 88648 6191460352 "GET /en/pharmacy/inventory-alerts/ HTTP/1.1" 500 126819 +ERROR 2025-09-04 14:46:15,328 basehttp 88648 6208286720 "GET /en/pharmacy/stats/ HTTP/1.1" 500 126636 +INFO 2025-09-04 14:46:17,801 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:46:17,803 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:46:17,804 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:47:17,772 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:47:24,374 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:47:25,202 basehttp 88648 6208286720 "GET /en/operating-theatre/ HTTP/1.1" 200 59253 +INFO 2025-09-04 14:47:25,242 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:47:25,243 basehttp 88648 6225113088 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:47:46,289 basehttp 88648 6191460352 "GET /en/operating-theatre/ HTTP/1.1" 200 59253 +INFO 2025-09-04 14:47:46,336 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:47:46,339 basehttp 88648 6208286720 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 14:48:06,083 basehttp 88648 6208286720 "GET /en/operating-theatre/cases/6/ HTTP/1.1" 200 32168 +WARNING 2025-09-04 14:48:06,095 basehttp 88648 6208286720 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 14:48:06,116 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:48:17,802 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:48:17,804 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:48:17,806 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:49:06,118 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:49:17,769 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:49:22,539 basehttp 88648 6225113088 "GET /en/operating-theatre/cases/6/ HTTP/1.1" 200 32185 +WARNING 2025-09-04 14:49:22,545 basehttp 88648 6225113088 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 14:49:22,571 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:49:50,349 basehttp 88648 6191460352 "GET /en/operating-theatre/cases/6/ HTTP/1.1" 200 32185 +WARNING 2025-09-04 14:49:50,356 basehttp 88648 6191460352 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 14:49:50,382 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:49:52,507 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:49:54,304 basehttp 88648 6208286720 "GET /en/operating-theatre/cases/4/ HTTP/1.1" 200 32011 +WARNING 2025-09-04 14:49:54,311 basehttp 88648 6208286720 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 14:49:54,338 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:50:17,804 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:50:17,805 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:50:17,808 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:50:47,739 basehttp 88648 6225113088 "GET /en/operating-theatre/cases/4/ HTTP/1.1" 200 31982 +WARNING 2025-09-04 14:50:47,748 basehttp 88648 6225113088 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 14:50:47,780 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:51:17,773 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:51:47,790 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 14:52:04,792 log 88648 6208286720 Internal Server Error: /en/operating-theatre/cases/4/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 220, in _get_response + response = response.render() + ^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 114, in render + self.content = self.rendered_content + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content + return template.render(context, self._request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render + return self.template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 171, in render + return self._render(context) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render + return compiled_parent._render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 163, in _render + return self.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render + result = block.nodelist.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1016, in render + return SafeString("".join([node.render_annotated(context) for node in self])) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated + return self.render(context) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 1075, in render + output = self.filter_expression.resolve(context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/base.py", line 749, in resolve + new_obj = func(obj, *arg_vals) + ^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/defaultfilters.py", line 814, in timesince_filter + return timesince(value) + ^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/utils/timesince.py", line 62, in timesince + d = datetime.datetime(d.year, d.month, d.day) + ^^^^^^ +AttributeError: 'int' object has no attribute 'year' +ERROR 2025-09-04 14:52:04,795 basehttp 88648 6208286720 "GET /en/operating-theatre/cases/4/ HTTP/1.1" 500 186348 +INFO 2025-09-04 14:52:17,777 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:52:17,778 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:52:17,780 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:53:17,777 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:53:17,779 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:53:17,779 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:54:17,805 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:54:17,807 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:54:17,809 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:55:17,795 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:55:17,797 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:55:17,798 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:56:17,802 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:56:17,803 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:56:17,805 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:57:17,721 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:58:17,751 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:58:17,752 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:58:17,753 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 14:59:17,752 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 14:59:17,753 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 14:59:17,755 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:00:17,729 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:01:17,748 basehttp 88648 6225113088 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:01:17,750 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:01:17,752 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:02:17,731 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:03:17,735 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:03:17,735 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:03:17,738 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:04:17,749 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:04:17,751 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:04:17,752 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:05:17,749 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:05:17,751 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:05:17,753 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:06:17,727 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:07:17,738 basehttp 88648 6225113088 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:07:17,743 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:07:17,746 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:08:17,743 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:08:17,745 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:08:17,746 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:09:17,734 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:10:17,746 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:10:17,748 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:10:17,750 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:11:17,746 basehttp 88648 6191460352 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:11:17,749 basehttp 88648 6208286720 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:11:17,750 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:12:17,720 basehttp 88648 6225113088 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:13:17,715 basehttp 88648 6208286720 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:13:17,716 basehttp 88648 6225113088 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:13:17,718 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:14:17,685 basehttp 88648 6191460352 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:15:17,706 basehttp 88648 6225113088 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:15:17,708 basehttp 88648 6191460352 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:15:17,709 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:16:17,687 basehttp 88648 6208286720 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:16:52,236 autoreload 88648 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/core/templatetags/custom_filters.py changed, reloading. +INFO 2025-09-04 15:16:52,695 autoreload 11341 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:16:53,809 basehttp 11341 6199554048 "GET /en/operating-theatre/cases/4/ HTTP/1.1" 200 31973 +WARNING 2025-09-04 15:16:53,817 basehttp 11341 6199554048 "GET /static/plugins/fullcalendar/dist/main.min.css HTTP/1.1" 404 2041 +INFO 2025-09-04 15:16:53,842 basehttp 11341 6216380416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:17:17,698 basehttp 11341 6199554048 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:17:17,701 basehttp 11341 6216380416 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:17:17,703 basehttp 11341 6233206784 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:17:42,702 autoreload 11752 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:17:53,885 basehttp 11752 6169456640 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:18:17,691 basehttp 11752 6169456640 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:18:53,864 basehttp 11752 6169456640 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:19:17,700 basehttp 11752 6169456640 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:19:17,701 basehttp 11752 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:19:17,705 basehttp 11752 13321187328 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:19:29,727 basehttp 11752 13321187328 "GET /en/operating-theatre/cases/4/ HTTP/1.1" 200 31982 +WARNING 2025-09-04 15:19:29,734 basehttp 11752 13321187328 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +INFO 2025-09-04 15:19:29,756 basehttp 11752 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:19:50,325 basehttp 11752 13304360960 "GET /en/operating-theatre/cases/4/ HTTP/1.1" 200 31977 +WARNING 2025-09-04 15:19:50,332 basehttp 11752 13304360960 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +INFO 2025-09-04 15:19:50,357 basehttp 11752 6169456640 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:20:02,551 basehttp 11752 6169456640 "GET /en/operating-theatre/cases/8/ HTTP/1.1" 200 32136 +WARNING 2025-09-04 15:20:02,562 basehttp 11752 6169456640 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +INFO 2025-09-04 15:20:02,585 basehttp 11752 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:20:17,712 basehttp 11752 13321187328 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:20:17,713 basehttp 11752 6169456640 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:20:17,714 basehttp 11752 13304360960 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:21:02,594 basehttp 11752 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:21:17,685 basehttp 11752 13304360960 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:22:02,597 basehttp 11752 13304360960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:22:17,699 basehttp 11752 6169456640 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:22:17,701 basehttp 11752 13304360960 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:22:17,702 basehttp 11752 13321187328 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:22:36,675 autoreload 11752 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:22:37,204 autoreload 13983 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:23:02,681 basehttp 13983 6163935232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:23:17,701 basehttp 13983 13052751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:23:17,702 basehttp 13983 13035925504 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:23:17,703 basehttp 13983 6163935232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:23:55,247 autoreload 13983 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:23:55,662 autoreload 14536 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:24:02,659 basehttp 14536 6197948416 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:24:17,680 basehttp 14536 6197948416 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:24:40,459 autoreload 14536 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:24:40,868 autoreload 14953 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:25:02,678 basehttp 14953 6131642368 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:25:17,703 basehttp 14953 6148468736 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:25:17,704 basehttp 14953 6131642368 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:25:17,707 basehttp 14953 6165295104 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:25:28,825 autoreload 14953 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:25:29,303 autoreload 15268 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:26:02,666 basehttp 15268 6157578240 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:26:17,700 basehttp 15268 13052751872 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:26:17,702 basehttp 15268 13035925504 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:26:17,704 basehttp 15268 6157578240 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:26:25,647 autoreload 15268 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:26:26,146 autoreload 15752 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:27:02,692 basehttp 15752 6167982080 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:27:17,680 basehttp 15752 6167982080 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:28:02,612 basehttp 15752 6167982080 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:28:05,224 autoreload 15752 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:28:05,640 autoreload 16449 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:28:17,866 basehttp 16449 6155382784 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:28:17,879 basehttp 16449 6189035520 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:28:17,879 basehttp 16449 6172209152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:29:02,593 basehttp 16449 6172209152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:29:17,647 basehttp 16449 6172209152 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:30:02,605 basehttp 16449 6172209152 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:30:04,377 autoreload 16449 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:30:04,678 autoreload 17295 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:31:44,097 autoreload 17295 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/patients/models.py changed, reloading. +INFO 2025-09-04 15:31:44,394 autoreload 18067 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 15:31:47,707 basehttp 18067 6162444288 "GET /en/operating-theatre/cases/8/ HTTP/1.1" 200 32123 +WARNING 2025-09-04 15:31:47,717 basehttp 18067 6162444288 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +INFO 2025-09-04 15:31:47,777 basehttp 18067 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:32:05,690 basehttp 18067 13170143232 "GET /en/htmx/dashboard-stats/ HTTP/1.1" 200 2094 +INFO 2025-09-04 15:32:11,683 basehttp 18067 13170143232 "GET /en/operating-theatre/blocks/create/ HTTP/1.1" 200 39351 +INFO 2025-09-04 15:32:11,736 basehttp 18067 13170143232 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:32:17,665 basehttp 18067 13170143232 "GET /en/htmx/system-health/ HTTP/1.1" 200 1356 +INFO 2025-09-04 15:32:17,666 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:33:11,746 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:34:11,748 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:35:11,738 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:36:11,749 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:37:11,752 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:38:11,753 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:39:11,745 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:40:11,745 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:41:11,757 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:42:12,636 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:43:14,644 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:44:17,639 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:46:17,630 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:47:17,623 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:49:17,622 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:50:17,625 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:52:17,613 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:53:17,615 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:54:17,627 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:56:17,619 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:57:17,612 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 15:58:17,615 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:00:17,611 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:02:17,615 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:03:17,615 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:05:17,609 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:06:17,612 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:08:17,609 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:09:17,608 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:11:17,619 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:13:17,615 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:14:17,601 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:16:17,608 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:17:17,591 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:19:17,593 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:20:17,596 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:22:17,591 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:23:17,593 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:25:17,583 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:27:17,576 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:28:17,585 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:30:17,591 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:32:17,592 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:34:17,592 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:35:17,590 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:36:17,597 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:38:17,582 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:39:17,581 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:41:17,583 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:43:17,577 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:44:17,594 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:46:17,596 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:46:37,683 basehttp 18067 6162444288 "GET /en/operating-theatre/blocks/create/ HTTP/1.1" 200 39351 +INFO 2025-09-04 16:46:37,746 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:47:37,751 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:48:12,057 basehttp 18067 6162444288 "GET /en/operating-theatre/blocks/?page=2&date=2025-09-05 HTTP/1.1" 200 95252 +INFO 2025-09-04 16:48:16,664 basehttp 18067 6162444288 "GET /en/operating-theatre/blocks/?page=1&page=2&date=2025-09-05 HTTP/1.1" 200 95274 +INFO 2025-09-04 16:48:16,695 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:49:16,707 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:50:07,857 basehttp 18067 6162444288 "GET /en/operating-theatre/blocks/9/ HTTP/1.1" 200 32871 +INFO 2025-09-04 16:50:07,902 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:50:16,708 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:50:54,564 basehttp 18067 6162444288 "GET /en/operating-theatre/blocks/?page=1&page=2&date=2025-09-05 HTTP/1.1" 200 95794 +INFO 2025-09-04 16:50:54,600 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:51:54,604 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:52:26,227 basehttp 18067 6162444288 "GET /en/operating-theatre/blocks/?date=2025-09-06 HTTP/1.1" 200 139685 +INFO 2025-09-04 16:52:26,255 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:53:26,258 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:54:26,273 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:55:26,271 basehttp 18067 6162444288 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:55:43,340 autoreload 18067 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 16:55:43,787 autoreload 54865 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 16:56:26,319 basehttp 54865 6125367296 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:57:26,278 basehttp 54865 6125367296 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:58:26,273 basehttp 54865 6125367296 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 16:59:14,095 autoreload 54865 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/operating_theatre/views.py changed, reloading. +INFO 2025-09-04 16:59:14,416 autoreload 56410 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 16:59:26,646 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:00:28,596 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:02:17,573 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:03:17,576 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:05:17,574 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:06:17,594 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:07:17,679 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:09:17,574 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:10:17,573 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:11:17,574 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:13:17,573 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:14:17,669 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:15:17,687 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:17:17,671 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:19:17,669 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:21:17,670 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:22:17,669 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:24:17,674 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:26:17,672 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:27:17,667 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:28:17,667 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:29:17,650 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:31:17,656 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:33:17,653 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:34:17,641 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:36:17,643 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:37:17,637 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:39:17,639 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:40:17,641 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:41:17,644 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:43:17,651 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:44:17,647 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:45:17,712 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:46:17,709 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:48:17,710 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:49:17,723 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:51:17,709 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:52:17,708 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:54:17,704 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:55:17,711 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:57:17,727 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 17:58:17,724 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:00:17,680 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:01:17,680 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:02:17,683 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:03:17,684 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:04:17,685 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:05:17,683 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:06:17,689 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:07:17,683 basehttp 56410 6197800960 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:08:02,794 autoreload 56410 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/hospital_management/settings.py changed, reloading. +INFO 2025-09-04 18:08:03,046 autoreload 87361 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:08:32,803 autoreload 87361 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/blood_bank/models.py changed, reloading. +INFO 2025-09-04 18:08:32,982 autoreload 87615 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:10:44,414 autoreload 87615 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/blood_bank/models.py changed, reloading. +INFO 2025-09-04 18:10:44,677 autoreload 88550 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:11:17,908 autoreload 88550 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/blood_bank/models.py changed, reloading. +INFO 2025-09-04 18:11:18,219 autoreload 88876 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:11:47,269 autoreload 88876 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/blood_bank/admin.py changed, reloading. +INFO 2025-09-04 18:11:47,598 autoreload 89078 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:11:47,881 autoreload 89086 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:12:00,284 autoreload 89258 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:12:04,217 basehttp 89258 6204665856 "GET /en/operating-theatre/blocks/?date=2025-09-06 HTTP/1.1" 200 139685 +INFO 2025-09-04 18:12:04,289 basehttp 89258 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:12:07,141 basehttp 89258 6204665856 "GET /en/operating-theatre/blocks/?date=2025-09-05 HTTP/1.1" 200 139685 +INFO 2025-09-04 18:12:15,385 basehttp 89258 6204665856 "GET /en/operating-theatre/ HTTP/1.1" 200 59253 +INFO 2025-09-04 18:12:15,417 basehttp 89258 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:12:15,420 basehttp 89258 6221492224 "GET /en/operating-theatre/htmx/stats/ HTTP/1.1" 200 4212 +INFO 2025-09-04 18:12:29,117 basehttp 89258 6221492224 "GET /en/operating-theatre/cases/1/ HTTP/1.1" 200 32125 +WARNING 2025-09-04 18:12:29,131 basehttp 89258 6221492224 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +INFO 2025-09-04 18:12:29,149 basehttp 89258 6204665856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 18:12:45,249 log 89258 6204665856 Not Found: /en/operating-theatre/cases/5/start/ +WARNING 2025-09-04 18:12:45,249 basehttp 89258 6204665856 "POST /en/operating-theatre/cases/5/start/ HTTP/1.1" 404 39941 +INFO 2025-09-04 18:12:49,984 basehttp 89258 6204665856 "GET /en/operating-theatre/cases/5/ HTTP/1.1" 200 32119 +WARNING 2025-09-04 18:12:49,994 basehttp 89258 6204665856 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +INFO 2025-09-04 18:12:50,020 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 18:12:52,716 log 89258 6221492224 Not Found: /en/operating-theatre/cases/5/start/ +WARNING 2025-09-04 18:12:52,716 basehttp 89258 6221492224 "POST /en/operating-theatre/cases/5/start/ HTTP/1.1" 404 39941 +WARNING 2025-09-04 18:12:56,342 basehttp 89258 6221492224 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +WARNING 2025-09-04 18:12:56,357 log 89258 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:12:56,357 basehttp 89258 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:13:10,059 log 89258 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:10,059 basehttp 89258 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:13:10,069 log 89258 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:10,070 basehttp 89258 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:13:11,677 log 89258 6204665856 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:11,677 basehttp 89258 6204665856 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:11,679 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 18:13:11,691 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:11,691 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:13,759 basehttp 89258 6221492224 "GET /en/operating-theatre/blocks/33/ HTTP/1.1" 200 32856 +WARNING 2025-09-04 18:13:13,776 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:13,776 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:13,873 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:13:16,394 basehttp 89258 6221492224 "GET /en/operating-theatre/cases/37/ HTTP/1.1" 200 32117 +WARNING 2025-09-04 18:13:16,409 basehttp 89258 6204665856 "GET /static/plugins/%40fullcalendar/dist/main.min.css HTTP/1.1" 404 2044 +WARNING 2025-09-04 18:13:16,415 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:16,415 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:16,506 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 18:13:22,718 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:22,718 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:13:22,729 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:22,729 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:13:23,549 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:23,549 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:13:23,559 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:23,559 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:34,576 basehttp 89258 6221492224 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 58106 +WARNING 2025-09-04 18:13:34,596 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:34,596 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:34,692 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:13:45,408 basehttp 89258 6221492224 "POST /en/operating-theatre/cases/30/start/ HTTP/1.1" 302 0 +INFO 2025-09-04 18:13:45,428 basehttp 89258 6221492224 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 58522 +WARNING 2025-09-04 18:13:45,444 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:45,444 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:45,543 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:13:56,078 basehttp 89258 6221492224 "POST /en/operating-theatre/cases/30/complete/ HTTP/1.1" 302 0 +INFO 2025-09-04 18:13:56,098 basehttp 89258 6221492224 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 56574 +WARNING 2025-09-04 18:13:56,114 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:13:56,114 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:13:56,207 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:14:05,141 basehttp 89258 6221492224 "GET /en/operating-theatre/cases/ HTTP/1.1" 200 56168 +WARNING 2025-09-04 18:14:05,155 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:14:05,156 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:14:05,885 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:14:05,885 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:14:06,518 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:14:06,518 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:14:06,527 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:14:06,527 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:14:11,680 basehttp 89258 6221492224 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +WARNING 2025-09-04 18:14:31,693 log 89258 6221492224 Not Found: /en/blood_bank +WARNING 2025-09-04 18:14:31,693 basehttp 89258 6221492224 "GET /en/blood_bank HTTP/1.1" 404 29871 +WARNING 2025-09-04 18:14:31,711 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:14:31,711 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +WARNING 2025-09-04 18:14:35,622 log 89258 6221492224 Not Found: /en/blood-bank +WARNING 2025-09-04 18:14:35,623 basehttp 89258 6221492224 "GET /en/blood-bank HTTP/1.1" 404 29871 +WARNING 2025-09-04 18:14:35,644 log 89258 6221492224 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:14:35,644 basehttp 89258 6221492224 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:14:53,597 autoreload 89258 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/hospital_management/urls.py changed, reloading. +INFO 2025-09-04 18:14:54,023 autoreload 90522 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:14:55,234 basehttp 90522 6124810240 "GET /en/blood-bank HTTP/1.1" 301 0 +INFO 2025-09-04 18:14:55,287 basehttp 90522 6141636608 "GET /en/blood-bank/ HTTP/1.1" 200 28906 +WARNING 2025-09-04 18:14:55,300 log 90522 6141636608 Not Found: /.well-known/appspecific/com.chrome.devtools.json +WARNING 2025-09-04 18:14:55,300 basehttp 90522 6141636608 "GET /.well-known/appspecific/com.chrome.devtools.json HTTP/1.1" 404 2668 +INFO 2025-09-04 18:14:55,405 basehttp 90522 6141636608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:15:55,672 basehttp 90522 6141636608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +ERROR 2025-09-04 18:16:25,112 log 90522 6141636608 Internal Server Error: /en/blood-bank/donors/create/ +Traceback (most recent call last): + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner + response = get_response(request) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper + return view_func(request, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/blood_bank/views.py", line 140, in donor_create + return render(request, 'blood_bank/donor_form.html', {'form': form, 'title': 'Add New Donor'}) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/shortcuts.py", line 25, in render + content = loader.render_to_string(template_name, context, request, using=using) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader.py", line 61, in render_to_string + template = get_template(template_name, using=using) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/marwanalwali/manus_project/hospital_management_system_v4/.venv/lib/python3.12/site-packages/django/template/loader.py", line 19, in get_template + raise TemplateDoesNotExist(template_name, chain=chain) +django.template.exceptions.TemplateDoesNotExist: blood_bank/donor_form.html +ERROR 2025-09-04 18:16:25,113 basehttp 90522 6141636608 "GET /en/blood-bank/donors/create/ HTTP/1.1" 500 95086 +INFO 2025-09-04 18:16:55,663 basehttp 90522 6141636608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:17:55,671 basehttp 90522 6141636608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:18:55,684 basehttp 90522 6141636608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:19:55,674 basehttp 90522 6141636608 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:20:40,072 autoreload 90522 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/blood_bank/views.py changed, reloading. +INFO 2025-09-04 18:20:40,444 autoreload 93059 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:20:44,002 basehttp 93059 6125350912 "GET /en/blood-bank/ HTTP/1.1" 200 28906 +INFO 2025-09-04 18:20:44,061 basehttp 93059 6125350912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:21:44,671 basehttp 93059 6125350912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:22:45,671 basehttp 93059 6125350912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:23:46,671 basehttp 93059 6125350912 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:31:01,971 autoreload 97867 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 18:31:07,103 basehttp 97867 6124793856 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 105023 +INFO 2025-09-04 18:31:07,122 basehttp 97867 6192099328 "GET /static/admin/js/core.js HTTP/1.1" 200 6208 +INFO 2025-09-04 18:31:07,122 basehttp 97867 6175272960 "GET /static/admin/js/jquery.init.js HTTP/1.1" 200 347 +INFO 2025-09-04 18:31:07,122 basehttp 97867 6124793856 "GET /static/admin/css/changelists.css HTTP/1.1" 200 6878 +INFO 2025-09-04 18:31:07,123 basehttp 97867 6208925696 "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 200 9777 +INFO 2025-09-04 18:31:07,124 basehttp 97867 6124793856 "GET /static/admin/js/urlify.js HTTP/1.1" 200 7887 +INFO 2025-09-04 18:31:07,125 basehttp 97867 6175272960 "GET /static/admin/js/actions.js HTTP/1.1" 200 8076 +INFO 2025-09-04 18:31:07,125 basehttp 97867 6192099328 "GET /static/admin/js/prepopulate.js HTTP/1.1" 200 1531 +INFO 2025-09-04 18:31:07,129 basehttp 97867 6141620224 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 18:31:07,129 basehttp 97867 6175272960 "GET /static/admin/img/search.svg HTTP/1.1" 200 458 +INFO 2025-09-04 18:31:07,131 basehttp 97867 6158446592 "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 200 285314 +INFO 2025-09-04 18:31:07,133 basehttp 97867 6208925696 "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 200 325171 +INFO 2025-09-04 18:31:07,136 basehttp 97867 6208925696 "GET /static/admin/js/filters.js HTTP/1.1" 200 978 +INFO 2025-09-04 18:31:07,144 basehttp 97867 6208925696 "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 200 331 +INFO 2025-09-04 18:31:07,144 basehttp 97867 6158446592 "GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581 +INFO 2025-09-04 18:31:09,012 basehttp 97867 6158446592 "GET /en/admin/operating_theatre/surgicalnote/ HTTP/1.1" 200 105023 +INFO 2025-09-04 18:31:09,025 basehttp 97867 6158446592 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 18:31:11,845 basehttp 97867 6158446592 "GET /en/admin/blood_bank/adversereaction/ HTTP/1.1" 200 76655 +INFO 2025-09-04 18:31:11,858 basehttp 97867 6158446592 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 18:31:15,584 basehttp 97867 6158446592 "GET /en/admin/blood_bank/bloodcomponent/ HTTP/1.1" 200 74601 +INFO 2025-09-04 18:31:15,597 basehttp 97867 6158446592 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 18:31:18,496 basehttp 97867 6158446592 "GET /en/admin/blood_bank/bloodgroup/ HTTP/1.1" 200 74475 +INFO 2025-09-04 18:31:18,510 basehttp 97867 6158446592 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 18:31:18,737 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:31:26,689 basehttp 97867 6158446592 "GET /en/admin/blood_bank/bloodtest/ HTTP/1.1" 200 77034 +INFO 2025-09-04 18:31:26,706 basehttp 97867 6158446592 "GET /en/admin/jsi18n/ HTTP/1.1" 200 3342 +INFO 2025-09-04 18:32:20,735 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:34:17,738 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:36:17,736 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:38:17,741 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:39:17,750 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:40:17,743 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:42:17,743 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:43:17,749 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:45:17,746 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:47:17,750 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:49:17,741 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:51:17,742 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:53:17,741 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:54:17,746 basehttp 97867 6158446592 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:56:17,749 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:57:17,750 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 18:59:17,746 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:01:17,702 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:03:17,682 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:04:17,684 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:05:17,692 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:07:17,689 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:08:17,684 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:09:17,690 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:10:17,701 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:12:17,687 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:14:17,691 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:16:17,627 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:17:17,641 basehttp 97867 6124793856 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:17:57,803 autoreload 97867 8466948288 /Users/marwanalwali/manus_project/hospital_management_system_v4/blood_bank/models.py changed, reloading. +INFO 2025-09-04 19:17:58,222 autoreload 18782 8466948288 Watching for file changes with StatReloader +INFO 2025-09-04 19:18:13,010 basehttp 18782 6199914496 "GET /en/blood-bank/ HTTP/1.1" 200 48551 +INFO 2025-09-04 19:18:13,070 basehttp 18782 6199914496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:18:32,510 basehttp 18782 6199914496 "GET /en/blood-bank/units/ HTTP/1.1" 200 84640 +INFO 2025-09-04 19:18:32,548 basehttp 18782 6199914496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:18:41,898 basehttp 18782 6199914496 "GET /en/blood-bank/units/45/ HTTP/1.1" 200 31883 +INFO 2025-09-04 19:18:41,931 basehttp 18782 6199914496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 +INFO 2025-09-04 19:19:32,572 basehttp 18782 6199914496 "GET /en/htmx/system-notifications/ HTTP/1.1" 200 3836 diff --git a/operating_theatre/__pycache__/forms.cpython-312.pyc b/operating_theatre/__pycache__/forms.cpython-312.pyc index cefa4e6b..53eae698 100644 Binary files a/operating_theatre/__pycache__/forms.cpython-312.pyc and b/operating_theatre/__pycache__/forms.cpython-312.pyc differ diff --git a/operating_theatre/__pycache__/models.cpython-312.pyc b/operating_theatre/__pycache__/models.cpython-312.pyc index f1014383..8650cbe3 100644 Binary files a/operating_theatre/__pycache__/models.cpython-312.pyc and b/operating_theatre/__pycache__/models.cpython-312.pyc differ diff --git a/operating_theatre/__pycache__/urls.cpython-312.pyc b/operating_theatre/__pycache__/urls.cpython-312.pyc index 79599663..ddffd179 100644 Binary files a/operating_theatre/__pycache__/urls.cpython-312.pyc and b/operating_theatre/__pycache__/urls.cpython-312.pyc differ diff --git a/operating_theatre/__pycache__/views.cpython-312.pyc b/operating_theatre/__pycache__/views.cpython-312.pyc index 012c773d..0d8bce1e 100644 Binary files a/operating_theatre/__pycache__/views.cpython-312.pyc and b/operating_theatre/__pycache__/views.cpython-312.pyc differ diff --git a/operating_theatre/forms.py b/operating_theatre/forms.py index be3e48a7..6b8ef063 100644 --- a/operating_theatre/forms.py +++ b/operating_theatre/forms.py @@ -7,7 +7,7 @@ from django import forms from django.core.exceptions import ValidationError from django.utils import timezone from datetime import datetime, time, timedelta - +import json, re from accounts.models import User from patients.models import PatientProfile from .models import ( @@ -20,92 +20,157 @@ from .models import ( # OPERATING ROOM FORMS # ============================================================================ +def _list_to_text(value): + if isinstance(value, list): + return "\n".join(str(v) for v in value) + return "" if value in (None, "", []) else str(value) + +def _text_to_list(value): + if value is None: + return [] + raw = str(value).strip() + if not raw: + return [] + # Try JSON list first + try: + parsed = json.loads(raw) + if isinstance(parsed, list): + return [str(x).strip() for x in parsed if str(x).strip()] + except Exception: + pass + # Fallback: newline / comma split + items = [] + for line in raw.splitlines(): + for piece in line.split(","): + p = piece.strip() + if p: + items.append(p) + return items + class OperatingRoomForm(forms.ModelForm): """ - Form for creating and updating operating rooms. + Full form aligned to the panel template: + - exposes environment, capabilities, scheduling fields + - maps equipment_list & special_features (JSON) <-> textarea + - enforces tenant-scoped uniqueness of room_number + - validates temp/humidity ranges, and simple numeric sanity checks """ - class Meta: model = OperatingRoom fields = [ - 'room_number', 'room_name', 'room_type', 'floor_number', 'building', - 'room_size', 'equipment_list', 'special_features', - 'status', 'is_active', 'wing' + # Basic + 'room_number', 'room_name', 'room_type', 'status', + # Physical + 'floor_number', 'building', 'wing', 'room_size', 'ceiling_height', + # Environment + 'temperature_min', 'temperature_max', + 'humidity_min', 'humidity_max', + 'air_changes_per_hour', 'positive_pressure', + # Capabilities & equipment + 'supports_robotic', 'supports_laparoscopic', + 'supports_microscopy', 'supports_laser', + 'has_c_arm', 'has_ct', 'has_mri', 'has_ultrasound', 'has_neuromonitoring', + 'equipment_list', 'special_features', + # Scheduling / staffing + 'max_case_duration', 'turnover_time', 'cleaning_time', + 'required_nurses', 'required_techs', + 'is_active', 'accepts_emergency', ] widgets = { - 'room_number': forms.TextInput(attrs={ - 'class': 'form-control', - 'placeholder': 'e.g., OR-01' - }), - 'room_name': forms.TextInput(attrs={ - 'class': 'form-control', - 'placeholder': 'e.g., Main Operating Room 1' - }), - 'room_type': forms.Select(attrs={'class': 'form-control'}), - 'floor_number': forms.NumberInput(attrs={ - 'class': 'form-control', - 'min': 1, - 'max': 50 - }), - 'building': forms.TextInput(attrs={ - 'class': 'form-control', - 'placeholder': 'e.g., Main Building' - }), - 'room_size': forms.NumberInput(attrs={ - 'class': 'form-control', - 'min': 1, - 'max': 1000 - }), - 'equipment_list': forms.Textarea(attrs={ - 'class': 'form-control', - 'rows': 4, - 'placeholder': 'List available equipment...' - }), - 'special_features': forms.Textarea(attrs={ - 'class': 'form-control', - 'rows': 3, - 'placeholder': 'Special capabilities and features...' - }), - 'status': forms.Select(attrs={'class': 'form-control'}), - 'is_active': forms.CheckboxInput(attrs={'class': 'form-check-input'}), - 'wing': forms.TextInput(attrs={ - 'class': 'form-control', - 'placeholder': 'e.g., East Wing' - }), + # Basic + 'room_number': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'e.g., OR-01', 'required': True}), + 'room_name': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'e.g., Main Operating Room 1', 'required': True}), + 'room_type': forms.Select(attrs={'class': 'form-control', 'required': True}), + 'status': forms.Select(attrs={'class': 'form-control', 'required': True}), + # Physical + 'floor_number': forms.NumberInput(attrs={'class': 'form-control', 'min': 0, 'max': 200, 'required': True}), + 'building': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'e.g., Main Building'}), + 'wing': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'e.g., East Wing'}), + 'room_size': forms.NumberInput(attrs={'class': 'form-control', 'min': 1, 'max': 2000}), + 'ceiling_height': forms.NumberInput(attrs={'class': 'form-control', 'min': 1, 'max': 20}), + # Environment + 'temperature_min': forms.NumberInput(attrs={'class': 'form-control', 'step': '0.1'}), + 'temperature_max': forms.NumberInput(attrs={'class': 'form-control', 'step': '0.1'}), + 'humidity_min': forms.NumberInput(attrs={'class': 'form-control', 'step': '0.1'}), + 'humidity_max': forms.NumberInput(attrs={'class': 'form-control', 'step': '0.1'}), + 'air_changes_per_hour':forms.NumberInput(attrs={'class': 'form-control', 'min': 0, 'max': 120}), + 'positive_pressure': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + # Capabilities & imaging + 'supports_robotic': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'supports_laparoscopic':forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'supports_microscopy': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'supports_laser': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'has_c_arm': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'has_ct': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'has_mri': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'has_ultrasound': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'has_neuromonitoring': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'equipment_list': forms.Textarea(attrs={'class': 'form-control', 'rows': 4, 'placeholder': 'One per line, or comma-separated…'}), + 'special_features': forms.Textarea(attrs={'class': 'form-control', 'rows': 3, 'placeholder': 'Hybrid OR, laminar flow, etc.'}), + # Scheduling / staffing + 'max_case_duration': forms.NumberInput(attrs={'class': 'form-control', 'min': 30, 'max': 1440}), + 'turnover_time': forms.NumberInput(attrs={'class': 'form-control', 'min': 0, 'max': 240}), + 'cleaning_time': forms.NumberInput(attrs={'class': 'form-control', 'min': 0, 'max': 240}), + 'required_nurses': forms.NumberInput(attrs={'class': 'form-control', 'min': 0, 'max': 20}), + 'required_techs': forms.NumberInput(attrs={'class': 'form-control', 'min': 0, 'max': 20}), + 'is_active': forms.CheckboxInput(attrs={'class': 'form-check-input'}), + 'accepts_emergency':forms.CheckboxInput(attrs={'class': 'form-check-input'}), } help_texts = { - 'room_number': 'Unique identifier for the operating room', - 'room_type': 'Type of procedures this room is designed for', - 'room_size': 'Size of the room in square meters', - 'equipment_list': 'List of permanently installed equipment', - 'special_features': 'Special features like imaging, robotics, etc.', + 'room_number': 'Unique identifier (per tenant). Letters, numbers, dashes.', + 'room_size': 'Square meters.', + 'temperature_min': 'Typical ORs: 18–26°C.', + 'humidity_min': 'Typical ORs: 30–60%.', + 'air_changes_per_hour': '20+ is common in OR standards.', } - + + def __init__(self, *args, **kwargs): + self.tenant = kwargs.pop('tenant', None) + super().__init__(*args, **kwargs) + if self.instance and self.instance.pk: + self.fields['equipment_list'].initial = _list_to_text(self.instance.equipment_list) + self.fields['special_features'].initial = _list_to_text(self.instance.special_features) + + # JSONField <-> textarea mapping + def clean_equipment_list(self): + return _text_to_list(self.cleaned_data.get('equipment_list')) + + def clean_special_features(self): + return _text_to_list(self.cleaned_data.get('special_features')) + def clean_room_number(self): - room_number = self.cleaned_data['room_number'] - - # Check for uniqueness within tenant - queryset = OperatingRoom.objects.filter(room_number=room_number) + room_number = (self.cleaned_data.get('room_number') or '').strip() + if not room_number: + return room_number + if not re.match(r'^[A-Za-z0-9\-]+$', room_number): + raise ValidationError('Room number may contain only letters, numbers, and dashes.') + # tenant-scoped uniqueness + qs = OperatingRoom.objects.all() + tenant = self.tenant or getattr(self.instance, 'tenant', None) + if tenant is not None: + qs = qs.filter(tenant=tenant) + qs = qs.filter(room_number__iexact=room_number) if self.instance.pk: - queryset = queryset.exclude(pk=self.instance.pk) - - if queryset.exists(): - raise ValidationError('Room number must be unique.') - + qs = qs.exclude(pk=self.instance.pk) + if qs.exists(): + raise ValidationError('Room number must be unique within the tenant.') return room_number - + def clean(self): - cleaned_data = super().clean() - status = cleaned_data.get('status') - is_active = cleaned_data.get('is_active') - - # Validate status and active state consistency - if not is_active and status not in ['OUT_OF_SERVICE', 'MAINTENANCE']: - raise ValidationError( - 'Inactive rooms must have status "Out of Service" or "Maintenance".' - ) - - return cleaned_data + cleaned = super().clean() + # Temperature/humidity ranges + tmin, tmax = cleaned.get('temperature_min'), cleaned.get('temperature_max') + hmin, hmax = cleaned.get('humidity_min'), cleaned.get('humidity_max') + if tmin is not None and tmax is not None and tmin >= tmax: + self.add_error('temperature_max', 'Maximum temperature must be greater than minimum temperature.') + if hmin is not None and hmax is not None and hmin >= hmax: + self.add_error('humidity_max', 'Maximum humidity must be greater than minimum humidity.') + # Simple sanity checks + for field, minv in [('max_case_duration', 1), ('turnover_time', 0), ('cleaning_time', 0)]: + v = cleaned.get(field) + if v is not None and v < minv: + self.add_error(field, f'{field.replace("_", " ").title()} must be ≥ {minv}.') + return cleaned # ============================================================================ diff --git a/operating_theatre/management/commands/__pycache__/or_data.cpython-312.pyc b/operating_theatre/management/commands/__pycache__/or_data.cpython-312.pyc index 5373f3f2..552f1bd9 100644 Binary files a/operating_theatre/management/commands/__pycache__/or_data.cpython-312.pyc and b/operating_theatre/management/commands/__pycache__/or_data.cpython-312.pyc differ diff --git a/operating_theatre/management/commands/or_data.py b/operating_theatre/management/commands/or_data.py index 8912b70a..bf9d3632 100644 --- a/operating_theatre/management/commands/or_data.py +++ b/operating_theatre/management/commands/or_data.py @@ -1,585 +1,802 @@ -""" -Django management command to generate Saudi-influenced Operating Theatre data -Place this file in: operating_theatre/management/commands/generate_saudi_or_data.py -""" - import random import uuid -from datetime import datetime, timedelta, date, time -from decimal import Decimal -from django.core.management.base import BaseCommand -from django.db import transaction +from datetime import datetime, date, time, timedelta +from collections import defaultdict + +from django.core.management.base import BaseCommand, CommandError +from django.db import transaction, IntegrityError +from django.db.models import Q +from django.conf import settings from django.utils import timezone -from faker import Faker # Import your models -from operating_theatre.models import ( - OperatingRoom, - ORBlock, - SurgicalCase, - SurgicalNote, - EquipmentUsage, - SurgicalNoteTemplate -) from core.models import Tenant +from operating_theatre.models import ( + OperatingRoom, ORBlock, SurgicalCase, SurgicalNote, + EquipmentUsage, SurgicalNoteTemplate +) from patients.models import PatientProfile +from emr.models import Encounter +from inpatients.models import Admission from django.contrib.auth import get_user_model User = get_user_model() -fake = Faker('en_US') +# ---------- Saudi-influenced constants (English only) ---------- + +SAUDI_BUILDINGS = [ + "King Abdulaziz Tower A", "King Abdulaziz Tower B", + "Riyadh Medical Pavilion", "Jeddah Surgical Center", + "Makkah Clinical Wing", "Dammam Health Complex", + "Madina Specialty Institute", "Qassim Medical Block", +] + +SAUDI_WINGS = ["North Wing", "South Wing", "East Wing", "West Wing", "Royal Wing"] + +# Services / specialties mapped to common procedure examples +SERVICE_TO_PROCEDURES = { + "GENERAL": [ + ("Laparoscopic Cholecystectomy", ["SILS Appendectomy"], ["47562"]), + ("Open Appendectomy", ["Diagnostic Laparoscopy"], ["44950"]), + ("Inguinal Hernia Repair", ["Umbilical Hernia Repair"], ["49505"]), + ], + "CARDIAC": [ + ("CABG x3", ["Saphenous Vein Harvest"], ["33512"]), + ("Mitral Valve Repair", ["Left Atrial Appendage Closure"], ["33426"]), + ("Aortic Valve Replacement", ["Ascending Aorta Repair"], ["33405"]), + ], + "NEURO": [ + ("Craniotomy for Tumor", ["External Ventricular Drain"], ["61510"]), + ("Lumbar Microdiscectomy", ["Foraminotomy"], ["63030"]), + ("Aneurysm Clipping", ["Intraop Angiography"], ["61697"]), + ], + "ORTHOPEDIC": [ + ("Total Knee Arthroplasty", ["Patellar Resurfacing"], ["27447"]), + ("Hip Hemiarthroplasty", ["Acetabular Revision"], ["27125"]), + ("ACL Reconstruction", ["Meniscectomy"], ["29888"]), + ], + "TRAUMA": [ + ("Open Reduction Internal Fixation - Tibia", ["External Fixator Removal"], ["27758"]), + ("Exploratory Laparotomy", ["Splenectomy"], ["49000"]), + ("Thoracotomy for Hemothorax", ["Rib Fixation"], ["32100"]), + ], + "PEDIATRIC": [ + ("Pyloromyotomy", ["Umbilical Hernia Repair"], ["43520"]), + ("Orchiopexy", ["Inguinal Hernia Repair"], ["54640"]), + ("Tonsillectomy & Adenoidectomy", ["Myringotomy"], ["42820"]), + ], + "OBSTETRIC": [ + ("Emergency Cesarean Section", ["B-Lynch Suture"], ["59510"]), + ("Elective Cesarean Section", ["Tubal Ligation"], ["59514"]), + ("Manual Removal of Placenta", ["Uterine Curettage"], ["59414"]), + ], + "OPHTHALMOLOGY": [ + ("Phacoemulsification with IOL", ["Trabeculectomy"], ["66984"]), + ("Retinal Detachment Repair", ["Laser Photocoagulation"], ["67108"]), + ("Strabismus Surgery", ["Adjustable Sutures"], ["67311"]), + ], + "ENT": [ + ("Functional Endoscopic Sinus Surgery", ["Septoplasty"], ["31253"]), + ("Microlaryngoscopy", ["Polypectomy"], ["31526"]), + ("Tympanoplasty", ["Mastoidectomy"], ["69631"]), + ], + "UROLOGY": [ + ("TURP", ["Cystoscopy"], ["52601"]), + ("PCNL", ["DJ Stent Placement"], ["50080"]), + ("Laparoscopic Nephrectomy", ["Adrenalectomy"], ["50545"]), + ], + "PLASTIC": [ + ("Split-Thickness Skin Graft", ["Debridement"], ["15100"]), + ("Breast Reconstruction (DIEP)", ["Implant Exchange"], ["19357"]), + ("Cleft Lip Repair", ["Cleft Palate Repair"], ["40701"]), + ], + "VASCULAR": [ + ("AV Fistula Creation", ["Angioplasty"], ["36821"]), + ("Carotid Endarterectomy", ["Patch Angioplasty"], ["35301"]), + ("EVAR", ["Iliac Extension"], ["34802"]), + ], + "THORACIC": [ + ("VATS Lobectomy", ["Lymph Node Dissection"], ["32663"]), + ("Esophagectomy", ["Feeding Jejunostomy"], ["43107"]), + ("Mediastinoscopy", ["Bronchoscopy"], ["39402"]), + ], + "TRANSPLANT": [ + ("Living Donor Kidney Transplant", ["Ureteric Stent"], ["50360"]), + ("Liver Transplant", ["Biliary Reconstruction"], ["47135"]), + ("Pancreas Transplant", ["Enteric Drainage"], ["48554"]), + ], +} + +ROOM_FEATURES = [ + "Laminar Flow", "HEPA Filtration", "Lead-Lined Walls", "Integrated Boom", + "Ceiling-Mounted Monitors", "Shadowless Lighting", "Dedicated Anesthesia Column", + "Sterile Core Access", "Hybrid Imaging Suite", "Negative Pressure Anteroom" +] + +EQUIPMENT_BANK = [ + # (name, type, manufacturer, model) + ("Dräger Anesthesia Machine", "ANESTHESIA_MACHINE", "Dräger", "Fabius Plus"), + ("GE Patient Monitor", "MONITORING_DEVICE", "GE Healthcare", "CARESCAPE B650"), + ("Valleylab Electrocautery", "ELECTROCAUTERY", "Medtronic", "ForceTriad"), + ("Karl Storz Laparoscopy Set", "SURGICAL_INSTRUMENT", "Karl Storz", "Image1 S"), + ("Stryker 1688 AIM Camera", "SURGICAL_INSTRUMENT", "Stryker", "1688 AIM"), + ("Zeiss Surgical Microscope", "MICROSCOPE", "Zeiss", "OPMI Pentero"), + ("C-Arm Fluoroscopy", "C_ARM", "Siemens", "Cios Fusion"), + ("Portable Ultrasound", "ULTRASOUND", "Mindray", "M9"), + ("Da Vinci Surgical Robot", "ROBOT", "Intuitive Surgical", "Xi"), +] + +BLOOD_PRODUCTS = ["PRBC", "FFP", "Platelets", "Cryoprecipitate"] +IMPLANT_EXAMPLES = ["Titanium Plate", "Pedicle Screws", "Hemashield Patch", "Stent Graft", "Knee Prosthesis"] + +DIAGNOSES = [ + ("Cholelithiasis with Cholecystitis", ["K80.10"]), + ("Degenerative Joint Disease Knee", ["M17.10"]), + ("Intracranial Neoplasm", ["D49.6"]), + ("Coronary Artery Disease", ["I25.10"]), + ("Ureteric Calculus", ["N20.1"]), + ("Pelvic Organ Prolapse", ["N81.4"]), + ("Retinal Detachment", ["H33.2"]), + ("Carotid Stenosis", ["I65.21"]), +] + +# Operating hours (typical KSA elective schedule) and emergency window +ELECTIVE_START = time(7, 30) +ELECTIVE_END = time(15, 30) +EMERGENCY_START = time(16, 0) +EMERGENCY_END = time(22, 0) + +# ---------- Helpers ---------- + +def choose_staff(candidates, k=1, exclude=None): + qs = candidates + if exclude: + qs = qs.exclude(id__in=[u.id for u in exclude]) + lst = list(qs) + if not lst: + return [] + random.shuffle(lst) + return lst[:k] + +def dt_in_ksa(d, t): + """Return a timezone-aware datetime in the current Django timezone (e.g., Asia/Riyadh).""" + tz = timezone.get_current_timezone() + naive_dt = datetime.combine(d, t) + # If Django gave us an aware time elsewhere, be safe: + if timezone.is_naive(naive_dt): + return timezone.make_aware(naive_dt, tz) + return naive_dt.astimezone(tz) + +def minutes_between(t1: time, t2: time): + d1 = datetime.combine(date.today(), t1) + d2 = datetime.combine(date.today(), t2) + if d2 < d1: + d2 += timedelta(days=1) + return int((d2 - d1).total_seconds() // 60) + +def safe_get_encounter(patient): + # Prefer start_datetime; fall back to created_at, then id + return ( + Encounter.objects + .filter(patient=patient) + .order_by('-start_datetime', '-created_at', '-id') + .first() + ) + +def safe_get_admission(patient): + # We don’t know your Admission timestamp field; use created_at/id as stable fallbacks + return ( + Admission.objects + .filter(patient=patient) + .order_by('-created_at', '-id') + .first() + ) + +def probable_case_type(service: str): + # Slight emergency skew for Trauma/Transplant/Obstetric + if service in {"TRAUMA", "TRANSPLANT", "OBSTETRIC"}: + return random.choices( + ["EMERGENCY", "URGENT", "ELECTIVE", "TRAUMA"], + weights=[40, 25, 20, 15], k=1 + )[0] + return random.choices( + ["ELECTIVE", "URGENT", "EMERGENCY"], + weights=[70, 20, 10], k=1 + )[0] + +def pick_approach(service: str): + options = ["OPEN", "LAPAROSCOPIC", "ROBOTIC", "ENDOSCOPIC", "PERCUTANEOUS", "HYBRID"] + if service in {"GENERAL", "UROLOGY", "GYNE", "OBSTETRIC"}: + weights = [25, 50, 10, 10, 3, 2] + elif service in {"ORTHOPEDIC", "NEURO", "CARDIAC", "THORACIC"}: + weights = [55, 10, 15, 5, 5, 10] + else: + weights = [50, 15, 10, 15, 5, 5] + return random.choices(options, weights=weights, k=1)[0] + +def pick_anesthesia(): + return random.choice(["GENERAL", "REGIONAL", "LOCAL", "SEDATION", "SPINAL", "EPIDURAL", "COMBINED"]) + +def pick_position(service: str): + mapping = { + "GENERAL": ["SUPINE", "LITHOTOMY", "TRENDELENBURG", "REVERSE_TREND"], + "ORTHOPEDIC": ["SUPINE", "PRONE", "LATERAL", "SITTING"], + "NEURO": ["SUPINE", "PRONE", "SITTING"], + "CARDIAC": ["SUPINE", "REVERSE_TREND"], + "UROLOGY": ["SUPINE", "LITHOTOMY"], + "ENT": ["SUPINE"], + "OPHTHALMOLOGY": ["SUPINE"], + "THORACIC": ["LATERAL", "SUPINE"], + "TRAUMA": ["SUPINE", "PRONE", "LATERAL"], + "PEDIATRIC": ["SUPINE"], + "OBSTETRIC": ["SUPINE", "LITHOTOMY"], + "PLASTIC": ["SUPINE", "PRONE", "LATERAL"], + "VASCULAR": ["SUPINE"], + "TRANSPLANT": ["SUPINE"], + } + return random.choice(mapping.get(service, ["SUPINE"])) + +def random_equipment_set(service: str, robotic=False, has_c_arm=False, has_ultrasound=False): + chosen = [] + pool = list(EQUIPMENT_BANK) + random.shuffle(pool) + + # Always include a monitor & cautery + core = [e for e in pool if e[1] in {"MONITORING_DEVICE", "ELECTROCAUTERY", "ANESTHESIA_MACHINE"}] + chosen.extend(core[:3]) + + if has_c_arm: + chosen += [e for e in pool if e[1] == "C_ARM"][:1] + if has_ultrasound: + chosen += [e for e in pool if e[1] == "ULTRASOUND"][:1] + if robotic: + chosen += [e for e in pool if e[1] == "ROBOT"][:1] + + # Add service-specific instrument set + instr = [e for e in pool if e[1] == "SURGICAL_INSTRUMENT"] + chosen.extend(instr[:2]) + + # Deduplicate by name + final = [] + seen = set() + for e in chosen: + if e[0] not in seen: + final.append(e) + seen.add(e[0]) + return final + +# ---------- Command ---------- class Command(BaseCommand): - help = 'Generate Saudi-influenced Operating Theatre test data' - - # Saudi cultural data - SAUDI_MALE_FIRST_NAMES = [ - "Mohammed", "Abdullah", "Abdulrahman", "Khalid", "Fahad", - "Sultan", "Salman", "Saud", "Faisal", "Turki", "Ahmed", - "Omar", "Youssef", "Ibrahim", "Hamad", "Nasser", "Bandar", - "Mansour", "Majed", "Waleed", "Talal", "Rakan", "Yazeed" - ] - - SAUDI_FEMALE_FIRST_NAMES = [ - "Nora", "Fatima", "Aisha", "Mariam", "Sarah", "Reem", - "Lama", "Hind", "Mona", "Amal", "Dalal", "Jawaher", - "Latifa", "Hessa", "Nouf", "Asma", "Khadija", "Layla" - ] - - SAUDI_FAMILY_NAMES = [ - "Al-Saud", "Al-Rasheed", "Al-Qahtani", "Al-Otaibi", "Al-Dossari", - "Al-Harbi", "Al-Zahrani", "Al-Ghamdi", "Al-Shehri", "Al-Asmari", - "Al-Mutairi", "Al-Enezi", "Al-Shamari", "Al-Maliki", "Al-Johani" - ] - - SAUDI_HOSPITALS = [ - "King Faisal Specialist Hospital", - "King Fahad Medical City", - "King Abdulaziz University Hospital", - "Prince Sultan Military Medical City", - "King Saud Medical City" - ] - - SAUDI_CITIES = [ - "Riyadh", "Jeddah", "Mecca", "Medina", "Dammam", - "Khobar", "Dhahran", "Taif", "Tabuk", "Buraidah" - ] - - SURGICAL_PROCEDURES = { - "GENERAL": [ - "Laparoscopic Cholecystectomy", - "Appendectomy", - "Hernia Repair", - "Bowel Resection", - "Gastric Bypass" - ], - "CARDIAC": [ - "Coronary Artery Bypass Grafting", - "Valve Replacement", - "Pacemaker Insertion" - ], - "ORTHOPEDIC": [ - "Total Knee Replacement", - "Total Hip Replacement", - "Spinal Fusion", - "ACL Reconstruction" - ], - "NEURO": [ - "Craniotomy", - "Brain Tumor Resection", - "Spinal Decompression" - ] - } - - MEDICAL_EQUIPMENT = [ - "Da Vinci Surgical Robot", - "C-Arm Fluoroscopy", - "Zeiss Surgical Microscope", - "Harmonic Scalpel", - "LigaSure Device" - ] - + help = "Generate Saudi-influenced operating theatre data (English only)." + def add_arguments(self, parser): - parser.add_argument( - '--tenant', - type=str, - help='Tenant ID to use for data generation' - ) - parser.add_argument( - '--rooms', - type=int, - default=5, - help='Number of operating rooms to create' - ) - parser.add_argument( - '--blocks', - type=int, - default=3, - help='Number of OR blocks per room' - ) - parser.add_argument( - '--cases', - type=int, - default=2, - help='Number of cases per block' - ) - parser.add_argument( - '--clear', - action='store_true', - help='Clear existing OR data before generating' - ) - + parser.add_argument("--tenant-id", type=str, help="Tenant UUID or integer PK") + parser.add_argument("--days", type=int, default=5, help="Number of days to populate (default: 5)") + parser.add_argument("--rooms", type=int, default=6, help="Number of operating rooms to create if none exist") + parser.add_argument("--elective-blocks", type=int, default=6, help="Elective blocks per day across rooms (approx)") + parser.add_argument("--emergency-blocks", type=int, default=2, help="Emergency blocks per day (approx)") + parser.add_argument("--min-cases", type=int, default=1, help="Min cases per block") + parser.add_argument("--max-cases", type=int, default=3, help="Max cases per block") + parser.add_argument("--seed", type=int, default=None, help="Random seed for reproducibility") + parser.add_argument("--start-date", type=str, default=None, help="YYYY-MM-DD (defaults to today)") + parser.add_argument("--dry-run", action="store_true", help="Show what would be created without committing") + def handle(self, *args, **options): - self.stdout.write(self.style.SUCCESS('Starting Saudi OR data generation...')) - - # Get or create tenant - tenant = self.get_or_create_tenant(options.get('tenant')) - - # Clear existing data if requested - if options['clear']: - self.clear_existing_data(tenant) - - # Generate data - with transaction.atomic(): - # Create users (surgeons, nurses, etc.) - users = self.create_medical_staff(tenant, 20) - - # Create patients - patients = self.create_patients(tenant, 30) - - # Create surgical note templates - self.create_surgical_note_templates(tenant) - - # Create operating rooms - rooms = self.create_operating_rooms(tenant, options['rooms']) - - # Create OR blocks and surgical cases - for room in rooms: - self.create_or_blocks_with_cases( - room, - users, - patients, - options['blocks'], - options['cases'] + if options["seed"] is not None: + random.seed(options["seed"]) + + # Resolve tenant + tenant_id = options.get("tenant_id") + tenant = self._get_tenant(tenant_id) + + # Resolve date range + if options["start_date"]: + try: + start_date = date.fromisoformat(options["start_date"]) + except Exception: + raise CommandError("Invalid --start-date. Use YYYY-MM-DD.") + else: + start_date = timezone.localdate() + + days = max(1, options["days"]) + rooms_target = max(1, options["rooms"]) + elective_blocks = max(0, options["elective_blocks"]) + emergency_blocks = max(0, options["emergency_blocks"]) + min_cases = max(1, options["min_cases"]) + max_cases = max(min_cases, options["max_cases"]) + + # Staff & patients pool + surgeons = User.objects.filter(is_active=True) + anesth_pool = User.objects.filter(is_active=True) + nurses_pool = User.objects.filter(is_active=True) + patients = PatientProfile.objects.filter(tenant=tenant) + + if not patients.exists(): + raise CommandError("No patients found for the selected tenant.") + + created_stats = defaultdict(int) + + @transaction.atomic + def do_work(): + # Ensure rooms + rooms = list(OperatingRoom.objects.filter(tenant=tenant)) + if not rooms: + rooms = self._create_operating_rooms(tenant, rooms_target) + created_stats["OperatingRoom"] += len(rooms) + + # Ensure some templates + created_templates = self._ensure_templates(tenant) + created_stats["SurgicalNoteTemplate"] += created_templates + + # For each day, create a mix of elective and emergency blocks and cases + for i in range(days): + the_day = start_date + timedelta(days=i) + # Shuffle rooms daily so distribution varies + random.shuffle(rooms) + + # Elective blocks + created_stats["ORBlock"] += self._create_day_blocks( + tenant=tenant, + the_day=the_day, + rooms=rooms, + count=elective_blocks, + block_type="SCHEDULED", + surgeons=surgeons, + anesth_pool=anesth_pool, + time_window=(ELECTIVE_START, ELECTIVE_END), ) - - self.stdout.write(self.style.SUCCESS('Data generation complete!')) - self.print_summary(tenant) - - def get_or_create_tenant(self, tenant_id=1): - """Get existing tenant or create a new one.""" + + # Emergency blocks + created_stats["ORBlock"] += self._create_day_blocks( + tenant=tenant, + the_day=the_day, + rooms=rooms, + count=emergency_blocks, + block_type="EMERGENCY", + surgeons=surgeons, + anesth_pool=anesth_pool, + time_window=(EMERGENCY_START, EMERGENCY_END), + ) + + # Fill cases into blocks + blocks = ORBlock.objects.filter(operating_room__tenant=tenant, date=the_day) + for block in blocks: + per_block = random.randint(min_cases, max_cases) + created, created_eu, created_notes = self._populate_cases_for_block( + tenant=tenant, + block=block, + count=per_block, + surgeons=surgeons, + anesth_pool=anesth_pool, + nurses_pool=nurses_pool, + patients=patients, + ) + created_stats["SurgicalCase"] += created + created_stats["EquipmentUsage"] += created_eu + created_stats["SurgicalNote"] += created_notes + + if options["dry_run"]: + self.stdout.write(self.style.WARNING("DRY RUN: No changes will be committed.")) + with transaction.atomic(): + do_work() + raise transaction.TransactionManagementError("DRY RUN rollback") + else: + do_work() + + # Summary + self.stdout.write(self.style.SUCCESS("Data generation completed.")) + for k, v in sorted(created_stats.items()): + self.stdout.write(f" - {k}: {v}") + + # ---------- Internal methods ---------- + + def _get_tenant(self, tenant_id): if tenant_id: try: - return Tenant.objects.get(id=tenant_id) + # Try by UUID or PK + try: + return Tenant.objects.get(tenant_id=tenant_id) + except Exception: + return Tenant.objects.get(pk=tenant_id) except Tenant.DoesNotExist: - self.stdout.write(self.style.WARNING(f'Tenant {tenant_id} not found, creating new one')) - - # Create a new tenant - hospital_name = random.choice(self.SAUDI_HOSPITALS) - tenant, created = Tenant.objects.get_or_create( - name=hospital_name, - defaults={ - 'domain': hospital_name.lower().replace(' ', '-') + '.sa', - 'is_active': True, - 'settings': { - 'country': 'Saudi Arabia', - 'city': random.choice(self.SAUDI_CITIES), - 'timezone': 'Asia/Riyadh', - 'currency': 'SAR' - } - } + raise CommandError("Tenant not found. Provide a valid --tenant-id (UUID or PK).") + # If only one tenant, pick it, else require explicit + count = Tenant.objects.count() + if count == 1: + return Tenant.objects.first() + raise CommandError("Multiple tenants found. Please provide --tenant-id.") + + def _next_case_number(self, tenant, day): + """ + Return a unique case number like SURG-YYYYMMDD-0001 scoped to tenant+day. + Uses DB ordering to find the current max suffix under the prefix. + """ + prefix = f"SURG-{day.strftime('%Y%m%d')}-" + + # Find the lexicographically max case_number under this prefix for this tenant + last_cn = ( + SurgicalCase.objects + .filter(or_block__operating_room__tenant=tenant, case_number__startswith=prefix) + .order_by('-case_number') + .values_list('case_number', flat=True) + .first() ) - - if created: - self.stdout.write(self.style.SUCCESS(f'Created tenant: {tenant.name}')) - - return tenant - - def clear_existing_data(self, tenant): - """Clear existing OR data for the tenant.""" - self.stdout.write('Clearing existing data...') - - OperatingRoom.objects.filter(tenant=tenant).delete() - SurgicalNoteTemplate.objects.filter(tenant=tenant).delete() - - self.stdout.write(self.style.SUCCESS('Existing data cleared')) - - def create_medical_staff(self, tenant, count=20): - """Create medical staff users.""" - self.stdout.write('Creating medical staff...') - users = [] - - for i in range(count): - is_female = i % 3 == 0 # 1/3 female staff - - if is_female: - first_name = random.choice(self.SAUDI_FEMALE_FIRST_NAMES) - title = random.choice(['Dr.', 'Nurse']) - else: - first_name = random.choice(self.SAUDI_MALE_FIRST_NAMES) - title = 'Dr.' - - last_name = random.choice(self.SAUDI_FAMILY_NAMES) - username = f"{first_name.lower()}.{last_name.lower().replace('-', '')}_{i}" - email = f"{username}@{tenant.domain}" - - user, created = User.objects.get_or_create( - username=username, - defaults={ - 'email': email, - 'first_name': first_name, - 'last_name': last_name, - 'is_active': True - } - ) - - if created: - user.set_password('password123') - user.save() - - users.append(user) - - self.stdout.write(self.style.SUCCESS(f'Created {len(users)} medical staff')) - return users - - def create_patients(self, tenant, count=30): - """Create patient profiles.""" - self.stdout.write('Creating patients...') - patients = [] - - for i in range(count): - is_female = random.random() > 0.6 - - if is_female: - first_name = random.choice(self.SAUDI_FEMALE_FIRST_NAMES) - gender = 'F' - else: - first_name = random.choice(self.SAUDI_MALE_FIRST_NAMES) - gender = 'M' - - last_name = random.choice(self.SAUDI_FAMILY_NAMES) - - # Create user for patient - username = f"patient_{first_name.lower()}_{i}" - user, _ = User.objects.get_or_create( - username=username, - defaults={ - 'email': f"{username}@example.com", - 'first_name': first_name, - 'last_name': last_name - } - ) - - # Create patient profile - patient, created = PatientProfile.objects.get_or_create( - user=user, - defaults={ - 'tenant': tenant, - 'patient_id': f"P{datetime.now().year}{i:06d}", - 'date_of_birth': fake.date_of_birth(minimum_age=18, maximum_age=80), - 'gender': gender, - 'blood_group': random.choice(['A+', 'A-', 'B+', 'B-', 'O+', 'O-', 'AB+', 'AB-']), - 'phone': f"+966{random.randint(500000000, 599999999)}", - 'email': user.email, - 'address': f"{random.randint(1, 999)} {random.choice(['King Fahd Road', 'Olaya Street', 'Tahlia Street'])}, {random.choice(self.SAUDI_CITIES)}", - 'emergency_contact_name': random.choice(self.SAUDI_MALE_FIRST_NAMES) + ' ' + last_name, - 'emergency_contact_phone': f"+966{random.randint(500000000, 599999999)}", - 'national_id': f"{random.randint(1000000000, 2999999999)}", - 'insurance_provider': random.choice(['Bupa', 'Tawuniya', 'MedGulf', 'Allianz', 'AXA']), - 'insurance_number': f"INS{random.randint(100000, 999999)}" - } - ) - - patients.append(patient) - - self.stdout.write(self.style.SUCCESS(f'Created {len(patients)} patients')) - return patients - - def create_surgical_note_templates(self, tenant): - """Create surgical note templates.""" - self.stdout.write('Creating surgical note templates...') - - specialties = ['GENERAL', 'CARDIAC', 'NEURO', 'ORTHOPEDIC', 'OBSTETRIC'] - - for specialty in specialties: - for template_type in ['Standard', 'Complex', 'Emergency']: - SurgicalNoteTemplate.objects.get_or_create( - tenant=tenant, - name=f"{specialty} - {template_type} Template", - defaults={ - 'description': f"Standard {template_type.lower()} template for {specialty.lower()} procedures", - 'specialty': specialty, - 'procedure_type': random.choice(self.SURGICAL_PROCEDURES.get(specialty, ['General'])), - 'preoperative_diagnosis_template': "Preoperative Diagnosis: [Enter diagnosis]", - 'planned_procedure_template': "Planned Procedure: [Enter procedure]", - 'indication_template': "Indication: Patient presents with [symptoms] requiring intervention", - 'procedure_performed_template': "Procedure: [Describe procedure performed]", - 'surgical_approach_template': "Approach: [Describe approach]", - 'findings_template': "Findings: [Describe findings]", - 'technique_template': "Technique: Standard surgical technique employed", - 'postoperative_diagnosis_template': "Postoperative Diagnosis: [Enter diagnosis]", - 'is_active': True, - 'is_default': template_type == 'Standard' - } - ) - - self.stdout.write(self.style.SUCCESS('Created surgical note templates')) - - def create_operating_rooms(self, tenant, count=5): - """Create operating rooms.""" - self.stdout.write('Creating operating rooms...') + + if not last_cn: + return f"{prefix}0001" + + try: + last_num = int(last_cn.split('-')[-1]) + except Exception: + # Fallback if an unexpected format is found + last_num = 0 + return f"{prefix}{last_num + 1:04d}" + + def _create_operating_rooms(self, tenant, rooms_target): rooms = [] - - room_types = ['GENERAL', 'CARDIAC', 'NEURO', 'ORTHOPEDIC', 'OBSTETRIC'] - - for i in range(1, count + 1): - room_type = room_types[(i-1) % len(room_types)] - - room = OperatingRoom.objects.create( + room_types = [choice[0] for choice in OperatingRoom.ROOM_TYPE_CHOICES] + for idx in range(1, rooms_target + 1): + rt = random.choice(room_types) + building = random.choice(SAUDI_BUILDINGS) + wing = random.choice(SAUDI_WINGS) + + has_c_arm = rt in {"ORTHOPEDIC", "TRAUMA", "VASCULAR", "THORACIC", "UROLOGY"} + supports_robotic = rt in {"UROLOGY", "GENERAL", "GYNE", "ORTHOPEDIC", "CARDIAC", "TRANSPLANT", "THORACIC", "NEURO", "PLASTIC"} + has_ultrasound = rt in {"GENERAL", "UROLOGY", "OBSTETRIC", "VASCULAR"} + + equipment_list = [e[0] for e in random_equipment_set(rt, supports_robotic, has_c_arm, has_ultrasound)] + features = random.sample(ROOM_FEATURES, k=min(len(ROOM_FEATURES), random.randint(3, 6))) + + room = OperatingRoom( tenant=tenant, - room_number=f"OR-{i:03d}", - room_name=f"{room_type.title()} Operating Room {i}", - room_type=room_type, - status='AVAILABLE', + room_number=f"OR-{idx:02d}", + room_name=f"Operating Room {idx}", + room_type=rt, + status="AVAILABLE", floor_number=random.randint(1, 4), - room_size=random.uniform(40, 80), - ceiling_height=random.uniform(3.0, 4.5), + room_size=round(random.uniform(35.0, 70.0), 1), + ceiling_height=round(random.uniform(2.8, 3.5), 1), temperature_min=18.0, - temperature_max=24.0, + temperature_max=26.0, humidity_min=30.0, humidity_max=60.0, - air_changes_per_hour=random.randint(20, 25), + air_changes_per_hour=random.choice([20, 25, 30]), positive_pressure=True, - equipment_list=self._get_equipment_list(room_type), - special_features=self._get_special_features(room_type), - has_c_arm=room_type in ['ORTHOPEDIC', 'NEURO'], - has_ct=room_type in ['NEURO', 'CARDIAC'] and random.random() > 0.5, - has_mri=room_type == 'NEURO' and random.random() > 0.7, - has_ultrasound=True, - has_neuromonitoring=room_type in ['NEURO', 'ORTHOPEDIC'], - supports_robotic=room_type in ['GENERAL', 'CARDIAC'] and random.random() > 0.4, - supports_laparoscopic=room_type in ['GENERAL', 'OBSTETRIC'], - supports_microscopy=room_type in ['NEURO', 'OPHTHALMOLOGY'], - max_case_duration=random.randint(240, 720), - turnover_time=random.randint(20, 45), - cleaning_time=random.randint(30, 60), - required_nurses=random.randint(2, 4), - required_techs=random.randint(1, 3), + equipment_list=equipment_list, + special_features=features, + has_c_arm=has_c_arm, + has_ct=False, + has_mri=False, + has_ultrasound=has_ultrasound, + has_neuromonitoring=rt in {"NEURO", "ORTHOPEDIC", "SPINE"}, + supports_robotic=supports_robotic, + supports_laparoscopic=True, + supports_microscopy=rt in {"NEURO", "PLASTIC", "ENT"}, + supports_laser=rt in {"UROLOGY", "ENT", "OPHTHALMOLOGY"}, + max_case_duration=random.choice([480, 540, 600]), + turnover_time=random.choice([25, 30, 35]), + cleaning_time=random.choice([40, 45, 50]), + required_nurses=random.choice([2, 3, 4]), + required_techs=random.choice([1, 2]), is_active=True, accepts_emergency=True, - building=random.choice(['Main', 'East Wing', 'West Wing']), - wing=random.choice(['North', 'South', 'Central']) + building=building, + wing=wing, ) - rooms.append(room) - - self.stdout.write(self.style.SUCCESS(f'Created {len(rooms)} operating rooms')) - return rooms - - def _get_equipment_list(self, room_type): - """Get equipment list for room type.""" - basic = [ - "Anesthesia Machine", - "Patient Monitor", - "Surgical Lights", - "Operating Table", - "Electrocautery Unit" - ] - - specialized = { - 'CARDIAC': ["Heart-Lung Machine", "IABP"], - 'NEURO': ["Surgical Microscope", "Neuronavigation"], - 'ORTHOPEDIC': ["C-Arm", "Power Tools"], - 'GENERAL': ["Laparoscopic Tower", "Harmonic Scalpel"] - } - - equipment = basic.copy() - if room_type in specialized: - equipment.extend(specialized[room_type]) - - return equipment - - def _get_special_features(self, room_type): - """Get special features for room type.""" - features = ["Laminar Flow", "HEPA Filtration"] - - special = { - 'CARDIAC': ["Hybrid OR Capability"], - 'NEURO': ["Intraoperative MRI Compatible"], - 'ORTHOPEDIC': ["Class 100 Clean Room"], - 'OBSTETRIC': ["Neonatal Resuscitation Area"] - } - - if room_type in special: - features.extend(special[room_type]) - - return features - - def create_or_blocks_with_cases(self, room, users, patients, num_blocks, num_cases): - """Create OR blocks with surgical cases.""" - self.stdout.write(f'Creating blocks for {room.room_number}...') - - surgeons = [u for u in users if 'Dr.' in u.first_name or random.random() > 0.5] - nurses = [u for u in users if u not in surgeons] - - for block_num in range(num_blocks): - # Create OR block - block_date = timezone.now().date() + timedelta(days=random.randint(1, 30)) - start_hour = random.choice([7, 8, 9, 13]) - duration = random.randint(2, 6) - - block = ORBlock.objects.create( - operating_room=room, - date=block_date, - start_time=time(start_hour, 0), - end_time=time((start_hour + duration) % 24, 0), - block_type='SCHEDULED', - primary_surgeon=random.choice(surgeons), - service=room.room_type, - status=random.choice(['SCHEDULED', 'ACTIVE', 'COMPLETED']), - allocated_minutes=duration * 60, - used_minutes=random.randint(duration * 45, duration * 60), - special_equipment=random.sample(self.MEDICAL_EQUIPMENT, k=random.randint(0, 2)), - notes=f"Block for {room.room_type} procedures" + OperatingRoom.objects.bulk_create(rooms) + return list(OperatingRoom.objects.filter(tenant=tenant)) + + def _ensure_templates(self, tenant): + created = 0 + for specialty_code, specialty_label in SurgicalNoteTemplate.SPECIALTY_CHOICES: + name = f"Default {specialty_label} Template" + if not SurgicalNoteTemplate.objects.filter(tenant=tenant, name=name).exists(): + SurgicalNoteTemplate.objects.create( + tenant=tenant, + name=name, + description=f"Standardized note template for {specialty_label}.", + procedure_type=None, + specialty=specialty_code, + preoperative_diagnosis_template="Preoperative diagnosis: {{ diagnosis }}.", + planned_procedure_template="Planned procedure: {{ primary_procedure }}.", + indication_template="Indications include symptom severity and failed conservative management.", + procedure_performed_template="Procedure performed as planned with appropriate variations.", + surgical_approach_template="Approach: {{ approach }} with standard sterile technique.", + findings_template="Key intraoperative findings noted.", + technique_template="Step-wise technique documented with hemostasis achieved.", + postoperative_diagnosis_template="Postoperative diagnosis similar to preoperative with noted changes.", + complications_template="No complications unless specified.", + specimens_template="Specimens sent to pathology as listed.", + implants_template="Implants, if any, listed with lot numbers.", + closure_template="Layered closure with appropriate sutures.", + postop_instructions_template="Routine postoperative instructions and follow-up plan.", + is_active=True, + is_default=(specialty_code == "ALL"), + usage_count=0, + created_by=None, + ) + created += 1 + return created + + def _create_day_blocks(self, tenant, the_day, rooms, count, block_type, surgeons, anesth_pool, time_window): + if count <= 0 or not rooms: + return 0 + + created = 0 + start_t, end_t = time_window + window_minutes = minutes_between(start_t, end_t) + + # Each block ~ 90–180 minutes + blocks_to_make = count + room_idx = 0 + + while blocks_to_make > 0 and room_idx < len(rooms): + room = rooms[room_idx] + room_idx += 1 + + # Decide number of blocks for this room for the day + per_room = random.randint(1, min(3, blocks_to_make)) + # Build non-overlapping blocks + cursor_minute = 0 + for _ in range(per_room): + if cursor_minute + 90 > window_minutes: + break + dur = random.choice([90, 120, 150, 180]) + if cursor_minute + dur > window_minutes: + dur = window_minutes - cursor_minute + if dur < 60: + break + + block_start = (datetime.combine(the_day, start_t) + timedelta(minutes=cursor_minute)).time() + block_end_dt = (datetime.combine(the_day, start_t) + timedelta(minutes=cursor_minute + dur)) + block_end = block_end_dt.time() + + # Assign primary surgeon + primary = choose_staff(surgeons, k=1) + if not primary: + continue + primary = primary[0] + + service = random.choice(list(SERVICE_TO_PROCEDURES.keys())) + ob = ORBlock( + operating_room=room, + date=the_day, + start_time=block_start, + end_time=block_end, + block_type=block_type, + primary_surgeon=primary, + service=service, + status="SCHEDULED", + allocated_minutes=0, # computed in save() + used_minutes=0, + special_equipment=[], + special_setup=None, + notes=f"{block_type.title()} block for {service} service.", + created_by=None, + ) + ob.save() + created += 1 + + # Occasionally add assistant surgeons + assistants = choose_staff(surgeons, k=random.choice([0, 1, 2]), exclude=[primary]) + if assistants: + ob.assistant_surgeons.add(*assistants) + + # Add special equipment hints + if room.supports_robotic and random.random() < 0.2: + ob.special_equipment.append("Robot Instruments Set") + if room.has_c_arm and random.random() < 0.3: + ob.special_equipment.append("C-Arm Ready") + if room.has_ultrasound and random.random() < 0.3: + ob.special_equipment.append("Intraop Ultrasound Probe") + + ob.save() + + cursor_minute += dur + room.turnover_time + + if created >= count: + break + if created >= count: + break + + return created + + def _populate_cases_for_block(self, tenant, block, count, surgeons, anesth_pool, nurses_pool, patients): + created_cases = 0 + created_usage = 0 + created_notes = 0 + + # Time slicing within the block for each case + block_start_dt = dt_in_ksa(block.date, block.start_time) + block_end_dt = dt_in_ksa(block.date, block.end_time) + available_minutes = int((block_end_dt - block_start_dt).total_seconds() // 60) + + # Estimate per-case minutes + per_case_estimates = [] + remaining = available_minutes + for i in range(count): + est = random.choice([60, 90, 120, 150]) + if i == count - 1: + est = max(45, remaining) + per_case_estimates.append(est) + remaining -= est + if remaining < 45 and i < count - 1: + # Reduce case count if not enough room + count = i + 1 + per_case_estimates = per_case_estimates[:count] + break + + current_start = block_start_dt + + for i in range(count): + est_minutes = per_case_estimates[i] + sched_start = current_start + # Keep end within block + est_end = sched_start + timedelta(minutes=est_minutes) + if est_end > block_end_dt: + est_end = block_end_dt + + # Staff + primary_surgeon = block.primary_surgeon + assistants = choose_staff(surgeons, k=random.choice([0, 1, 2]), exclude=[primary_surgeon]) + anesthesiologist = choose_staff(anesth_pool, k=1, exclude=[primary_surgeon] + assistants) + anesthesiologist = anesthesiologist[0] if anesthesiologist else None + circ_nurse = choose_staff(nurses_pool, k=1, exclude=[primary_surgeon] + assistants + ([anesthesiologist] if anesthesiologist else [])) + circ_nurse = circ_nurse[0] if circ_nurse else None + scrub_nurse = choose_staff(nurses_pool, k=1, exclude=[primary_surgeon] + assistants + ([anesthesiologist] if anesthesiologist else []) + ([circ_nurse] if circ_nurse else [])) + scrub_nurse = scrub_nurse[0] if scrub_nurse else None + + # Procedure selection by service + service = block.service + proc_triplet = random.choice(SERVICE_TO_PROCEDURES[service]) + primary_proc, secondary_proc_list, cpts = proc_triplet + + case_type = probable_case_type(service) + approach = pick_approach(service) + anesthesia = pick_anesthesia() + position = pick_position(service) + diagnosis, icd10s = random.choice(DIAGNOSES) + + patient = patients.order_by('?').first() + encounter = safe_get_encounter(patient) + admission = safe_get_admission(patient) if case_type != "ELECTIVE" and random.random() < 0.5 else None + + day = sched_start.date() + for attempt in range(5): + try: + case_number = self._next_case_number(tenant, day) + + sc = SurgicalCase( + or_block=block, + case_number=case_number, # <-- set explicitly (non-empty) + patient=patient, + primary_surgeon=primary_surgeon, + # assistants added after save + anesthesiologist=anesthesiologist, + circulating_nurse=circ_nurse, + scrub_nurse=scrub_nurse, + primary_procedure=primary_proc, + secondary_procedures=secondary_proc_list[:], + procedure_codes=cpts[:], + case_type=case_type, + approach=approach, + anesthesia_type=anesthesia, + scheduled_start=sched_start, + estimated_duration=est_minutes, + actual_start=None, + actual_end=None, + status="SCHEDULED", + diagnosis=diagnosis, + diagnosis_codes=icd10s[:], + clinical_notes="Patient optimized preoperatively. Informed consent obtained.", + special_equipment=[], + blood_products=random.sample(BLOOD_PRODUCTS, k=random.choice([0, 1, 2])), + implants=random.sample(IMPLANT_EXAMPLES, k=random.choice([0, 1, 2])), + patient_position=position, + complications=[], + estimated_blood_loss=None, + encounter=encounter, + admission=admission, + created_by=None, + ) + sc.save() + break # success + except IntegrityError: + # Someone else grabbed that number; try again with the next one + if attempt == 4: + raise + continue + # Optional: set realistic actual times (simulate some completed cases) + if random.random() < 0.4: + delay = random.choice([0, 5, 10, 15]) + overrun = random.choice([-10, 0, 10, 20, 30]) + sc.actual_start = sc.scheduled_start + timedelta(minutes=delay) + sc.actual_end = sc.actual_start + timedelta(minutes=max(45, est_minutes + overrun)) + sc.status = "COMPLETED" + sc.estimated_blood_loss = random.choice([100, 150, 200, 300, 500]) + sc.save() + + created_cases += 1 + + # Equipment usage entries (a few per case) + eu_set = random_equipment_set( + service=service, + robotic=block.operating_room.supports_robotic and approach == "ROBOTIC", + has_c_arm=block.operating_room.has_c_arm, + has_ultrasound=block.operating_room.has_ultrasound, ) - - # Add assistant surgeons - if surgeons: - assistants = random.sample(surgeons, k=min(random.randint(0, 2), len(surgeons))) - block.assistant_surgeons.set(assistants) - - # Create surgical cases for this block - for case_num in range(random.randint(1, num_cases)): - self.create_surgical_case(block, patients, surgeons, nurses) - - def create_surgical_case(self, block, patients, surgeons, nurses): - """Create a surgical case.""" - procedure_type = block.service - procedures = self.SURGICAL_PROCEDURES.get(procedure_type, ['General Surgery']) - - case_time = datetime.combine(block.date, block.start_time) + timedelta(minutes=random.randint(0, 120)) - duration = random.randint(30, 240) - - case = SurgicalCase.objects.create( - or_block=block, - patient=random.choice(patients), - primary_surgeon=block.primary_surgeon, - anesthesiologist=random.choice(surgeons) if surgeons else block.primary_surgeon, - circulating_nurse=random.choice(nurses) if nurses else None, - scrub_nurse=random.choice(nurses) if nurses else None, - primary_procedure=random.choice(procedures), - secondary_procedures=[], - procedure_codes=[f"CPT{random.randint(10000, 99999)}" for _ in range(random.randint(1, 3))], - case_type=random.choice(['ELECTIVE', 'URGENT', 'EMERGENCY']), - approach=random.choice(['OPEN', 'LAPAROSCOPIC', 'ROBOTIC']), - anesthesia_type=random.choice(['GENERAL', 'REGIONAL', 'SPINAL']), - scheduled_start=timezone.make_aware(case_time), - estimated_duration=duration, - status=random.choice(['SCHEDULED', 'COMPLETED', 'IN_PROGRESS']), - diagnosis=self._get_diagnosis(), - diagnosis_codes=[f"ICD10-{random.choice(['K', 'I', 'M'])}{random.randint(10, 99)}.{random.randint(0, 9)}"], - clinical_notes="Patient prepared for surgery as per protocol", - special_equipment=random.sample(self.MEDICAL_EQUIPMENT, k=random.randint(0, 2)), - patient_position=random.choice(['SUPINE', 'PRONE', 'LATERAL']), - estimated_blood_loss=random.randint(10, 500) if random.random() > 0.5 else None - ) - - # Add assistant surgeons - if surgeons: - assistants = random.sample(surgeons, k=min(random.randint(0, 2), len(surgeons))) - case.assistant_surgeons.set(assistants) - - # Create surgical note for completed cases - if case.status == 'COMPLETED': - self.create_surgical_note(case) - - # Create equipment usage - self.create_equipment_usage(case) - - return case - - def _get_diagnosis(self): - """Get a random diagnosis.""" - diagnoses = [ - "Acute Appendicitis", - "Cholelithiasis", - "Inguinal Hernia", - "Coronary Artery Disease", - "Spinal Stenosis", - "Osteoarthritis", - "Brain Tumor", - "Breast Cancer" - ] - return random.choice(diagnoses) - - def create_surgical_note(self, case): - """Create surgical note for completed case.""" - SurgicalNote.objects.create( - surgical_case=case, - surgeon=case.primary_surgeon, - preoperative_diagnosis=case.diagnosis, - planned_procedure=case.primary_procedure, - indication="Symptomatic disease requiring surgical intervention", - procedure_performed=case.primary_procedure, - surgical_approach=f"{case.approach} approach utilized", - findings="As per preoperative diagnosis", - technique="Standard surgical technique employed", - postoperative_diagnosis=case.diagnosis, - condition=random.choice(['STABLE', 'GOOD', 'FAIR']), - disposition=random.choice(['RECOVERY', 'ICU', 'WARD']), - complications="None", - estimated_blood_loss=case.estimated_blood_loss or random.randint(10, 200), - specimens="Sent to pathology" if random.random() > 0.5 else None, - closure="Layered closure with absorbable sutures", - postop_instructions="Standard postoperative care protocol", - follow_up="2 weeks in surgical clinic", - status='SIGNED', - signed_datetime=timezone.now() - ) - - def create_equipment_usage(self, case): - """Create equipment usage records.""" - equipment_types = [ - ('Surgical Drape Set', 'DISPOSABLE', 1, 'SET', 150.00), - ('Harmonic Scalpel', 'SURGICAL_INSTRUMENT', 1, 'EACH', 2500.00), - ('Suture Pack', 'DISPOSABLE', 3, 'PACK', 75.00), - ('Surgical Gloves', 'DISPOSABLE', 10, 'PAIR', 5.00) - ] - - for name, eq_type, qty, unit, cost in random.sample(equipment_types, k=random.randint(2, 4)): - EquipmentUsage.objects.create( - surgical_case=case, - equipment_name=name, - equipment_type=eq_type, - manufacturer=random.choice(['Medtronic', 'Johnson & Johnson', 'Stryker']), - quantity_used=qty, - unit_of_measure=unit, - unit_cost=Decimal(str(cost)), - total_cost=Decimal(str(cost * qty)), - lot_number=f"LOT{random.randint(10000, 99999)}", - expiration_date=timezone.now().date() + timedelta(days=random.randint(180, 730)), - sterilization_date=timezone.now().date() - timedelta(days=random.randint(1, 7)), - recorded_by=case.primary_surgeon + for (eq_name, eq_type, manu, model) in random.sample(eu_set, k=min(len(eu_set), random.randint(2, 5))): + started = sc.scheduled_start + timedelta(minutes=random.choice([0, 5, 10, 15])) + ended = started + timedelta(minutes=random.choice([20, 30, 45, 60])) + eu = EquipmentUsage( + surgical_case=sc, + equipment_name=eq_name, + equipment_type=eq_type, + manufacturer=manu, + model=model, + quantity_used=random.choice([1, 1, 2]), + unit_of_measure="EACH", + start_time=started if random.random() < 0.8 else None, + end_time=ended if random.random() < 0.7 else None, + unit_cost=random.choice([None, 250.00, 500.00, 1200.00]), + total_cost=None, + lot_number=str(uuid.uuid4())[:8] if random.random() < 0.4 else None, + expiration_date=None, + sterilization_date=block.date - timedelta(days=random.randint(1, 14)) if random.random() < 0.5 else None, + notes=None, + recorded_by=primary_surgeon if random.random() < 0.3 else None, + ) + eu.save() + created_usage += 1 + + # Surgical Note (draft or completed) + note_status = random.choice(["DRAFT", "COMPLETED", "SIGNED"]) + tmpl = SurgicalNoteTemplate.objects.filter(tenant=tenant, is_active=True).order_by('?').first() + sn = SurgicalNote( + surgical_case=sc, + surgeon=primary_surgeon, + preoperative_diagnosis=f"{diagnosis}.", + planned_procedure=primary_proc, + indication="Worsening symptoms with failure of conservative management.", + procedure_performed=f"{primary_proc} performed; secondary procedures as indicated.", + surgical_approach=f"Approach: {approach}. Standard sterile preparation and draping.", + findings="Findings consistent with preoperative diagnosis.", + technique="Procedure completed in steps with meticulous hemostasis.", + postoperative_diagnosis=diagnosis, + condition=random.choice([c[0] for c in SurgicalNote.CONDITION_CHOICES]), + disposition=random.choice([d[0] for d in SurgicalNote.DISPOSITION_CHOICES]), + complications=None if sc.status == "COMPLETED" and random.random() < 0.7 else "Minor bleeding controlled with cautery.", + estimated_blood_loss=sc.estimated_blood_loss if sc.estimated_blood_loss else random.choice([None, 150, 200]), + blood_transfusion=None if random.random() < 0.7 else "1 unit PRBC transfused intraoperatively.", + specimens="Specimen sent to pathology as required." if random.random() < 0.5 else None, + implants=", ".join(sc.implants) if sc.implants else None, + drains="Closed-suction drain placed to dependent region." if random.random() < 0.3 else None, + closure="Layered closure with absorbable sutures; skin staples as needed.", + postop_instructions="Early ambulation, incentive spirometry, pain control, DVT prophylaxis.", + follow_up="Outpatient clinic in 1–2 weeks; sooner if concerns.", + status=note_status, + signed_datetime=( + timezone.now() if note_status == "SIGNED" else None + ), + template_used=tmpl, ) - - def print_summary(self, tenant): - """Print summary of generated data.""" - self.stdout.write("\n" + "="*60) - self.stdout.write(self.style.SUCCESS("Data Generation Summary")) - self.stdout.write("="*60) - - rooms = OperatingRoom.objects.filter(tenant=tenant) - blocks = ORBlock.objects.filter(operating_room__tenant=tenant) - cases = SurgicalCase.objects.filter(or_block__operating_room__tenant=tenant) - notes = SurgicalNote.objects.filter(surgical_case__or_block__operating_room__tenant=tenant) - equipment = EquipmentUsage.objects.filter(surgical_case__or_block__operating_room__tenant=tenant) - templates = SurgicalNoteTemplate.objects.filter(tenant=tenant) - - self.stdout.write(f"Tenant: {tenant.name}") - self.stdout.write(f"Operating Rooms: {rooms.count()}") - self.stdout.write(f"OR Blocks: {blocks.count()}") - self.stdout.write(f"Surgical Cases: {cases.count()}") - self.stdout.write(f"Surgical Notes: {notes.count()}") - self.stdout.write(f"Equipment Usage Records: {equipment.count()}") - self.stdout.write(f"Surgical Templates: {templates.count()}") - self.stdout.write("="*60) \ No newline at end of file + sn.save() + created_notes += 1 + + # Move pointer for next case + current_start = est_end + timedelta(minutes=block.operating_room.turnover_time) + + # Update block used_minutes based on completed cases + used = 0 + for case in block.surgical_cases.all(): + if case.actual_start and case.actual_end: + used += int((case.actual_end - case.actual_start).total_seconds() // 60) + else: + used += case.estimated_duration + block.used_minutes = min(used, block.allocated_minutes or used) + block.status = "ACTIVE" if block.used_minutes > 0 else block.status + block.save() + + return created_cases, created_usage, created_notes \ No newline at end of file diff --git a/operating_theatre/migrations/0002_alter_surgicalnote_surgeon_and_more.py b/operating_theatre/migrations/0002_alter_surgicalnote_surgeon_and_more.py new file mode 100644 index 00000000..181aee6b --- /dev/null +++ b/operating_theatre/migrations/0002_alter_surgicalnote_surgeon_and_more.py @@ -0,0 +1,36 @@ +# Generated by Django 5.2.4 on 2025-09-04 15:07 + +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("operating_theatre", "0001_initial"), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.AlterField( + model_name="surgicalnote", + name="surgeon", + field=models.ForeignKey( + help_text="Operating surgeon", + on_delete=django.db.models.deletion.CASCADE, + related_name="surgeon_surgical_notes", + to=settings.AUTH_USER_MODEL, + ), + ), + migrations.AlterField( + model_name="surgicalnote", + name="surgical_case", + field=models.OneToOneField( + help_text="Related surgical case", + on_delete=django.db.models.deletion.CASCADE, + related_name="surgical_notes", + to="operating_theatre.surgicalcase", + ), + ), + ] diff --git a/operating_theatre/migrations/__pycache__/0002_alter_surgicalnote_surgeon_and_more.cpython-312.pyc b/operating_theatre/migrations/__pycache__/0002_alter_surgicalnote_surgeon_and_more.cpython-312.pyc new file mode 100644 index 00000000..bc081c89 Binary files /dev/null and b/operating_theatre/migrations/__pycache__/0002_alter_surgicalnote_surgeon_and_more.cpython-312.pyc differ diff --git a/operating_theatre/models.py b/operating_theatre/models.py index c7de9820..ec64d698 100644 --- a/operating_theatre/models.py +++ b/operating_theatre/models.py @@ -260,17 +260,26 @@ class OperatingRoom(models.Model): Check if room is available for scheduling. """ return self.status == 'AVAILABLE' and self.is_active - + + @property + def surgical_cases(self): + """ + All surgical cases scheduled/assigned to this operating room + via its OR blocks. + """ + return SurgicalCase.objects.filter(or_block__operating_room=self) + + # (Optional) a clearer alias if you prefer not to shadow the term "surgical_cases" + @property + def cases(self): + return self.surgical_cases + @property def current_case(self): """ - Get current surgical case if room is occupied. + Get the in-progress surgical case for this room (if any). """ - if self.status == 'OCCUPIED': - return self.surgical_cases.filter( - status='IN_PROGRESS' - ).first() - return None + return self.surgical_cases.filter(status='IN_PROGRESS').order_by('-scheduled_start').first() class ORBlock(models.Model): @@ -812,7 +821,7 @@ class SurgicalNote(models.Model): surgical_case = models.OneToOneField( SurgicalCase, on_delete=models.CASCADE, - related_name='surgical_note', + related_name='surgical_notes', help_text='Related surgical case' ) @@ -828,7 +837,7 @@ class SurgicalNote(models.Model): surgeon = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, - related_name='surgical_notes', + related_name='surgeon_surgical_notes', help_text='Operating surgeon' ) diff --git a/operating_theatre/urls.py b/operating_theatre/urls.py index 84195064..d9be74e6 100644 --- a/operating_theatre/urls.py +++ b/operating_theatre/urls.py @@ -21,7 +21,8 @@ urlpatterns = [ path('rooms//', views.OperatingRoomDetailView.as_view(), name='operating_room_detail'), path('rooms//update/', views.OperatingRoomUpdateView.as_view(), name='operating_room_update'), path('rooms//delete/', views.OperatingRoomDeleteView.as_view(), name='operating_room_delete'), - + path("availability/check/", views.check_room_availability, name="check_room_availability"), + # ============================================================================ # SURGICAL NOTE TEMPLATE URLS (FULL CRUD - Master Data) # ============================================================================ @@ -55,6 +56,8 @@ urlpatterns = [ path('notes/', views.SurgicalNoteListView.as_view(), name='surgical_note_list'), path('notes/create/', views.SurgicalNoteCreateView.as_view(), name='surgical_note_create'), path('notes//', views.SurgicalNoteDetailView.as_view(), name='surgical_note_detail'), + path('notes//preview/', views.surgical_note_preview, name='surgical_note_preview'), + # Note: No update/delete views for surgical notes - append-only for clinical records # ============================================================================ @@ -75,8 +78,10 @@ urlpatterns = [ # ============================================================================ # ACTION URLS FOR WORKFLOW OPERATIONS # ============================================================================ - path('cases//start/', views.start_case, name='start_case'), - path('cases//complete/', views.complete_case, name='complete_case'), + # path('cases//start/', views.start_case, name='start_case'), + # path('cases//complete/', views.complete_case, name='complete_case'), + path('cases//start/', views.StartCaseView.as_view(), name='start_case'), + path('cases//complete/', views.CompleteCaseView.as_view(), name='complete_case'), path('notes//sign/', views.sign_note, name='sign_note'), path('rooms//update-status/', views.update_room_status, name='update_room_status'), diff --git a/operating_theatre/views.py b/operating_theatre/views.py index 180617b8..f7a0fa31 100644 --- a/operating_theatre/views.py +++ b/operating_theatre/views.py @@ -6,19 +6,23 @@ Implements appropriate access patterns for surgical and OR management workflows. from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin +from django.views import View from django.views.generic import ( ListView, DetailView, CreateView, UpdateView, DeleteView, TemplateView ) -from django.http import JsonResponse, HttpResponse -from django.db.models import Q, Count, Avg, Sum, F +from django.db.models import Q, Count, Avg, F, DurationField, ExpressionWrapper +from django.views.decorators.http import require_POST + from django.utils import timezone from django.contrib import messages from django.urls import reverse_lazy, reverse from django.core.paginator import Paginator from django.template.loader import render_to_string +from django.http import JsonResponse, HttpResponseBadRequest, HttpResponseForbidden, HttpResponse from datetime import datetime, timedelta, date import json - +from django.utils import timezone +from django.utils.dateparse import parse_datetime, parse_date, parse_time from core.utils import AuditLogger from .models import ( OperatingRoom, ORBlock, SurgicalCase, SurgicalNote, @@ -35,95 +39,98 @@ from .forms import ( # ============================================================================ class OperatingTheatreDashboardView(LoginRequiredMixin, TemplateView): - """ - Main operating theatre dashboard with key metrics and recent activity. - """ template_name = 'operating_theatre/dashboard.html' - + def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) tenant = self.request.user.tenant today = timezone.now().date() - - # Dashboard statistics + + # --- Stats --- context.update({ 'total_rooms': OperatingRoom.objects.filter( - tenant=tenant, - is_active=True + tenant=tenant, is_active=True ).count(), + 'rooms_available': OperatingRoom.objects.filter( - tenant=tenant, - is_active=True, - status='AVAILABLE' + tenant=tenant, is_active=True, status='AVAILABLE' ).count(), + 'rooms_in_use': OperatingRoom.objects.filter( - tenant=tenant, - is_active=True, - status='IN_USE' + tenant=tenant, is_active=True, status='OCCUPIED' # was IN_USE ).count(), + 'rooms_maintenance': OperatingRoom.objects.filter( - tenant=tenant, - is_active=True, - status='MAINTENANCE' + tenant=tenant, is_active=True, status='MAINTENANCE' ).count(), + 'cases_today': SurgicalCase.objects.filter( - admission__tenant=tenant, + or_block__operating_room__tenant=tenant, # was admission__tenant scheduled_start__date=today ).count(), + 'cases_in_progress': SurgicalCase.objects.filter( - admission__tenant=tenant, + or_block__operating_room__tenant=tenant, # was admission__tenant status='IN_PROGRESS' ).count(), + 'cases_completed_today': SurgicalCase.objects.filter( - admission__tenant=tenant, + or_block__operating_room__tenant=tenant, # was admission__tenant actual_end__date=today, status='COMPLETED' ).count(), + 'emergency_cases_today': SurgicalCase.objects.filter( - admission__tenant=tenant, + or_block__operating_room__tenant=tenant, # was admission__tenant scheduled_start__date=today, case_type='EMERGENCY' ).count(), + 'blocks_today': ORBlock.objects.filter( operating_room__tenant=tenant, date=today ).count(), + 'equipment_in_use': EquipmentUsage.objects.filter( - surgical_case__admission__tenant=tenant, - # status='IN_USE' + surgical_case__or_block__operating_room__tenant=tenant + # add a real "in use" condition if you have one (e.g., end_time__isnull=True) ).count(), + 'notes_pending': SurgicalNote.objects.filter( - surgical_case__admission__tenant=tenant, + surgical_case__or_block__operating_room__tenant=tenant, status='DRAFT' ).count(), }) - - # Recent surgical cases - context['recent_cases'] = SurgicalCase.objects.filter( - admission__tenant=tenant - ).select_related( - 'patient', 'primary_surgeon', 'or_block__operating_room' - ).order_by('-scheduled_start')[:10] - - # Today's schedule - context['todays_schedule'] = SurgicalCase.objects.filter( - admission__tenant=tenant, - scheduled_start__date=today - ).select_related( - 'patient', 'primary_surgeon', 'or_block__operating_room' - ).order_by('scheduled_start') - - # Room utilization - # context['room_utilization'] = OperatingRoom.objects.filter( - # tenant=tenant, - # is_active=True - # ).annotate( - # cases_today=Count( - # 'or_block__surgical_cases', - # filter=Q(surgical_cases__scheduled_start__date=today) - # ) - # ).order_by('room_number') - + + # --- Recent cases --- + context['recent_cases'] = ( + SurgicalCase.objects + .filter(or_block__operating_room__tenant=tenant) + .select_related('patient', 'primary_surgeon', 'or_block', 'or_block__operating_room') + .order_by('-scheduled_start')[:10] + ) + + # --- Today’s schedule --- + context['todays_schedule'] = ( + SurgicalCase.objects + .filter(or_block__operating_room__tenant=tenant, scheduled_start__date=today) + .select_related('patient', 'primary_surgeon', 'or_block', 'or_block__operating_room') + .order_by('scheduled_start') + ) + + # --- Room utilization (cases today per room) --- + context['room_utilization'] = ( + OperatingRoom.objects + .filter(tenant=tenant, is_active=True) + .annotate( + cases_today=Count( + 'or_blocks__surgical_cases', + filter=Q(or_blocks__surgical_cases__scheduled_start__date=today) + ) + ) + .order_by('room_number') + ) + return context @@ -184,6 +191,9 @@ class OperatingRoomListView(LoginRequiredMixin, ListView): return context + + + class OperatingRoomDetailView(LoginRequiredMixin, DetailView): """ Display detailed information about an operating room. @@ -191,77 +201,115 @@ class OperatingRoomDetailView(LoginRequiredMixin, DetailView): model = OperatingRoom template_name = 'operating_theatre/rooms/operating_room_detail.html' context_object_name = 'operating_room' - + def get_queryset(self): + # tenant scoping return OperatingRoom.objects.filter(tenant=self.request.user.tenant) - + def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) operating_room = self.object today = timezone.now().date() - - # Get today's cases for this room - context['todays_cases'] = operating_room.surgical_cases.filter( - scheduled_start_time__date=today - ).select_related('patient', 'primary_surgeon').order_by('scheduled_start_time') - - # Get recent cases - context['recent_cases'] = operating_room.surgical_cases.all().select_related( - 'patient', 'primary_surgeon' - ).order_by('-scheduled_start_time')[:10] - - # Get equipment usage - context['equipment_usage'] = EquipmentUsage.objects.filter( - operating_room=operating_room, - tenant=self.request.user.tenant - ).order_by('-start_time')[:10] - + + # Base QS for cases in this room + room_cases = ( + SurgicalCase.objects + .filter(or_block__operating_room=operating_room) + .select_related('patient', 'primary_surgeon', 'or_block', 'or_block__operating_room') + ) + + # Today's cases + context['todays_cases'] = ( + room_cases + .filter(scheduled_start__date=today) + .order_by('scheduled_start') + ) + + # Recent cases + context['recent_cases'] = room_cases.order_by('-scheduled_start')[:10] + + # Equipment usage for this room (scope via case -> block -> room) + context['equipment_usage'] = ( + EquipmentUsage.objects + .filter(surgical_case__or_block__operating_room=operating_room) + .select_related('surgical_case') + .order_by('-start_time')[:10] + ) + + # Average duration: (actual_end - actual_start) over completed cases + completed_cases = room_cases.filter(actual_start__isnull=False, actual_end__isnull=False) + duration_expr = ExpressionWrapper( + F('actual_end') - F('actual_start'), + output_field=DurationField() + ) + avg_duration = completed_cases.aggregate(avg_duration=Avg(duration_expr))['avg_duration'] + # Room statistics + now = timezone.now() context['room_stats'] = { - 'total_cases': operating_room.surgical_cases.count(), - 'cases_this_month': operating_room.surgical_cases.filter( - scheduled_start_time__month=timezone.now().month, - scheduled_start_time__year=timezone.now().year + 'total_cases': room_cases.count(), + 'cases_this_month': room_cases.filter( + scheduled_start__year=now.year, + scheduled_start__month=now.month ).count(), - 'average_case_duration': operating_room.surgical_cases.filter( - actual_end_time__isnull=False - ).aggregate( - avg_duration=Avg( - F('actual_end_time') - F('actual_start_time') - ) - )['avg_duration'], + 'average_case_duration': avg_duration, # a datetime.timedelta or None } - + return context class OperatingRoomCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateView): """ - Create a new operating room. + Create a new operating room (fields matched to the form/template). """ model = OperatingRoom form_class = OperatingRoomForm template_name = 'operating_theatre/rooms/operating_room_form.html' permission_required = 'operating_theatre.add_operatingroom' success_url = reverse_lazy('operating_theatre:operating_room_list') - + + def get_form_kwargs(self): + kwargs = super().get_form_kwargs() + kwargs['tenant'] = self.request.user.tenant + return kwargs + + def post(self, request, *args, **kwargs): + """ + Support 'Save as Draft' AJAX click from the template. + We return a JSON success without persisting anything (no draft model). + If you later want true draft saving, add a Draft model or a flag. + """ + if request.POST.get('save_draft') == 'true': + return JsonResponse({'success': True}) + return super().post(request, *args, **kwargs) + def form_valid(self, form): + """ + Attach tenant (and created_by if desired) then save. + """ form.instance.tenant = self.request.user.tenant + if hasattr(form.instance, 'created_by') and not form.instance.created_by_id: + form.instance.created_by = self.request.user + response = super().form_valid(form) - + # Log the action - AuditLogger.log_action( - user=self.request.user, - action='OPERATING_ROOM_CREATED', - model='OperatingRoom', - object_id=str(self.object.id), - details={ - 'room_number': self.object.room_number, - 'room_name': self.object.room_name, - 'room_type': self.object.room_type - } - ) - + try: + AuditLogger.log_event( + user=self.request.user, + action='OPERATING_ROOM_CREATED', + model='OperatingRoom', + object_id=str(self.object.pk), + details={ + 'room_number': self.object.room_number, + 'room_name': self.object.room_name, + 'room_type': self.object.room_type, + }, + ) + except Exception: + # keep UX smooth even if audit logging fails + pass + messages.success(self.request, f'Operating room "{self.object.room_number}" created successfully.') return response @@ -465,7 +513,7 @@ class SurgicalNoteTemplateUpdateView(LoginRequiredMixin, PermissionRequiredMixin response = super().form_valid(form) # Log the action - AuditLogger.log_action( + AuditLogger.log_event( user=self.request.user, action='SURGICAL_NOTE_TEMPLATE_UPDATED', model='SurgicalNoteTemplate', @@ -522,7 +570,7 @@ class ORBlockListView(LoginRequiredMixin, ListView): """ model = ORBlock template_name = 'operating_theatre/blocks/block_list.html' - context_object_name = 'or_blocks' + context_object_name = 'blocks' paginate_by = 25 def get_queryset(self): @@ -547,7 +595,7 @@ class ORBlockListView(LoginRequiredMixin, ListView): queryset = queryset.filter(operating_room_id=room_id) return queryset.select_related( - 'operating_room', 'surgeon' + 'operating_room', 'primary_surgeon', ).order_by('-date', 'start_time') def get_context_data(self, **kwargs): @@ -567,39 +615,39 @@ class ORBlockDetailView(LoginRequiredMixin, DetailView): """ model = ORBlock template_name = 'operating_theatre/blocks/block_detail.html' - context_object_name = 'or_block' + # context_object_name = 'block' def get_queryset(self): - return ORBlock.objects.filter(tenant=self.request.user.tenant) + return ORBlock.objects.filter(operating_room__tenant=self.request.user.tenant) def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) or_block = self.object # Get cases scheduled in this block - context['scheduled_cases'] = SurgicalCase.objects.filter( - operating_room=or_block.operating_room, - scheduled_start_time__date=or_block.date, - scheduled_start_time__time__gte=or_block.start_time, - scheduled_start_time__time__lt=or_block.end_time, - tenant=self.request.user.tenant - ).select_related('patient', 'primary_surgeon').order_by('scheduled_start_time') - + scheduled_cases = SurgicalCase.objects.filter( + or_block__operating_room=or_block.operating_room, + scheduled_start__date=or_block.date, + scheduled_start__time__gte=or_block.start_time, + scheduled_start__time__lt=or_block.end_time, + or_block__operating_room__tenant=self.request.user.tenant + ).select_related('patient', 'primary_surgeon').order_by('scheduled_start') + context['scheduled_cases'] = scheduled_cases # Calculate utilization total_block_minutes = ( - timezone.datetime.combine(timezone.now().date(), or_block.end_time) - - timezone.datetime.combine(timezone.now().date(), or_block.start_time) + datetime.combine(timezone.now().date(), or_block.end_time) - + datetime.combine(timezone.now().date(), or_block.start_time) ).total_seconds() / 60 used_minutes = 0 - for case in context['scheduled_cases']: - if case.estimated_duration_minutes: - used_minutes += case.estimated_duration_minutes + for case in scheduled_cases: + if case.estimated_duration: + used_minutes += case.estimated_duration context['utilization_percentage'] = ( (used_minutes / total_block_minutes) * 100 if total_block_minutes > 0 else 0 ) - + context['total_block_minutes'] = total_block_minutes return context @@ -618,7 +666,7 @@ class ORBlockCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateView) response = super().form_valid(form) # Log the action - AuditLogger.log_action( + AuditLogger.log_event( user=self.request.user, action='OR_BLOCK_CREATED', model='ORBlock', @@ -640,7 +688,7 @@ class ORBlockUpdateView(LoginRequiredMixin, PermissionRequiredMixin, UpdateView) """ model = ORBlock fields = ['start_time', 'end_time', 'notes'] # Restricted fields - template_name = 'operating_theatre/or_block_update_form.html' + template_name = 'operating_theatre/or_block_form.html' permission_required = 'operating_theatre.change_orblock' def get_queryset(self): @@ -677,65 +725,64 @@ class SurgicalCaseListView(LoginRequiredMixin, ListView): List all surgical cases with filtering and search. """ model = SurgicalCase - template_name = 'operating_theatre/surgical_case_list.html' + template_name = 'operating_theatre/cases/surgical_case_list.html' context_object_name = 'surgical_cases' paginate_by = 25 - + def get_queryset(self): tenant = self.request.user.tenant - queryset = SurgicalCase.objects.filter(admission__tenant=tenant) - - # Search functionality - search = self.request.GET.get('search') + qs = SurgicalCase.objects.filter(admission__tenant=tenant) + + # Search + search = self.request.GET.get('search', '').strip() if search: - queryset = queryset.filter( - Q(patient__first_name__icontains=search) | - Q(patient__last_name__icontains=search) | - Q(patient__mrn__icontains=search) | - Q(procedure_name__icontains=search) - ) - - # Filter by status + # You can keep mrn fields if PatientProfile has them + name_q = Q(patient__first_name__icontains=search) | Q(patient__last_name__icontains=search) + mrn_q = Q(patient__mrn__icontains=search) + proc_q = Q(primary_procedure__icontains=search) + qs = qs.filter(name_q | mrn_q | proc_q) + + # Status status = self.request.GET.get('status') if status: - queryset = queryset.filter(status=status) - - # Filter by priority - priority = self.request.GET.get('priority') - if priority: - queryset = queryset.filter(priority=priority) - - # Filter by surgeon + qs = qs.filter(status=status) + + # Case type (your "priority" select) + case_type = self.request.GET.get('priority') + if case_type: + qs = qs.filter(case_type=case_type) + + # Surgeon surgeon_id = self.request.GET.get('surgeon') if surgeon_id: - queryset = queryset.filter(primary_surgeon_id=surgeon_id) - - # Filter by operating room + qs = qs.filter(primary_surgeon_id=surgeon_id) + + # Room (goes through ORBlock -> OperatingRoom) room_id = self.request.GET.get('room') if room_id: - queryset = queryset.filter(operating_room_id=room_id) - - # Filter by date range + qs = qs.filter(or_block__operating_room_id=room_id) + + # Date range (scheduled_start is a DateTimeField) date_from = self.request.GET.get('date_from') date_to = self.request.GET.get('date_to') if date_from: - queryset = queryset.filter(scheduled_start__date__gte=date_from) + qs = qs.filter(scheduled_start__date__gte=date_from) if date_to: - queryset = queryset.filter(scheduled_start__date__lte=date_to) - - return queryset.select_related( - 'patient', 'primary_surgeon', 'or_block__operating_room' - ).order_by('-scheduled_start') - + qs = qs.filter(scheduled_start__date__lte=date_to) + + return qs.select_related('patient', 'primary_surgeon', 'or_block__operating_room').order_by('-scheduled_start') + def get_context_data(self, **kwargs): + from django.contrib.auth import get_user_model + User = get_user_model() context = super().get_context_data(**kwargs) + tenant = self.request.user.tenant + context.update({ 'statuses': SurgicalCase.STATUS_CHOICES, - 'priorities': SurgicalCase.CASE_TYPE_CHOICES, - 'operating_rooms': OperatingRoom.objects.filter( - tenant=self.request.user.tenant, - is_active=True - ).order_by('room_number'), + 'case_types': SurgicalCase.CASE_TYPE_CHOICES, # renamed for clarity + 'operating_rooms': OperatingRoom.objects.filter(tenant=tenant, is_active=True).order_by('room_number'), + 'surgeons': User.objects.filter(tenant=tenant, is_active=True).order_by('first_name', 'last_name'), }) return context @@ -749,24 +796,24 @@ class SurgicalCaseDetailView(LoginRequiredMixin, DetailView): context_object_name = 'surgical_case' def get_queryset(self): - return SurgicalCase.objects.filter(tenant=self.request.user.tenant) + return SurgicalCase.objects.filter(or_block__operating_room__tenant=self.request.user.tenant) def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) surgical_case = self.object # Get surgical notes for this case - context['surgical_notes'] = surgical_case.surgical_notes.all().order_by('-created_at') + context['surgical_notes'] = surgical_case.surgical_notes # Get equipment usage for this case context['equipment_usage'] = EquipmentUsage.objects.filter( surgical_case=surgical_case, - tenant=self.request.user.tenant + surgical_case__or_block__operating_room__tenant=self.request.user.tenant ).order_by('-start_time') # Calculate actual duration if case is completed - if surgical_case.actual_start_time and surgical_case.actual_end_time: - context['actual_duration'] = surgical_case.actual_end_time - surgical_case.actual_start_time + if surgical_case.actual_start and surgical_case.actual_end: + context['actual_duration'] = surgical_case.actual_end - surgical_case.actual_start return context @@ -811,7 +858,7 @@ class SurgicalCaseUpdateView(LoginRequiredMixin, PermissionRequiredMixin, Update permission_required = 'operating_theatre.change_surgicalcase' def get_queryset(self): - return SurgicalCase.objects.filter(tenant=self.request.user.tenant) + return SurgicalCase.objects.filter(or_block__operating_room__tenant=self.request.user.tenant) def get_form_class(self): # Limit fields based on case status @@ -819,7 +866,7 @@ class SurgicalCaseUpdateView(LoginRequiredMixin, PermissionRequiredMixin, Update # Limited fields for cases that have started class RestrictedSurgicalCaseForm(SurgicalCaseForm): class Meta(SurgicalCaseForm.Meta): - fields = ['status', 'notes', 'complications'] + fields = ['status', 'complications'] return RestrictedSurgicalCaseForm else: return SurgicalCaseForm @@ -855,8 +902,8 @@ class SurgicalNoteListView(LoginRequiredMixin, ListView): List all surgical notes with filtering and search. """ model = SurgicalNote - template_name = 'operating_theatre/notes/operative_note_list.html' - context_object_name = 'surgical_notes' + template_name = 'operating_theatre/notes/surgical_note_list.html' + context_object_name = 'notes' paginate_by = 25 def get_queryset(self): @@ -889,7 +936,7 @@ class SurgicalNoteListView(LoginRequiredMixin, ListView): queryset = queryset.filter(surgeon_id=surgeon_id) return queryset.select_related( - 'surgical_case__patient', 'surgeon', 'template' + 'surgical_case__patient', 'surgeon', 'template_used' ).order_by('-created_at') def get_context_data(self, **kwargs): @@ -906,11 +953,11 @@ class SurgicalNoteDetailView(LoginRequiredMixin, DetailView): Display detailed information about a surgical note. """ model = SurgicalNote - template_name = 'operating_theatre/notes/operative_note_detail.html' - context_object_name = 'surgical_note' + template_name = 'operating_theatre/notes/surgical_note_detail.html' + context_object_name = 'note' def get_queryset(self): - return SurgicalNote.objects.filter(tenant=self.request.user.tenant) + return SurgicalNote.objects.filter(surgeon__tenant=self.request.user.tenant) class SurgicalNoteCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateView): @@ -929,7 +976,7 @@ class SurgicalNoteCreateView(LoginRequiredMixin, PermissionRequiredMixin, Create response = super().form_valid(form) # Log the action - AuditLogger.log_action( + AuditLogger.log_event( user=self.request.user, action='SURGICAL_NOTE_CREATED', model='SurgicalNote', @@ -1008,7 +1055,7 @@ class EquipmentUsageDetailView(LoginRequiredMixin, DetailView): Display detailed information about equipment usage. """ model = EquipmentUsage - template_name = 'operating_theatre/equipment_usage_detail.html' + template_name = 'operating_theatre/equipment/equipment_detail.html' context_object_name = 'equipment_usage' def get_queryset(self): @@ -1062,7 +1109,7 @@ class EquipmentUsageUpdateView(LoginRequiredMixin, PermissionRequiredMixin, Upda """ model = EquipmentUsage fields = ['status', 'end_time', 'notes'] # Restricted fields - template_name = 'operating_theatre/equipment_usage_update_form.html' + template_name = 'operating_theatre/equipment/equipment_form.html' permission_required = 'operating_theatre.change_equipmentusage' def get_queryset(self): @@ -1075,7 +1122,7 @@ class EquipmentUsageUpdateView(LoginRequiredMixin, PermissionRequiredMixin, Upda response = super().form_valid(form) # Log the action - AuditLogger.log_action( + AuditLogger.log_event( user=self.request.user, action='EQUIPMENT_USAGE_UPDATED', model='EquipmentUsage', @@ -1167,92 +1214,144 @@ def case_search(request): # ============================================================================ # ACTION VIEWS # ============================================================================ +class StartCaseView(LoginRequiredMixin, PermissionRequiredMixin, View): + """ + Mark a scheduled case as IN_PROGRESS and set room status to OCCUPIED. + """ + permission_required = 'operating_theatre.change_surgicalcase' + + def post(self, request, pk): + case = get_object_or_404(SurgicalCase, pk=pk, admission__tenant=request.user.tenant) + if case.status != 'SCHEDULED': + messages.error(request, 'Only scheduled cases can be started.') + return redirect('operating_theatre:surgical_case_list') -@login_required -def start_case(request, case_id): - """ - Start a surgical case. - """ - if request.method == 'POST': - case = get_object_or_404( - SurgicalCase, - id=case_id, - tenant=request.user.tenant - ) - case.status = 'IN_PROGRESS' - case.actual_start_time = timezone.now() + if not case.actual_start: + case.actual_start = timezone.now() case.save() - - # Update room status - if case.operating_room: - case.operating_room.status = 'IN_USE' - case.operating_room.save() - - # Log the action - AuditLogger.log_action( - user=request.user, - action='SURGICAL_CASE_STARTED', - model='SurgicalCase', - object_id=str(case.case_id), - details={ - 'patient_name': f"{case.patient.first_name} {case.patient.last_name}", - 'procedure_name': case.procedure_name - } - ) - - messages.success(request, 'Surgical case started successfully.') - - if request.headers.get('HX-Request'): - return render(request, 'operating_theatre/partials/case_status.html', {'case': case}) - - return redirect('operating_theatre:surgical_case_detail', pk=case.pk) - - return JsonResponse({'success': False}) + + # Set room status + if case.or_block and case.or_block.operating_room: + room = case.or_block.operating_room + room.status = 'OCCUPIED' + room.save(update_fields=['status']) + + messages.success(request, f'Case {case.case_number} started.') + return redirect('operating_theatre:surgical_case_list') -@login_required -def complete_case(request, case_id): +class CompleteCaseView(LoginRequiredMixin, PermissionRequiredMixin, View): """ - Complete a surgical case. + Mark an in-progress case as COMPLETED and set room to CLEANING. """ - if request.method == 'POST': - case = get_object_or_404( - SurgicalCase, - id=case_id, - tenant=request.user.tenant - ) - + permission_required = 'operating_theatre.change_surgicalcase' + + def post(self, request, pk): + case = get_object_or_404(SurgicalCase, pk=pk, admission__tenant=request.user.tenant) + if case.status != 'IN_PROGRESS': + messages.error(request, 'Only in-progress cases can be completed.') + return redirect('operating_theatre:surgical_case_list') + case.status = 'COMPLETED' - case.actual_end_time = timezone.now() + if not case.actual_end: + case.actual_end = timezone.now() case.save() - - # Update room status - if case.operating_room: - case.operating_room.status = 'CLEANING' - case.operating_room.save() - - # Log the action - AuditLogger.log_action( - user=request.user, - action='SURGICAL_CASE_COMPLETED', - model='SurgicalCase', - object_id=str(case.case_id), - details={ - 'patient_name': f"{case.patient.first_name} {case.patient.last_name}", - 'procedure_name': case.procedure_name, - 'duration': str(case.actual_end_time - case.actual_start_time) if case.actual_start_time else None - } - ) - - messages.success(request, 'Surgical case completed successfully.') - - if request.headers.get('HX-Request'): - return render(request, 'operating_theatre/partials/case_status.html', {'case': case}) - - return redirect('operating_theatre:surgical_case_detail', pk=case.pk) - - return JsonResponse({'success': False}) + + # Set room status + if case.or_block and case.or_block.operating_room: + room = case.or_block.operating_room + room.status = 'CLEANING' + room.save(update_fields=['status']) + + messages.success(request, f'Case {case.case_number} marked as completed.') + return redirect('operating_theatre:surgical_case_list') + +# @login_required +# def start_case(request, case_id): +# """ +# Start a surgical case. +# """ +# if request.method == 'POST': +# case = get_object_or_404( +# SurgicalCase, +# id=case_id, +# tenant=request.user.tenant +# ) +# +# case.status = 'IN_PROGRESS' +# case.actual_start_time = timezone.now() +# case.save() +# +# # Update room status +# if case.operating_room: +# case.operating_room.status = 'IN_USE' +# case.operating_room.save() +# +# # Log the action +# AuditLogger.log_action( +# user=request.user, +# action='SURGICAL_CASE_STARTED', +# model='SurgicalCase', +# object_id=str(case.case_id), +# details={ +# 'patient_name': f"{case.patient.first_name} {case.patient.last_name}", +# 'procedure_name': case.procedure_name +# } +# ) +# +# messages.success(request, 'Surgical case started successfully.') +# +# if request.headers.get('HX-Request'): +# return render(request, 'operating_theatre/partials/case_status.html', {'case': case}) +# +# return redirect('operating_theatre:surgical_case_detail', pk=case.pk) +# +# return JsonResponse({'success': False}) +# +# +# @login_required +# def complete_case(request, case_id): +# """ +# Complete a surgical case. +# """ +# if request.method == 'POST': +# case = get_object_or_404( +# SurgicalCase, +# id=case_id, +# tenant=request.user.tenant +# ) +# +# case.status = 'COMPLETED' +# case.actual_end_time = timezone.now() +# case.save() +# +# # Update room status +# if case.operating_room: +# case.operating_room.status = 'CLEANING' +# case.operating_room.save() +# +# # Log the action +# AuditLogger.log_action( +# user=request.user, +# action='SURGICAL_CASE_COMPLETED', +# model='SurgicalCase', +# object_id=str(case.case_id), +# details={ +# 'patient_name': f"{case.patient.first_name} {case.patient.last_name}", +# 'procedure_name': case.procedure_name, +# 'duration': str(case.actual_end_time - case.actual_start_time) if case.actual_start_time else None +# } +# ) +# +# messages.success(request, 'Surgical case completed successfully.') +# +# if request.headers.get('HX-Request'): +# return render(request, 'operating_theatre/partials/case_status.html', {'case': case}) +# +# return redirect('operating_theatre:surgical_case_detail', pk=case.pk) +# +# return JsonResponse({'success': False}) @login_required @@ -1278,7 +1377,7 @@ def sign_note(request, note_id): note.save() # Log the action - AuditLogger.log_action( + AuditLogger.log_event( user=request.user, action='SURGICAL_NOTE_SIGNED', model='SurgicalNote', @@ -1318,7 +1417,7 @@ def update_room_status(request, room_id): room.save() # Log the action - AuditLogger.log_action( + AuditLogger.log_event( user=request.user, action='OPERATING_ROOM_STATUS_UPDATED', model='OperatingRoom', @@ -2474,36 +2573,36 @@ def update_room_status(request, room_id): # return render(request, 'operating_theatre/partials/or_stats.html', {'stats': stats}) # # -# @login_required -# def case_search(request): -# """ -# HTMX endpoint for surgical case search. -# """ -# search = request.GET.get('search', '') -# status = request.GET.get('status', '') -# priority = request.GET.get('priority', '') -# -# queryset = SurgicalCase.objects.filter(tenant=request.user.tenant) -# -# if search: -# queryset = queryset.filter( -# Q(patient__first_name__icontains=search) | -# Q(patient__last_name__icontains=search) | -# Q(patient__mrn__icontains=search) | -# Q(procedure_name__icontains=search) -# ) -# -# if status: -# queryset = queryset.filter(status=status) -# -# if priority: -# queryset = queryset.filter(priority=priority) -# -# cases = queryset.select_related( -# 'patient', 'primary_surgeon', 'operating_room' -# ).order_by('-scheduled_start_time')[:20] -# -# return render(request, 'operating_theatre/partials/case_list.html', {'cases': cases}) +@login_required +def case_search(request): + """ + HTMX endpoint for surgical case search. + """ + search = request.GET.get('search', '') + status = request.GET.get('status', '') + priority = request.GET.get('priority', '') + + queryset = SurgicalCase.objects.filter(tenant=request.user.tenant) + + if search: + queryset = queryset.filter( + Q(patient__first_name__icontains=search) | + Q(patient__last_name__icontains=search) | + Q(patient__mrn__icontains=search) | + Q(procedure_name__icontains=search) + ) + + if status: + queryset = queryset.filter(status=status) + + if priority: + queryset = queryset.filter(priority=priority) + + cases = queryset.select_related( + 'patient', 'primary_surgeon', 'operating_room' + ).order_by('-scheduled_start_time')[:20] + + return render(request, 'operating_theatre/partials/case_list.html', {'cases': cases}) # # # # ============================================================================ @@ -2684,3 +2783,250 @@ def update_room_status(request, room_id): # # # + +class SurgicalNotePreviewView(LoginRequiredMixin, View): + """ + Preview a surgical note before finalizing or signing. + Allows users to review the note content in a read-only format. + """ + model = SurgicalNote + template_name = 'operating_theatre/surgical_note_preview.html' + context_object_name = 'surgical_note' + + def get_queryset(self): + return SurgicalNote.objects.filter(tenant=self.request.user.tenant) + + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + surgical_note = self.object + + # Add surgical case information + context['surgical_case'] = surgical_note.surgical_case + + # Add template information if available + if surgical_note.template: + context['template'] = surgical_note.template + + # Check if user can sign the note + context['can_sign'] = ( + surgical_note.status == 'DRAFT' and + (surgical_note.created_by == self.request.user or + self.request.user.has_perm('operating_theatre.change_surgicalnote')) + ) + + # Check if user can edit the note + context['can_edit'] = ( + surgical_note.status == 'DRAFT' and + surgical_note.created_by == self.request.user + ) + + # Add signature information + context['signatures'] = surgical_note.signatures.all().order_by('signed_at') + + # Add related equipment usage + if surgical_note.surgical_case: + context['equipment_usage'] = EquipmentUsage.objects.filter( + surgical_case=surgical_note.surgical_case, + tenant=self.request.user.tenant + ).order_by('start_time') + + return context + + +@login_required +def surgical_note_preview(request, pk): + """ + AJAX endpoint for surgical note preview modal. + Returns rendered preview content for modal display. + """ + surgical_note = get_object_or_404( + SurgicalNote, + id=pk, + tenant=request.user.tenant + ) + + context = { + 'surgical_note': surgical_note, + 'surgical_case': surgical_note.surgical_case, + 'template': surgical_note.template_used, + 'signatures': surgical_note.signatures.all().order_by('signed_at'), + 'can_sign': ( + surgical_note.status == 'DRAFT' and + (surgical_note.surgeon == request.user or + request.user.has_perm('operating_theatre.change_surgicalnote')) + ), + 'can_edit': ( + surgical_note.status == 'DRAFT' and + surgical_note.surgeon == request.user + ), + } + + # Add equipment usage if available + if surgical_note.surgical_case: + context['equipment_usage'] = EquipmentUsage.objects.filter( + surgical_case=surgical_note.surgical_case, + tenant=request.user.tenant + ).order_by('start_time') + + return render(request, 'operating_theatre/partials/surgical_note_preview_modal.html', context) + + +def _parse_start(payload): + """ + Accepts either: + - payload['scheduled_start'] as ISO datetime string, or + - payload['date'] ('YYYY-MM-DD') + payload['start_time'] ('HH:MM' 24h) + Returns an aware datetime in the current timezone, or None. + """ + tz = timezone.get_current_timezone() + + # Prefer unified datetime + if payload.get("scheduled_start"): + dt = parse_datetime(payload["scheduled_start"]) + if dt is not None and timezone.is_naive(dt): + dt = timezone.make_aware(dt, tz) + return dt + + # Fallback: date + time + d = parse_date(payload.get("date") or "") + t = parse_time(payload.get("start_time") or "") + if d and t: + naive = timezone.datetime.combine(d, t) + return timezone.make_aware(naive, tz) + return None + + +@login_required +@require_POST +def check_room_availability(request): + """ + POST JSON: + { + "room_id": , + "duration": , + "scheduled_start": "YYYY-MM-DDTHH:MM[:SS]", + // OR: + "date": "YYYY-MM-DD", + "start_time": "HH:MM", + // Optional: + "case_id": + } + """ + # ---- Parse JSON body + try: + payload = json.loads(request.body.decode("utf-8")) + except Exception: + return HttpResponseBadRequest("Invalid JSON payload") + + room_id = payload.get("room_id") + duration = payload.get("duration") + case_id = payload.get("case_id") + + if not room_id or duration is None: + return HttpResponseBadRequest("room_id and duration are required") + + try: + duration = int(duration) + if duration <= 0: + raise ValueError + except ValueError: + return HttpResponseBadRequest("duration must be a positive integer (minutes)") + + start_dt = _parse_start(payload) + if start_dt is None: + return HttpResponseBadRequest( + "Provide either 'scheduled_start' (ISO) or 'date' + 'start_time'" + ) + + # ---- Tenant scope & room checks + room = get_object_or_404( + OperatingRoom.objects.select_related("tenant"), + pk=room_id, + tenant=request.user.tenant, + ) + + # If room is not usable, return fast + if not room.is_active: + return JsonResponse({ + "available": False, + "conflict_reason": "Room is inactive", + "conflicts": [], + }) + + if room.status in ("OUT_OF_ORDER", "MAINTENANCE", "CLOSED"): + return JsonResponse({ + "available": False, + "conflict_reason": f"Room status is {room.get_status_display()}", + "conflicts": [], + }) + + end_dt = start_dt + timedelta(minutes=duration) + + # ---- Find potentially overlapping cases + # We’ll fetch a reasonable window (same day +/- 1 day buffer) to reduce DB load, then check overlap in Python. + day_start = timezone.make_aware( + datetime.combine(start_dt.date(), datetime.min.time()), + timezone.get_current_timezone() + ) + day_end = day_start + timedelta(days=2) # small buffer to capture cross-midnight or long cases + + qs = SurgicalCase.objects.filter( + operating_room=room, + ).exclude( + status__in=["CANCELLED"] # adjust based on your enum + ) + + if case_id: + qs = qs.exclude(pk=case_id) + + # Try to use the most stable datetime field name(s) you’re using across the app: + # We saw both 'scheduled_start_time' and 'scheduled_start' in your templates; handle both. + # Pull candidates that start within the window or could overlap it. + # We'll just fetch cases for the surrounding window by their scheduled start field(s). + candidates = qs.filter( + Q(scheduled_start_time__gte=day_start, scheduled_start_time__lte=day_end) + | Q(scheduled_start__gte=day_start, scheduled_start__lte=day_end) + ).select_related("patient") + + conflicts = [] + for c in candidates: + # Determine the other case's start & duration field names robustly + other_start = getattr(c, "scheduled_start", None) or getattr(c, "scheduled_start_time", None) + if other_start is None: + continue + + other_duration = ( + getattr(c, "estimated_duration", None) + or getattr(c, "estimated_duration_minutes", None) + or 120 # sane default if not set + ) + try: + other_duration = int(other_duration) + except Exception: + other_duration = 120 + + other_end = other_start + timedelta(minutes=other_duration) + + # Check overlap: [start_dt, end_dt) intersects [other_start, other_end) + if (start_dt < other_end) and (end_dt > other_start): + conflicts.append({ + "id": c.pk, + "patient": getattr(c.patient, "get_full_name", lambda: str(c.patient))(), + "start": timezone.localtime(other_start).strftime("%Y-%m-%d %H:%M"), + "end": timezone.localtime(other_end).strftime("%Y-%m-%d %H:%M"), + "status": getattr(c, "status", "UNKNOWN"), + }) + + if conflicts: + return JsonResponse({ + "available": False, + "conflict_reason": "Overlaps existing case", + "conflicts": conflicts, + }) + + # No overlaps found + return JsonResponse({ + "available": True, + "conflict_reason": "", + "conflicts": [], + }) \ No newline at end of file diff --git a/or_data.py b/or_data.py index 7bda8dd9..167a31df 100644 --- a/or_data.py +++ b/or_data.py @@ -1,866 +1,1292 @@ +# """ +# Saudi-influenced data generator for Operating Theatre models. +# Generates realistic test data with Saudi Arabian healthcare context using English. +# +# Save this file as: operating_theatre/management/commands/generate_saudi_or_data.py +# """ +# +# import random +# from datetime import datetime, timedelta +# from decimal import Decimal +# from django.core.management.base import BaseCommand +# from django.contrib.auth import get_user_model +# from django.utils import timezone +# from faker import Faker +# from faker.providers import BaseProvider +# +# from core.models import Tenant, Department +# from accounts.models import User +# from patients.models import PatientProfile +# from operating_theatre.models import ( +# OperatingRoom, ORBlock, SurgicalCase, SurgicalNote, +# EquipmentUsage, SurgicalNoteTemplate +# ) +# +# User = get_user_model() +# +# # Custom Saudi provider for Faker +# class SaudiProvider(BaseProvider): +# """Custom provider for Saudi Arabian healthcare data in English.""" +# +# # Saudi male names (transliterated to English) +# saudi_male_first_names = [ +# 'Mohammed', 'Ahmed', 'Abdullah', 'Abdulrahman', 'Ali', 'Khalid', 'Saad', 'Fahd', 'Abdulaziz', +# 'Sultan', 'Turki', 'Bandar', 'Nawaf', 'Mishaal', 'Faisal', 'Salman', 'Abdulmajeed', 'Yasser', +# 'Omar', 'Hussam', 'Talal', 'Waleed', 'Majed', 'Rashid', 'Sami', 'Hisham', 'Adel', 'Kareem', +# 'Nasser', 'Mansour', 'Hamad', 'Badr', 'Zaid', 'Yazeed', 'Rayan', 'Osama', 'Tariq', 'Mazen' +# ] +# +# # Saudi female names (transliterated to English) +# saudi_female_first_names = [ +# 'Fatimah', 'Aisha', 'Khadijah', 'Maryam', 'Zainab', 'Sarah', 'Nora', 'Hind', 'Lateefah', 'Mona', +# 'Amal', 'Salma', 'Reem', 'Dana', 'Lina', 'Rana', 'Haya', 'Jawaher', 'Shahd', 'Ghada', +# 'Raghad', 'Asma', 'Hanan', 'Wafa', 'Iman', 'Samira', 'Nadia', 'Abeer', 'Suad', 'Layla', +# 'Nouf', 'Rania', 'Dina', 'Rima', 'Najla', 'Arwa', 'Lamya', 'Thuraya', 'Widad', 'Amina' +# ] +# +# # Saudi family names (transliterated) +# saudi_family_names = [ +# 'Al Saud', 'Al Otaibi', 'Al Qahtani', 'Al Ghamdi', 'Al Zahrani', 'Al Shehri', 'Al Anzi', 'Al Harbi', +# 'Al Mutairi', 'Al Dosari', 'Al Khalidi', 'Al Subaie', 'Al Rashid', 'Al Baqmi', 'Al Juhani', 'Al Asiri', +# 'Al Faisal', 'Al Maliki', 'Al Shammari', 'Al Balawi', 'Al Saadi', 'Al Thaqafi', 'Al Ahmadi', 'Al Salmi', +# 'Al Hasani', 'Al Omari', 'Al Fahd', 'Al Nuaimi', 'Al Rajhi', 'Al Olayan', 'Al Sudairi', 'Al Tamimi', +# 'Bin Laden', 'Bin Mahfouz', 'Al Amoudi', 'Al Gosaibi', 'Al Zamil', 'Al Juffali', 'Al Hokair' +# ] +# +# # Saudi cities +# saudi_cities = [ +# 'Riyadh', 'Jeddah', 'Mecca', 'Medina', 'Dammam', 'Khobar', 'Taif', +# 'Buraidah', 'Tabuk', 'Khamis Mushait', 'Hail', 'Jubail', 'Al Ahsa', 'Najran', 'Yanbu', +# 'Abha', 'Arar', 'Sakaka', 'Jazan', 'Qatif', 'Al Bahah', 'Rafha', 'Wadi Al Dawasir', +# 'Al Kharj', 'Hafar Al Batin', 'Al Qunfudhah', 'Unaizah', 'Al Majmaah', 'Dhahran' +# ] +# +# # Medical specialties +# medical_specialties = [ +# 'General Surgery', 'Cardiac Surgery', 'Neurosurgery', 'Orthopedic Surgery', 'Plastic Surgery', +# 'Urology', 'Pediatric Surgery', 'Vascular Surgery', 'Thoracic Surgery', 'Ophthalmology', +# 'ENT Surgery', 'Gynecology', 'Emergency Medicine', 'Anesthesiology', 'Radiology' +# ] +# +# # Common surgical procedures +# surgical_procedures = [ +# 'Laparoscopic Cholecystectomy', 'Appendectomy', 'Inguinal Hernia Repair', +# 'Thyroidectomy', 'Open Heart Surgery', 'Cardiac Catheterization', 'Knee Replacement', +# 'Hip Replacement', 'Mastectomy', 'Cataract Surgery', 'Tonsillectomy', 'Septoplasty', +# 'Hysterectomy', 'Cesarean Section', 'Prostatectomy', 'Lumbar Spine Surgery', +# 'Discectomy', 'Rhinoplasty', 'Liposuction', 'Hair Transplant', 'Kidney Stone Removal', +# 'Varicose Vein Surgery', 'Coronary Artery Bypass', 'Angioplasty', 'Gallbladder Surgery' +# ] +# +# # Medical equipment names +# medical_equipment = [ +# 'Ventilator', 'Cardiac Monitor', 'Defibrillator', 'Laparoscope', +# 'Endoscope', 'Portable X-Ray', 'Infusion Pump', 'Blood Pressure Monitor', +# 'Ultrasound Machine', 'Electrocautery Unit', 'Surgical Laser', +# 'Arthroscope', 'Dialysis Machine', 'Incubator', 'Physical Therapy Equipment', +# 'CT Scanner', 'MRI Machine', 'Anesthesia Machine', 'Operating Microscope' +# ] +# +# # Hospital departments +# hospital_departments = [ +# 'Emergency Department', 'Surgery Department', 'Internal Medicine', 'Pediatrics', 'Obstetrics & Gynecology', +# 'Orthopedics', 'Cardiology', 'Neurology', 'Ophthalmology', 'ENT Department', +# 'Dermatology', 'Psychiatry', 'Radiology', 'Laboratory', 'Pharmacy', +# 'Intensive Care Unit', 'Operating Theater', 'Outpatient Clinic' +# ] +# +# # Saudi hospital names +# saudi_hospitals = [ +# 'King Fahd University Hospital', 'King Khalid University Hospital', 'King Abdulaziz Medical City', +# 'King Faisal Specialist Hospital', 'Prince Sultan Military Medical City', 'King Saud Medical City', +# 'National Guard Health Affairs', 'Saudi German Hospital', 'Dr. Sulaiman Al Habib Medical Group', +# 'Dallah Healthcare', 'Mouwasat Medical Services', 'Al Hammadi Hospital' +# ] +# +# def saudi_male_name(self): +# """Generate a Saudi male name.""" +# first_name = self.random_element(self.saudi_male_first_names) +# family_name = self.random_element(self.saudi_family_names) +# return f"{first_name} {family_name}" +# +# def saudi_female_name(self): +# """Generate a Saudi female name.""" +# first_name = self.random_element(self.saudi_female_first_names) +# family_name = self.random_element(self.saudi_family_names) +# return f"{first_name} {family_name}" +# +# def saudi_city(self): +# """Generate a Saudi city name.""" +# return self.random_element(self.saudi_cities) +# +# def medical_specialty(self): +# """Generate a medical specialty.""" +# return self.random_element(self.medical_specialties) +# +# def surgical_procedure(self): +# """Generate a surgical procedure name.""" +# return self.random_element(self.surgical_procedures) +# +# def medical_equipment_name(self): +# """Generate medical equipment name.""" +# return self.random_element(self.medical_equipment) +# +# def hospital_department(self): +# """Generate hospital department name.""" +# return self.random_element(self.hospital_departments) +# +# def saudi_hospital_name(self): +# """Generate Saudi hospital name.""" +# return self.random_element(self.saudi_hospitals) +# +# def saudi_national_id(self): +# """Generate a Saudi national ID (10 digits starting with 1 or 2).""" +# first_digit = random.choice(['1', '2']) # 1 for Saudi, 2 for resident +# remaining_digits = ''.join([str(random.randint(0, 9)) for _ in range(9)]) +# return first_digit + remaining_digits +# +# def saudi_phone_number(self): +# """Generate a Saudi phone number.""" +# prefixes = ['050', '053', '054', '055', '056', '057', '058', '059'] +# prefix = random.choice(prefixes) +# number = ''.join([str(random.randint(0, 9)) for _ in range(7)]) +# return f"+966{prefix[1:]}{number}" +# +# def saudi_medical_license(self): +# """Generate Saudi medical license number.""" +# return f"SCFHS-{random.randint(10000, 99999)}" +# +# +# class Command(BaseCommand): +# help = 'Generate Saudi-influenced test data for Operating Theatre models' +# +# def __init__(self): +# super().__init__() +# self.fake = Faker(['en_US']) +# self.fake.add_provider(SaudiProvider) +# +# def add_arguments(self, parser): +# parser.add_argument( +# '--rooms', +# type=int, +# default=12, +# help='Number of operating rooms to create' +# ) +# parser.add_argument( +# '--cases', +# type=int, +# default=75, +# help='Number of surgical cases to create' +# ) +# parser.add_argument( +# '--notes', +# type=int, +# default=50, +# help='Number of surgical notes to create' +# ) +# parser.add_argument( +# '--templates', +# type=int, +# default=20, +# help='Number of surgical note templates to create' +# ) +# parser.add_argument( +# '--blocks', +# type=int, +# default=30, +# help='Number of OR blocks to create' +# ) +# parser.add_argument( +# '--equipment', +# type=int, +# default=60, +# help='Number of equipment usage records to create' +# ) +# parser.add_argument( +# '--tenant', +# type=str, +# default=None, +# help='Tenant name (will use random Saudi hospital if not provided)' +# ) +# +# def handle(self, *args, **options): +# self.stdout.write( +# self.style.SUCCESS('Starting Saudi-influenced Operating Theatre data generation...') +# ) +# +# # Get or create tenant +# tenant_name = options['tenant'] or self.fake.saudi_hospital_name() +# tenant = self.get_or_create_tenant(tenant_name) +# +# # Create users (doctors, nurses, etc.) +# users = self.create_users(tenant) +# +# # Create patients +# patients = self.create_patients(tenant) +# +# # Create operating rooms +# operating_rooms = self.create_operating_rooms(tenant, options['rooms']) +# +# # Create surgical note templates +# templates = self.create_surgical_note_templates(tenant, users, options['templates']) +# +# # Create OR blocks +# or_blocks = self.create_or_blocks(tenant, operating_rooms, users, options['blocks']) +# +# # Create surgical cases +# surgical_cases = self.create_surgical_cases( +# tenant, patients, users, operating_rooms, options['cases'] +# ) +# +# # Create surgical notes +# surgical_notes = self.create_surgical_notes( +# tenant, surgical_cases, users, templates, options['notes'] +# ) +# +# # Create equipment usage records +# equipment_usage = self.create_equipment_usage( +# tenant, surgical_cases, operating_rooms, options['equipment'] +# ) +# +# self.stdout.write( +# self.style.SUCCESS( +# f'Successfully generated Saudi-influenced data:\n' +# f'- {len(operating_rooms)} Operating Rooms\n' +# f'- {len(surgical_cases)} Surgical Cases\n' +# f'- {len(surgical_notes)} Surgical Notes\n' +# f'- {len(templates)} Note Templates\n' +# f'- {len(or_blocks)} OR Blocks\n' +# f'- {len(equipment_usage)} Equipment Usage Records\n' +# f'- Tenant: {tenant.name}' +# ) +# ) +# +# def get_or_create_tenant(self, tenant_name): +# """Get or create tenant.""" +# slug = tenant_name.lower().replace(' ', '-').replace('&', 'and') +# tenant, created = Tenant.objects.get_or_create( +# name=tenant_name, +# defaults={ +# 'slug': slug, +# 'is_active': True, +# 'subscription_plan': 'enterprise', +# 'max_users': 1000, +# 'country': 'Saudi Arabia', +# 'timezone': 'Asia/Riyadh' +# } +# ) +# if created: +# self.stdout.write(f'Created tenant: {tenant_name}') +# return tenant +# +# +# def create_users(self, tenant): +# """Create medical staff users with Saudi names.""" +# users = [] +# +# # Create surgeons +# for i in range(20): +# gender = random.choice(["M", "F"]) +# if gender == "M": +# full_name = self.fake.saudi_male_name() +# else: +# full_name = self.fake.saudi_female_name() +# +# name_parts = full_name.split() +# first_name = name_parts[0] +# last_name = " ".join(name_parts[1:]) if len(name_parts) > 1 else name_parts[0] +# +# username = f"dr_{first_name.lower()}_{i}" +# email = f"{username}@{tenant.slug}.sa" +# +# user = User.objects.create_user( +# username=username, +# email=email, +# first_name=first_name, +# last_name=last_name, +# tenant=tenant, +# is_active=True +# ) +# +# # Create user profile +# User.objects.create( +# user=user, +# title="Dr." if gender == "M" else "Dr.", +# specialty=self.fake.medical_specialty(), +# license_number=self.fake.saudi_medical_license(), +# phone_number=self.fake.saudi_phone_number(), +# department=self.fake.hospital_department(), +# is_verified=True, +# years_of_experience=random.randint(3, 25), +# education=f"MD from King Saud University, {random.choice(["Fellowship", "Residency"])} in {self.fake.medical_specialty()}" +# ) +# +# users.append(user) +# +# # Create anesthesiologists +# for i in range(10): +# gender = random.choice(["M", "F"]) +# if gender == "M": +# full_name = self.fake.saudi_male_name() +# else: +# full_name = self.fake.saudi_female_name() +# +# name_parts = full_name.split() +# first_name = name_parts[0] +# last_name = " ".join(name_parts[1:]) if len(name_parts) > 1 else name_parts[0] +# +# username = f"anesth_{first_name.lower()}_{i}" +# email = f"{username}@{tenant.slug}.sa" +# +# user = User.objects.create_user( +# username=username, +# email=email, +# first_name=first_name, +# last_name=last_name, +# tenant=tenant, +# is_active=True +# ) +# +# User.objects.create( +# user=user, +# title="Dr.", +# specialty="Anesthesiology", +# license_number=self.fake.saudi_medical_license(), +# phone_number=self.fake.saudi_phone_number(), +# department="Anesthesia Department", +# is_verified=True, +# years_of_experience=random.randint(5, 20), +# education=f"MD from {random.choice(["King Saud University", "King Abdulaziz University", "Imam Abdulrahman Bin Faisal University"])}" +# ) +# +# users.append(user) +# +# self.stdout.write(f"Created {len(users)} medical staff users with Saudi names") +# return users +# +# +# def create_patients(self, tenant): +# """Create patient records with Saudi demographics.""" +# patients = [] +# +# for i in range(150): +# gender = random.choice(["M", "F"]) +# if gender == "M": +# full_name = self.fake.saudi_male_name() +# else: +# full_name = self.fake.saudi_female_name() +# +# name_parts = full_name.split() +# first_name = name_parts[0] +# last_name = " ".join(name_parts[1:]) if len(name_parts) > 1 else name_parts[0] +# +# birth_date = self.fake.date_of_birth(minimum_age=1, maximum_age=85) +# +# patient = PatientProfile.objects.create( +# tenant=tenant, +# medical_record_number=f"MRN{random.randint(100000, 999999)}", +# first_name=first_name, +# last_name=last_name, +# date_of_birth=birth_date, +# gender=gender, +# national_id=self.fake.saudi_national_id(), +# phone_number=self.fake.saudi_phone_number(), +# email=f"patient{i}@email.com", +# address=f"{self.fake.street_address()}, {self.fake.saudi_city()}, Saudi Arabia", +# emergency_contact_name=self.fake.saudi_male_name() if random.choice( +# [True, False]) else self.fake.saudi_female_name(), +# emergency_contact_phone=self.fake.saudi_phone_number(), +# blood_type=random.choice(["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-"]), +# nationality="Saudi Arabian" if random.random() > 0.3 else random.choice( +# ["Egyptian", "Pakistani", "Indian", "Bangladeshi", "Filipino"]), +# is_active=True +# ) +# +# patients.append(patient) +# +# self.stdout.write(f"Created {len(patients)} patients with Saudi demographics") +# return patients +# +# +# def create_operating_rooms(self, tenant, count): +# """Create operating rooms with Saudi hospital context.""" +# operating_rooms = [] +# +# room_types = [ +# ("GENERAL", "General Surgery OR"), +# ("CARDIAC", "Cardiac Surgery OR"), +# ("NEURO", "Neurosurgery OR"), +# ("ORTHOPEDIC", "Orthopedic Surgery OR"), +# ("PEDIATRIC", "Pediatric Surgery OR"), +# ("TRAUMA", "Trauma Surgery OR"), +# ("OPHTHALMOLOGY", "Eye Surgery OR"), +# ("ENT", "ENT Surgery OR") +# ] +# +# floors = ["2nd Floor - Surgical Wing", "3rd Floor - Cardiac Wing", "4th Floor - Specialty Wing"] +# +# for i in range(1, count + 1): +# room_type, room_name = random.choice(room_types) +# +# operating_room = OperatingRoom.objects.create( +# tenant=tenant, +# room_number=f"OR-{i:02d}", +# room_name=f"{room_name} {i}", +# room_type=room_type, +# floor=random.randint(2, 5), +# location=random.choice(floors), +# capacity=random.randint(10, 18), +# status=random.choice(["AVAILABLE", "IN_USE", "MAINTENANCE", "CLEANING"]), +# equipment_list=f"Ventilator, Cardiac Monitor, {self.fake.medical_equipment_name()}, Anesthesia Machine", +# special_requirements=f"Special requirements for {room_name.lower()}", +# is_active=True, +# last_maintenance=timezone.now().date() - timedelta(days=random.randint(1, 30)), +# next_maintenance=timezone.now().date() + timedelta(days=random.randint(30, 90)) +# ) +# +# operating_rooms.append(operating_room) +# +# self.stdout.write(f"Created {count} operating rooms") +# return operating_rooms +# +# +# def create_surgical_note_templates(self, tenant, users, count): +# """Create surgical note templates for common Saudi procedures.""" +# templates = [] +# +# specialties = [ +# "General Surgery", "Cardiac Surgery", "Neurosurgery", "Orthopedic Surgery", +# "Plastic Surgery", "Urology", "Pediatric Surgery", "Ophthalmology" +# ] +# +# for i in range(count): +# specialty = random.choice(specialties) +# procedure = self.fake.surgical_procedure() +# +# template = SurgicalNoteTemplate.objects.create( +# tenant=tenant, +# template_name=f"{procedure} Template", +# procedure_type=procedure, +# specialty=specialty, +# pre_operative_diagnosis_template=f"Pre-operative diagnosis for {procedure}", +# post_operative_diagnosis_template=f"Post-operative diagnosis following {procedure}", +# procedure_template=f"Detailed description of {procedure} procedure", +# findings_template=f"Expected findings for {procedure}", +# technique_template=f"Surgical technique used in {procedure}", +# complications_template="No complications noted", +# instructions_template=f"Post-operative instructions for {procedure}", +# created_by=random.choice(users), +# is_active=True, +# version=f"v{random.randint(1, 5)}.{random.randint(0, 9)}" +# ) +# +# templates.append(template) +# +# self.stdout.write(f"Created {count} surgical note templates") +# return templates +# +# +# def create_or_blocks(self, tenant, operating_rooms, users, count): +# """Create OR blocks (time slots) with Saudi working hours.""" +# or_blocks = [] +# +# # Saudi working hours: typically 7 AM to 3 PM for morning shift, 3 PM to 11 PM for evening +# working_hours = [ +# (7, 15), # Morning shift +# (15, 23), # Evening shift +# ] +# +# for i in range(count): +# start_date = timezone.now().date() + timedelta(days=random.randint(-15, 45)) +# shift_start, shift_end = random.choice(working_hours) +# +# start_hour = random.randint(shift_start, shift_end - 4) +# start_time = timezone.make_aware( +# datetime.combine(start_date, datetime.min.time().replace( +# hour=start_hour, +# minute=random.choice([0, 30]) +# )) +# ) +# end_time = start_time + timedelta(hours=random.randint(2, 6)) +# +# or_block = ORBlock.objects.create( +# tenant=tenant, +# operating_room=random.choice(operating_rooms), +# date=start_date, +# start_time=start_time.time(), +# end_time=end_time.time(), +# assigned_surgeon=random.choice(users), +# block_type=random.choice(["ELECTIVE", "EMERGENCY", "URGENT"]), +# specialty=self.fake.medical_specialty(), +# notes=f"OR Block {i + 1} - {self.fake.medical_specialty()}", +# is_active=True, +# utilization_rate=random.randint(70, 100) +# ) +# +# or_blocks.append(or_block) +# +# self.stdout.write(f"Created {count} OR blocks") +# return or_blocks +# +# +# def create_surgical_cases(self, tenant, patients, users, operating_rooms, count): +# """Create surgical cases with Saudi medical context.""" +# surgical_cases = [] +# +# priorities = ["ROUTINE", "URGENT", "EMERGENCY"] +# statuses = ["SCHEDULED", "IN_PROGRESS", "COMPLETED", "CANCELLED", "POSTPONED"] +# +# # Weight the statuses to be more realistic +# status_weights = [0.4, 0.1, 0.4, 0.05, 0.05] +# +# for i in range(count): +# scheduled_start = timezone.now() + timedelta( +# days=random.randint(-30, 30), +# hours=random.randint(7, 20), +# minutes=random.choice([0, 15, 30, 45]) +# ) +# +# status = random.choices(statuses, weights=status_weights)[0] +# actual_start = None +# actual_end = None +# +# if status in ["IN_PROGRESS", "COMPLETED"]: +# actual_start = scheduled_start + timedelta(minutes=random.randint(-15, 45)) +# +# if status == "COMPLETED": +# duration_hours = random.randint(1, 8) +# actual_end = actual_start + timedelta( +# hours=duration_hours, +# minutes=random.randint(0, 59) +# ) +# +# procedure = self.fake.surgical_procedure() +# priority = random.choices(priorities, weights=[0.7, 0.2, 0.1])[0] +# +# # Create case number with Saudi format +# case_number = f"CASE-{tenant.slug.upper()}-{timezone.now().year}-{i + 1:05d}" +# +# surgical_case = SurgicalCase.objects.create( +# tenant=tenant, +# case_number=case_number, +# patient=random.choice(patients), +# primary_surgeon=random.choice(users), +# anesthesiologist=random.choice(users), +# operating_room=random.choice(operating_rooms), +# procedure_name=procedure, +# scheduled_start_time=scheduled_start, +# scheduled_end_time=scheduled_start + timedelta(hours=random.randint(2, 8)), +# actual_start_time=actual_start, +# actual_end_time=actual_end, +# priority=priority, +# status=status, +# diagnosis=f"Diagnosis requiring {procedure}", +# notes=f"Surgical case notes for {procedure} - Patient from {self.fake.saudi_city()}", +# estimated_duration=timedelta(hours=random.randint(2, 6)), +# is_emergency=(priority == "EMERGENCY"), +# insurance_type=random.choice(["Government", "Private", "Self-Pay", "Company Insurance"]), +# consent_obtained=True if status != "SCHEDULED" else random.choice([True, False]) +# ) +# +# surgical_cases.append(surgical_case) +# +# self.stdout.write(f"Created {count} surgical cases") +# return surgical_cases +# +# +# def create_surgical_notes(self, tenant, surgical_cases, users, templates, count): +# """Create surgical notes with Saudi medical documentation standards.""" +# surgical_notes = [] +# +# # Only create notes for completed or in-progress cases +# eligible_cases = [case for case in surgical_cases if case.status in ["COMPLETED", "IN_PROGRESS"]] +# +# for i in range(min(count, len(eligible_cases))): +# case = eligible_cases[i] +# template = random.choice(templates) if templates and random.random() > 0.3 else None +# +# # Create realistic surgical note content +# complications = "No complications noted" if random.random() > 0.15 else random.choice([ +# "Minor bleeding controlled with electrocautery", +# "Slight tissue adhesions noted and carefully dissected", +# "Temporary hypotension managed with fluids" +# ]) +# +# surgical_note = SurgicalNote.objects.create( +# tenant=tenant, +# surgical_case=case, +# template=template, +# pre_operative_diagnosis=f"Pre-operative diagnosis: {case.diagnosis}", +# post_operative_diagnosis=f"Post-operative diagnosis: Successful {case.procedure_name}", +# procedure_performed=f"{case.procedure_name} performed according to standard protocol at {tenant.name}", +# operative_findings=f"Surgical findings: Procedure completed successfully without major complications", +# technique=f"Standard technique used for {case.procedure_name} with modern equipment", +# complications=complications, +# post_operative_instructions=f"Post-operative care instructions for {case.procedure_name} - Follow up in 1-2 weeks", +# additional_notes=f"Additional notes for case {case.case_number} - Patient tolerated procedure well", +# created_by=case.primary_surgeon, +# status=random.choices(["DRAFT", "SIGNED", "FINALIZED"], weights=[0.2, 0.3, 0.5])[0], +# signed_at=timezone.now() - timedelta(hours=random.randint(1, 48)) if random.choice([True, False]) else None, +# dictation_time=random.randint(15, 45), # minutes +# transcription_time=random.randint(30, 90) # minutes +# ) +# +# surgical_notes.append(surgical_note) +# +# self.stdout.write(f"Created {len(surgical_notes)} surgical notes") +# return surgical_notes +# +# +# def create_equipment_usage(self, tenant, surgical_cases, operating_rooms, count): +# """Create equipment usage records with Saudi hospital equipment.""" +# equipment_usage_records = [] +# +# equipment_names = [ +# "Ventilator Model SV-300", "Cardiac Monitor CM-2000", "Defibrillator DF-500", +# "Laparoscope HD-Pro", "Electrocautery Unit ECU-400", "Ultrasound Machine US-Elite", +# "Infusion Pump IP-Smart", "Blood Pressure Monitor BPM-Digital", "Surgical Laser SL-2000", +# "Anesthesia Machine AM-Pro", "Operating Microscope OM-HD", "Arthroscope AS-Flex" +# ] +# +# statuses = ["IN_USE", "COMPLETED", "MAINTENANCE", "AVAILABLE"] +# status_weights = [0.15, 0.6, 0.1, 0.15] +# +# for i in range(count): +# case = random.choice(surgical_cases) +# equipment_name = random.choice(equipment_names) +# +# start_time = case.actual_start_time or case.scheduled_start_time +# end_time = None +# status = random.choices(statuses, weights=status_weights)[0] +# +# if status == "COMPLETED" and case.actual_end_time: +# end_time = case.actual_end_time +# elif status == "IN_USE": +# end_time = None +# else: +# end_time = start_time + timedelta(hours=random.randint(1, 6)) +# +# # Generate Saudi equipment serial numbers +# serial_prefix = random.choice(["KSA", "RYD", "JED", "DMM"]) +# serial_number = f"{serial_prefix}-{random.randint(1000, 9999)}" +# +# equipment_usage = EquipmentUsage.objects.create( +# tenant=tenant, +# surgical_case=case, +# operating_room=case.operating_room, +# equipment_name=equipment_name, +# equipment_serial=serial_number, +# start_time=start_time, +# end_time=end_time, +# status=status, +# notes=f"Equipment usage for {case.procedure_name} - {equipment_name}", +# maintenance_required=random.choice([True, False]), +# operator_name=case.primary_surgeon.get_full_name(), +# usage_duration=end_time - start_time if end_time else None +# ) +# +# equipment_usage_records.append(equipment_usage) +# +# self.stdout.write(f"Created {count} equipment usage records") +# return equipment_usage_records +# +# + + """ -Saudi-influenced Operating Theatre Data Generator -Generates realistic test data for hospital operating room management system -with Saudi Arabian cultural context and medical practices. +Operating Theatre Data Generator +Generates realistic test data for operating theatre models in Saudi hospital context. +Uses existing tenants, users, and patients from the database. """ +import os +import django + +# Set up Django environment +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hospital_management.settings') +django.setup() import random import uuid -from datetime import datetime, timedelta, date, time +from datetime import datetime, date, time, timedelta from decimal import Decimal -from faker import Faker -from typing import List, Dict, Any, Optional +from django.utils import timezone +from django.contrib.auth import get_user_model -# Initialize Faker -fake = Faker('en_US') +# Import models +from operating_theatre.models import ( + OperatingRoom, ORBlock, SurgicalCase, SurgicalNote, + EquipmentUsage, SurgicalNoteTemplate +) +from core.models import Tenant +from patients.models import PatientProfile +from emr.models import Encounter +from inpatients.models import Admission + +User = get_user_model() -class SaudiOperatingTheatreDataGenerator: - """ - Generates Saudi-influenced data for Operating Theatre models. - """ - - # Saudi hospital names (in English) - SAUDI_HOSPITALS = [ - "King Faisal Specialist Hospital", - "King Fahad Medical City", - "King Abdulaziz University Hospital", - "King Khaled Eye Specialist Hospital", - "Prince Sultan Military Medical City", - "King Abdullah Medical Complex", - "King Saud Medical City", - "National Guard Hospital", - "Prince Mohammed Bin Abdulaziz Hospital", - "King Salman Hospital", - "Security Forces Hospital", - "Aramco Medical Center", - "Dr. Sulaiman Al Habib Medical Group", - "Saudi German Hospital", - "International Medical Center" - ] - - # Saudi cities - SAUDI_CITIES = [ - "Riyadh", "Jeddah", "Mecca", "Medina", "Dammam", - "Khobar", "Dhahran", "Taif", "Tabuk", "Buraidah", - "Khamis Mushait", "Hofuf", "Jubail", "Yanbu", "Abha", - "Najran", "Jizan", "Hail", "Al-Qassim", "Qatif" - ] - - # Saudi regions - SAUDI_REGIONS = [ - "Riyadh Region", "Makkah Region", "Eastern Province", - "Asir Region", "Madinah Region", "Qassim Region", - "Tabuk Region", "Hail Region", "Northern Borders", - "Jazan Region", "Najran Region", "Al-Baha Region" - ] - - # Common Saudi male first names - SAUDI_MALE_FIRST_NAMES = [ - "Mohammed", "Abdullah", "Abdulrahman", "Khalid", "Fahad", - "Sultan", "Salman", "Saud", "Faisal", "Turki", "Ahmed", - "Omar", "Youssef", "Ibrahim", "Hamad", "Nasser", "Bandar", - "Mansour", "Majed", "Waleed", "Talal", "Rakan", "Yazeed", - "Meshal", "Naif", "Abdulaziz", "Saad", "Ali", "Hassan" - ] - - # Common Saudi female first names - SAUDI_FEMALE_FIRST_NAMES = [ - "Nora", "Fatima", "Aisha", "Mariam", "Sarah", "Reem", - "Lama", "Hind", "Mona", "Amal", "Dalal", "Jawaher", - "Latifa", "Hessa", "Nouf", "Asma", "Khadija", "Layla", - "Rana", "Dina", "Hala", "Salma", "Yasmin", "Zainab", - "Lubna", "Hanaa", "Samira", "Najla", "Afaf", "Ghada" - ] - - # Common Saudi family names - SAUDI_FAMILY_NAMES = [ - "Al-Saud", "Al-Rasheed", "Al-Qahtani", "Al-Otaibi", "Al-Dossari", - "Al-Harbi", "Al-Zahrani", "Al-Ghamdi", "Al-Shehri", "Al-Asmari", - "Al-Mutairi", "Al-Enezi", "Al-Shamari", "Al-Maliki", "Al-Johani", - "Al-Subaie", "Al-Hajri", "Al-Khaldi", "Al-Turki", "Al-Obaid", - "Al-Hassan", "Al-Sheikh", "Al-Najjar", "Al-Omari", "Al-Bakri" - ] - - # Medical specialties common in Saudi Arabia - MEDICAL_SPECIALTIES = [ - "General Surgery", "Cardiac Surgery", "Neurosurgery", - "Orthopedic Surgery", "Pediatric Surgery", "Vascular Surgery", - "Thoracic Surgery", "Plastic Surgery", "Bariatric Surgery", - "Transplant Surgery", "Ophthalmology", "ENT Surgery", - "Urology", "Obstetrics", "Maxillofacial Surgery" - ] - - # Common surgical procedures in Saudi context - SURGICAL_PROCEDURES = { - "GENERAL": [ - "Laparoscopic Cholecystectomy", - "Appendectomy", - "Hernia Repair", - "Bowel Resection", - "Gastric Bypass", - "Sleeve Gastrectomy", - "Thyroidectomy", - "Hemorrhoidectomy" - ], - "CARDIAC": [ - "Coronary Artery Bypass Grafting", - "Valve Replacement", - "Atrial Septal Defect Repair", - "Pacemaker Insertion", - "Angioplasty", - "Heart Transplant" - ], - "ORTHOPEDIC": [ - "Total Knee Replacement", - "Total Hip Replacement", - "Spinal Fusion", - "ACL Reconstruction", - "Rotator Cuff Repair", - "Fracture Fixation", - "Arthroscopy" - ], - "NEURO": [ - "Craniotomy", - "Brain Tumor Resection", - "Spinal Decompression", - "VP Shunt Placement", - "Aneurysm Clipping", - "Deep Brain Stimulation" - ], - "OBSTETRIC": [ - "Cesarean Section", - "Hysterectomy", - "Myomectomy", - "Ovarian Cystectomy", - "Tubal Ligation", - "D&C Procedure" +class OperatingTheatreDataGenerator: + """Generate Saudi-influenced operating theatre data""" + + def __init__(self): + self.setup_saudi_data() + + def setup_saudi_data(self): + """Setup Saudi-specific data for generation""" + + # Arabic-influenced room names + self.room_names = [ + "غرفة العمليات الأولى", "غرفة العمليات الثانية", "غرفة العمليات الثالثة", + "جناح الجراحة العامة", "جناح جراحة القلب", "جناح جراحة الأعصاب", + "وحدة الجراحة الطارئة", "مركز الجراحة الروبوتية", "قسم جراحة العظام" ] - } - - # Equipment commonly used in Saudi hospitals - MEDICAL_EQUIPMENT = [ - "Da Vinci Surgical Robot", - "C-Arm Fluoroscopy", - "Zeiss Surgical Microscope", - "Harmonic Scalpel", - "LigaSure Device", - "Medtronic Neuromonitoring System", - "Stryker Navigation System", - "Karl Storz Laparoscopic Tower", - "GE Ultrasound Machine", - "Phillips CT Scanner" - ] - - def __init__(self, tenant_id: Optional[str] = None): - """Initialize the data generator.""" - self.tenant_id = tenant_id or str(uuid.uuid4()) - self.generated_surgeons = [] - self.generated_patients = [] - self.generated_rooms = [] - - def generate_saudi_name(self, gender: str = 'male') -> Dict[str, str]: - """Generate a Saudi-style name.""" - if gender.lower() == 'male': - first_name = random.choice(self.SAUDI_MALE_FIRST_NAMES) - else: - first_name = random.choice(self.SAUDI_FEMALE_FIRST_NAMES) - - family_name = random.choice(self.SAUDI_FAMILY_NAMES) - - # Sometimes add a middle name (father's name for males) - if gender.lower() == 'male' and random.random() > 0.5: - middle_name = random.choice(self.SAUDI_MALE_FIRST_NAMES) - full_name = f"Dr. {first_name} {middle_name} {family_name}" - else: - full_name = f"Dr. {first_name} {family_name}" - + + # Common Saudi procedures (Arabic + English) + self.procedures = [ + "استئصال المرارة بالمنظار", "Laparoscopic Cholecystectomy", + "جراحة القلب المفتوح", "Open Heart Surgery", + "استبدال مفصل الركبة", "Total Knee Replacement", + "جراحة الفتق الإربي", "Inguinal Hernia Repair", + "استئصال الزائدة الدودية", "Appendectomy", + "جراحة المنظار التشخيصي", "Diagnostic Laparoscopy", + "استئصال الغدة الدرقية", "Thyroidectomy", + "جراحة الساد", "Cataract Surgery", + "استئصال اللوزتين", "Tonsillectomy", + "جراحة البواسير", "Hemorrhoidectomy" + ] + + # Saudi medical equipment (common in Saudi hospitals) + self.equipment = [ + "منظار البطن كارل زايس", "Carl Zeiss Laparoscope", + "جهاز القطع الكهربائي", "Electrocautery Unit", + "جهاز التخدير دريجر", "Drager Anesthesia Machine", + "مجهر جراحي ليكا", "Leica Surgical Microscope", + "روبوت دافنشي", "da Vinci Surgical Robot", + "جهاز الأشعة المقطعية المحمول", "Portable CT Scanner", + "منظار المثانة", "Cystoscope", + "مضخة القلب الرئة", "Heart-Lung Machine" + ] + + # Common diagnoses in Arabic and English + self.diagnoses = [ + "التهاب المرارة الحاد", "Acute Cholecystitis", + "انسداد الأمعاء", "Bowel Obstruction", + "كسر في عظم الفخذ", "Femur Fracture", + "أورام الغدة الدرقية", "Thyroid Nodules", + "حصى الكلى", "Kidney Stones", + "التهاب الزائدة الدودية", "Appendicitis", + "الفتق الإربي", "Inguinal Hernia", + "سرطان القولون", "Colorectal Cancer" + ] + + def get_existing_data(self): + """Retrieve existing data from database""" + print("Retrieving existing data from database...") + + # Get tenants + tenants = list(Tenant.objects.all()) + if not tenants: + raise ValueError("No tenants found in database. Please create tenants first.") + + # Get users with different roles + users = list(User.objects.all()) + if not users: + raise ValueError("No users found in database. Please create users first.") + + # Try to categorize users by role/specialty + surgeons = list(User.objects.filter( + groups__name__icontains='surgeon' + ).distinct()) or users[:max(1, len(users) // 3)] + + anesthesiologists = list(User.objects.filter( + groups__name__icontains='anesthesia' + ).distinct()) or users[len(users) // 3:2 * len(users) // 3] + + nurses = list(User.objects.filter( + groups__name__icontains='nurse' + ).distinct()) or users[2 * len(users) // 3:] + + # Get patients + patients = list(PatientProfile.objects.all()) + if not patients: + raise ValueError("No patients found in database. Please create patients first.") + + # Get encounters and admissions if available + encounters = list(Encounter.objects.all()) if hasattr(Encounter, 'objects') else [] + admissions = list(Admission.objects.all()) if hasattr(Admission, 'objects') else [] + + print(f"Found: {len(tenants)} tenants, {len(users)} users, {len(patients)} patients") + print( + f"Categorized: {len(surgeons)} surgeons, {len(anesthesiologists)} anesthesiologists, {len(nurses)} nurses") + return { - 'first_name': first_name, - 'last_name': family_name, - 'full_name': full_name + 'tenants': tenants, + 'users': users, + 'surgeons': surgeons, + 'anesthesiologists': anesthesiologists, + 'nurses': nurses, + 'patients': patients, + 'encounters': encounters, + 'admissions': admissions } - - def generate_operating_room(self, room_number: int) -> Dict[str, Any]: - """Generate operating room data with Saudi context.""" - room_types = ['GENERAL', 'CARDIAC', 'NEURO', 'ORTHOPEDIC', 'OBSTETRIC', - 'PEDIATRIC', 'OPHTHALMOLOGY', 'ENT', 'UROLOGY'] - - room_type = random.choice(room_types) - hospital = random.choice(self.SAUDI_HOSPITALS) - - # Advanced equipment more common in Saudi hospitals - has_advanced_equipment = random.random() > 0.3 - - room_data = { - 'tenant': self.tenant_id, - 'room_id': str(uuid.uuid4()), - 'room_number': f"OR-{room_number:03d}", - 'room_name': f"{hospital} - {room_type.title()} OR {room_number}", - 'room_type': room_type, - 'status': random.choice(['AVAILABLE', 'OCCUPIED', 'CLEANING', 'SETUP']), - 'floor_number': random.randint(1, 5), - 'room_size': round(random.uniform(40, 80), 2), - 'ceiling_height': round(random.uniform(3.0, 4.5), 2), - 'temperature_min': 18.0, - 'temperature_max': 24.0, - 'humidity_min': 30.0, - 'humidity_max': 60.0, - 'air_changes_per_hour': random.randint(20, 25), - 'positive_pressure': True, - 'equipment_list': self._generate_equipment_list(room_type, has_advanced_equipment), - 'special_features': self._generate_special_features(room_type), - 'has_c_arm': room_type in ['ORTHOPEDIC', 'NEURO', 'VASCULAR'] or random.random() > 0.5, - 'has_ct': room_type in ['NEURO', 'CARDIAC'] and has_advanced_equipment, - 'has_mri': room_type == 'NEURO' and has_advanced_equipment and random.random() > 0.7, - 'has_ultrasound': True, - 'has_neuromonitoring': room_type in ['NEURO', 'ORTHOPEDIC'], - 'supports_robotic': has_advanced_equipment and room_type in ['GENERAL', 'UROLOGY', 'CARDIAC'], - 'supports_laparoscopic': room_type in ['GENERAL', 'OBSTETRIC', 'UROLOGY'], - 'supports_microscopy': room_type in ['NEURO', 'OPHTHALMOLOGY', 'ENT'], - 'supports_laser': room_type in ['OPHTHALMOLOGY', 'ENT', 'UROLOGY'], - 'max_case_duration': random.randint(240, 720), - 'turnover_time': random.randint(20, 45), - 'cleaning_time': random.randint(30, 60), - 'required_nurses': random.randint(2, 4), - 'required_techs': random.randint(1, 3), - 'is_active': True, - 'accepts_emergency': room_type != 'OPHTHALMOLOGY', - 'building': f"Building {random.choice(['A', 'B', 'C', 'Main', 'East', 'West'])}", - 'wing': random.choice(['North', 'South', 'East', 'West', 'Central']), - 'created_at': fake.date_time_between(start_date='-2y', end_date='now'), - 'updated_at': fake.date_time_between(start_date='-30d', end_date='now') - } - - return room_data - - def _generate_equipment_list(self, room_type: str, has_advanced: bool) -> List[str]: - """Generate equipment list based on room type.""" - basic_equipment = [ - "Anesthesia Machine", - "Patient Monitor", - "Surgical Lights", - "Operating Table", - "Electrocautery Unit", - "Suction System", - "Instrument Tables" - ] - - specialized_equipment = { - 'CARDIAC': ["Heart-Lung Machine", "IABP", "TEE Machine"], - 'NEURO': ["Surgical Microscope", "Neuronavigation", "CUSA"], - 'ORTHOPEDIC': ["C-Arm", "Power Tools", "Traction Table"], - 'OPHTHALMOLOGY': ["Phaco Machine", "OCT", "YAG Laser"], - 'ENT': ["ENT Microscope", "Shaver System", "Navigation"], - 'UROLOGY': ["Cystoscopy Tower", "Laser System", "Lithotripter"] - } - - equipment = basic_equipment.copy() - - if room_type in specialized_equipment: - equipment.extend(specialized_equipment[room_type]) - - if has_advanced: - equipment.extend(random.sample(self.MEDICAL_EQUIPMENT, k=random.randint(2, 4))) - - return equipment - - def _generate_special_features(self, room_type: str) -> List[str]: - """Generate special features for OR.""" - features = ["Laminar Flow", "HEPA Filtration", "Integrated Video System"] - - special_features = { - 'CARDIAC': ["Hybrid OR Capability", "Cardiac Catheterization"], - 'NEURO': ["Intraoperative MRI Compatible", "Neuromonitoring"], - 'ORTHOPEDIC': ["Laminar Flow Class 100", "Biplane Imaging"], - 'OPHTHALMOLOGY': ["Laser Safety", "Microscope Integration"], - 'OBSTETRIC': ["Neonatal Resuscitation Area", "Fetal Monitoring"] - } - - if room_type in special_features: - features.extend(special_features[room_type]) - - return features - - def generate_or_block(self, operating_room_id: str, block_date: date) -> Dict[str, Any]: - """Generate OR block schedule.""" - surgeon = self.generate_saudi_name('male') - services = ['GENERAL', 'CARDIAC', 'NEURO', 'ORTHOPEDIC', 'OBSTETRIC', - 'OPHTHALMOLOGY', 'ENT', 'UROLOGY'] - - # Saudi working hours typically 7 AM to 3 PM or 8 AM to 4 PM - start_hours = [7, 8, 9, 13, 14] - start_hour = random.choice(start_hours) - duration_hours = random.randint(2, 8) - - block_data = { - 'operating_room': operating_room_id, - 'block_id': str(uuid.uuid4()), - 'date': block_date, - 'start_time': time(start_hour, 0), - 'end_time': time((start_hour + duration_hours) % 24, 0), - 'block_type': random.choice(['SCHEDULED', 'EMERGENCY', 'RESERVED']), - 'primary_surgeon': surgeon['full_name'], - 'service': random.choice(services), - 'status': random.choice(['SCHEDULED', 'ACTIVE', 'COMPLETED']), - 'allocated_minutes': duration_hours * 60, - 'used_minutes': random.randint(duration_hours * 45, duration_hours * 60), - 'special_equipment': random.sample(self.MEDICAL_EQUIPMENT, k=random.randint(0, 3)), - 'special_setup': self._generate_special_setup(), - 'notes': self._generate_block_notes(), - 'created_at': fake.date_time_between(start_date='-30d', end_date='now'), - 'updated_at': fake.date_time_between(start_date='-7d', end_date='now') - } - - return block_data - - def _generate_special_setup(self) -> str: - """Generate special setup requirements.""" - setups = [ - "Prone positioning required", - "Lateral positioning with bean bag", - "Beach chair position", - "Microscope setup required", - "Robot docking from patient left", - "Fluoroscopy setup", - "Neuromonitoring setup required", - "Cell saver required", - "Warming blanket needed" - ] - return random.choice(setups) if random.random() > 0.5 else "" - - def _generate_block_notes(self) -> str: - """Generate block notes.""" - notes = [ - "Complex case - allow extra time", - "Teaching case for residents", - "VIP patient - special protocols", - "Latex allergy - latex-free environment", - "Multi-specialty case", - "Consultant from King Faisal Hospital attending", - "Research protocol case", - "International patient - translator needed" - ] - return random.choice(notes) if random.random() > 0.3 else "" - - def generate_surgical_case(self, or_block_id: str, patient_id: str) -> Dict[str, Any]: - """Generate surgical case data.""" - case_type = random.choice(['ELECTIVE', 'URGENT', 'EMERGENCY']) - service_type = random.choice(list(self.SURGICAL_PROCEDURES.keys())) - procedure = random.choice(self.SURGICAL_PROCEDURES[service_type]) - - # Generate Saudi medical team - primary_surgeon = self.generate_saudi_name('male') - anesthesiologist = self.generate_saudi_name(random.choice(['male', 'female'])) - nurse = self.generate_saudi_name('female') # Nursing often female in Saudi - - scheduled_start = fake.date_time_between(start_date='now', end_date='+30d') - duration = random.randint(30, 360) - - case_data = { - 'or_block': or_block_id, - 'case_id': str(uuid.uuid4()), - 'case_number': f"SURG-{datetime.now().strftime('%Y%m%d')}-{random.randint(1, 9999):04d}", - 'patient': patient_id, - 'primary_surgeon': primary_surgeon['full_name'], - 'anesthesiologist': anesthesiologist['full_name'], - 'circulating_nurse': nurse['full_name'], - 'scrub_nurse': self.generate_saudi_name('female')['full_name'], - 'primary_procedure': procedure, - 'secondary_procedures': self._generate_secondary_procedures(service_type), - 'procedure_codes': self._generate_procedure_codes(), - 'case_type': case_type, - 'approach': random.choice(['OPEN', 'LAPAROSCOPIC', 'ROBOTIC', 'ENDOSCOPIC']), - 'anesthesia_type': random.choice(['GENERAL', 'REGIONAL', 'SPINAL', 'LOCAL']), - 'scheduled_start': scheduled_start, - 'estimated_duration': duration, - 'actual_start': scheduled_start + timedelta(minutes=random.randint(-15, 30)) if random.random() > 0.5 else None, - 'actual_end': scheduled_start + timedelta(minutes=duration + random.randint(-30, 60)) if random.random() > 0.5 else None, - 'status': random.choice(['SCHEDULED', 'IN_PROGRESS', 'COMPLETED', 'DELAYED']), - 'diagnosis': self._generate_diagnosis(), - 'diagnosis_codes': self._generate_diagnosis_codes(), - 'clinical_notes': self._generate_clinical_notes(), - 'special_equipment': random.sample(self.MEDICAL_EQUIPMENT, k=random.randint(1, 3)), - 'blood_products': self._generate_blood_products() if random.random() > 0.7 else [], - 'implants': self._generate_implants(service_type) if random.random() > 0.6 else [], - 'patient_position': random.choice(['SUPINE', 'PRONE', 'LATERAL', 'LITHOTOMY']), - 'complications': [] if random.random() > 0.1 else ["Minor bleeding controlled"], - 'estimated_blood_loss': random.randint(10, 500) if random.random() > 0.3 else None, - 'created_at': fake.date_time_between(start_date='-7d', end_date='now'), - 'updated_at': fake.date_time_between(start_date='-1d', end_date='now') - } - - return case_data - - def _generate_secondary_procedures(self, service_type: str) -> List[str]: - """Generate secondary procedures.""" - if random.random() > 0.6: - procedures = self.SURGICAL_PROCEDURES.get(service_type, []) - return random.sample(procedures, k=min(random.randint(1, 2), len(procedures))) - return [] - - def _generate_procedure_codes(self) -> List[str]: - """Generate CPT procedure codes.""" - # Sample CPT codes - codes = [] - for _ in range(random.randint(1, 3)): - codes.append(f"{random.randint(10000, 99999)}") - return codes - - def _generate_diagnosis(self) -> str: - """Generate diagnosis.""" - diagnoses = [ - "Acute Appendicitis", - "Cholelithiasis", - "Inguinal Hernia", - "Coronary Artery Disease", - "Brain Tumor", - "Degenerative Disc Disease", - "Osteoarthritis", - "Breast Cancer", - "Colorectal Cancer", - "Thyroid Nodule", - "Uterine Fibroids", - "Kidney Stones", - "Prostate Hyperplasia" - ] - return random.choice(diagnoses) - - def _generate_diagnosis_codes(self) -> List[str]: - """Generate ICD-10 diagnosis codes.""" - # Sample ICD-10 codes - codes = [] - for _ in range(random.randint(1, 3)): - letter = random.choice(['K', 'I', 'M', 'C', 'N', 'E']) - codes.append(f"{letter}{random.randint(10, 99)}.{random.randint(0, 9)}") - return codes - - def _generate_clinical_notes(self) -> str: - """Generate clinical notes.""" - notes = [ - "Patient with history of diabetes mellitus type 2, controlled on metformin", - "No known drug allergies. Previous surgery without complications", - "Hypertensive patient on ACE inhibitors, blood pressure stable", - "Patient fasting since midnight as per protocol", - "Preoperative antibiotics administered", - "Patient counseled about procedure risks and benefits", - "Informed consent obtained in Arabic and English" - ] - return random.choice(notes) - - def _generate_blood_products(self) -> List[str]: - """Generate blood product requirements.""" - products = [] - if random.random() > 0.5: - products.append(f"PRBC {random.randint(1, 4)} units") - if random.random() > 0.7: - products.append(f"FFP {random.randint(1, 2)} units") - if random.random() > 0.8: - products.append(f"Platelets {random.randint(1, 2)} units") - return products - - def _generate_implants(self, service_type: str) -> List[str]: - """Generate implant requirements based on service type.""" - implants = { - 'ORTHOPEDIC': [ - "Total Knee Prosthesis - Zimmer", - "Total Hip Prosthesis - Stryker", - "Spinal Fusion Cage - Medtronic", - "ACL Graft", - "Fracture Plate and Screws" - ], - 'CARDIAC': [ - "Mechanical Valve - St. Jude", - "Bioprosthetic Valve", - "Pacemaker - Medtronic", - "Coronary Stent", - "Vascular Graft" - ], - 'NEURO': [ - "VP Shunt", - "Deep Brain Stimulator", - "Cranial Plate", - "Aneurysm Clip" - ], - 'GENERAL': [ - "Mesh for Hernia Repair", - "Gastric Band", - "Biliary Stent" - ] - } - - if service_type in implants: - return random.sample(implants[service_type], k=1) - return [] - - def generate_surgical_note(self, surgical_case_id: str, surgeon_id: str) -> Dict[str, Any]: - """Generate surgical note.""" - note_data = { - 'surgical_case': surgical_case_id, - 'note_id': str(uuid.uuid4()), - 'surgeon': surgeon_id, - 'preoperative_diagnosis': self._generate_diagnosis(), - 'planned_procedure': random.choice([proc for procs in self.SURGICAL_PROCEDURES.values() for proc in procs]), - 'indication': self._generate_indication(), - 'procedure_performed': self._generate_procedure_details(), - 'surgical_approach': self._generate_surgical_approach(), - 'findings': self._generate_findings(), - 'technique': self._generate_technique(), - 'postoperative_diagnosis': self._generate_diagnosis(), - 'condition': random.choice(['STABLE', 'GOOD', 'FAIR']), - 'disposition': random.choice(['RECOVERY', 'ICU', 'WARD']), - 'complications': "None" if random.random() > 0.1 else "Minor bleeding, controlled", - 'estimated_blood_loss': random.randint(10, 500), - 'blood_transfusion': "None" if random.random() > 0.8 else "1 unit PRBC", - 'specimens': self._generate_specimens() if random.random() > 0.5 else None, - 'implants': self._generate_implant_details() if random.random() > 0.6 else None, - 'drains': "JP drain placed" if random.random() > 0.5 else None, - 'closure': self._generate_closure_details(), - 'postop_instructions': self._generate_postop_instructions(), - 'follow_up': "Follow up in 2 weeks in surgical clinic", - 'status': random.choice(['DRAFT', 'COMPLETED', 'SIGNED']), - 'signed_datetime': fake.date_time_between(start_date='-7d', end_date='now') if random.random() > 0.3 else None, - 'created_at': fake.date_time_between(start_date='-7d', end_date='now'), - 'updated_at': fake.date_time_between(start_date='-1d', end_date='now') - } - - return note_data - - def _generate_indication(self) -> str: - """Generate surgical indication.""" - indications = [ - "Symptomatic for 6 months, failed conservative management", - "Progressive symptoms despite medical therapy", - "Acute presentation with signs of peritonitis", - "Elective procedure for quality of life improvement", - "Urgent intervention to prevent complications", - "Diagnostic and therapeutic intervention", - "Staged procedure as per treatment protocol" - ] - return random.choice(indications) - - def _generate_procedure_details(self) -> str: - """Generate detailed procedure description.""" - return "Procedure performed as planned using standard technique with no intraoperative complications" - - def _generate_surgical_approach(self) -> str: - """Generate surgical approach description.""" - approaches = [ - "Midline laparotomy incision", - "Laparoscopic approach with 4 ports", - "Lateral thoracotomy through 5th intercostal space", - "Posterior approach to spine", - "Deltopectoral approach", - "Bikini incision for cesarean section" - ] - return random.choice(approaches) - - def _generate_findings(self) -> str: - """Generate intraoperative findings.""" - findings = [ - "Findings consistent with preoperative diagnosis", - "Adhesions from previous surgery noted and lysed", - "No evidence of metastatic disease", - "Inflammation noted in surrounding tissues", - "Anatomy normal, procedure proceeded as planned" - ] - return random.choice(findings) - - def _generate_technique(self) -> str: - """Generate surgical technique description.""" - return "Standard surgical technique employed with meticulous hemostasis throughout the procedure" - - def _generate_specimens(self) -> str: - """Generate specimen details.""" - specimens = [ - "Appendix sent to pathology", - "Gallbladder sent to pathology", - "Lymph nodes sent for frozen section", - "Tissue biopsy sent to pathology", - "Tumor specimen sent with margins marked" - ] - return random.choice(specimens) - - def _generate_implant_details(self) -> str: - """Generate implant details.""" - return "Implant placed per manufacturer protocol, position confirmed with imaging" - - def _generate_closure_details(self) -> str: - """Generate closure details.""" - closures = [ - "Layered closure with absorbable sutures", - "Skin closed with staples", - "Subcuticular closure with absorbable sutures", - "Wound closed in layers, dressing applied", - "Closure with 3-0 Vicryl and skin adhesive" - ] - return random.choice(closures) - - def _generate_postop_instructions(self) -> str: - """Generate postoperative instructions.""" - instructions = [ - "NPO until bowel sounds return, advance diet as tolerated", - "Ambulate within 6 hours, incentive spirometry every hour", - "Pain control with PCA, transition to oral when tolerating diet", - "DVT prophylaxis with heparin, sequential compression devices", - "Monitor vitals every 4 hours, daily labs", - "Antibiotics for 24 hours postoperatively", - "Foley catheter to be removed POD 1" - ] - return "; ".join(random.sample(instructions, k=random.randint(2, 4))) - - def generate_equipment_usage(self, surgical_case_id: str) -> List[Dict[str, Any]]: - """Generate equipment usage records.""" - equipment_records = [] - num_equipment = random.randint(3, 8) - - for _ in range(num_equipment): - equipment_type = random.choice([ - 'SURGICAL_INSTRUMENT', 'MONITORING_DEVICE', 'ELECTROCAUTERY', - 'LASER', 'MICROSCOPE', 'ULTRASOUND', 'DISPOSABLE' - ]) - - equipment_name = self._get_equipment_name(equipment_type) - - usage_data = { - 'surgical_case': surgical_case_id, - 'usage_id': str(uuid.uuid4()), - 'equipment_name': equipment_name, - 'equipment_type': equipment_type, - 'manufacturer': self._get_manufacturer(), - 'model': f"Model-{random.randint(100, 999)}", - 'serial_number': f"SN{random.randint(100000, 999999)}", - 'quantity_used': random.randint(1, 5), - 'unit_of_measure': random.choice(['EACH', 'SET', 'PACK', 'BOX']), - 'start_time': fake.date_time_between(start_date='-1d', end_date='now'), - 'end_time': fake.date_time_between(start_date='now', end_date='+4h'), - 'unit_cost': Decimal(str(round(random.uniform(10, 5000), 2))), - 'lot_number': f"LOT{random.randint(10000, 99999)}", - 'expiration_date': fake.date_between(start_date='+30d', end_date='+2y'), - 'sterilization_date': fake.date_between(start_date='-7d', end_date='today'), - 'notes': self._generate_equipment_notes(), - 'created_at': fake.date_time_between(start_date='-1d', end_date='now'), - 'updated_at': fake.date_time_between(start_date='-1h', end_date='now') + + def generate_operating_rooms(self, data, count=15): + """Generate operating rooms""" + print(f"Generating {count} operating rooms...") + + operating_rooms = [] + for tenant in data['tenants']: + rooms_per_tenant = count // len(data['tenants']) + (1 if tenant == data['tenants'][0] else 0) + + for i in range(rooms_per_tenant): + room = OperatingRoom.objects.create( + tenant=tenant, + room_number=f"OR-{i + 1:02d}", + room_name=random.choice(self.room_names), + room_type=random.choice([choice[0] for choice in OperatingRoom.ROOM_TYPE_CHOICES]), + status=random.choice([choice[0] for choice in OperatingRoom.STATUS_CHOICES]), + floor_number=random.randint(2, 8), + room_size=random.uniform(25.0, 60.0), + ceiling_height=random.uniform(3.0, 4.5), + temperature_min=random.uniform(16.0, 20.0), + temperature_max=random.uniform(22.0, 28.0), + humidity_min=random.uniform(25.0, 35.0), + humidity_max=random.uniform(55.0, 65.0), + air_changes_per_hour=random.randint(15, 25), + positive_pressure=random.choice([True, False]), + # equipment_list=random.sample(self.equipment, k=random.randint(3, 8)), + special_features=random.sample([ + "HEPA Filtration", "Temperature Control", "Humidity Control", + "Integrated Monitors", "Surgical Lights", "Emergency Power" + ], k=random.randint(2, 4)), + has_c_arm=random.choice([True, False]), + has_ct=random.choice([True, False]) if random.random() > 0.7 else False, + has_mri=random.choice([True, False]) if random.random() > 0.8 else False, + has_ultrasound=random.choice([True, False]), + has_neuromonitoring=random.choice([True, False]) if random.random() > 0.6 else False, + supports_robotic=random.choice([True, False]) if random.random() > 0.7 else False, + supports_laparoscopic=random.choice([True, True, True, False]), # More likely True + supports_microscopy=random.choice([True, False]), + supports_laser=random.choice([True, False]), + max_case_duration=random.choice([240, 360, 480, 600, 720]), + turnover_time=random.randint(20, 45), + cleaning_time=random.randint(30, 60), + required_nurses=random.randint(2, 4), + required_techs=random.randint(1, 3), + is_active=random.choice([True, True, True, False]), # More likely active + accepts_emergency=random.choice([True, True, False]), # More likely to accept + building=random.choice(["Main Hospital", "Surgical Center", "Medical Tower"]), + wing=random.choice(["North Wing", "South Wing", "East Wing", "West Wing"]), + created_by=random.choice(data['users']) + ) + operating_rooms.append(room) + + print(f"Generated {len(operating_rooms)} operating rooms") + return operating_rooms + + def generate_surgical_note_templates(self, data, count=20): + """Generate surgical note templates""" + print(f"Generating {count} surgical note templates...") + + templates = [] + template_data = [ + { + 'name': 'General Laparoscopic Surgery', + 'specialty': 'GENERAL', + 'procedure_type': 'Laparoscopic Surgery', + 'preoperative_diagnosis': 'Acute cholecystitis with cholelithiasis', + 'planned_procedure': 'Laparoscopic cholecystectomy', + 'indication': 'Symptomatic gallstone disease with acute inflammation' + }, + { + 'name': 'Cardiac Surgery Standard', + 'specialty': 'CARDIAC', + 'procedure_type': 'Open Heart Surgery', + 'preoperative_diagnosis': 'Coronary artery disease, three vessel', + 'planned_procedure': 'Coronary artery bypass grafting', + 'indication': 'Significant coronary artery stenosis' + }, + { + 'name': 'Orthopedic Joint Replacement', + 'specialty': 'ORTHOPEDIC', + 'procedure_type': 'Joint Replacement', + 'preoperative_diagnosis': 'Severe osteoarthritis of the knee', + 'planned_procedure': 'Total knee arthroplasty', + 'indication': 'End-stage arthritis with functional limitation' + }, + { + 'name': 'Neurosurgical Craniotomy', + 'specialty': 'NEURO', + 'procedure_type': 'Craniotomy', + 'preoperative_diagnosis': 'Brain tumor, frontal lobe', + 'planned_procedure': 'Craniotomy and tumor resection', + 'indication': 'Mass lesion with neurological symptoms' + }, + { + 'name': 'Emergency Appendectomy', + 'specialty': 'GENERAL', + 'procedure_type': 'Emergency Surgery', + 'preoperative_diagnosis': 'Acute appendicitis', + 'planned_procedure': 'Laparoscopic appendectomy', + 'indication': 'Acute inflammatory process of the appendix' } - - equipment_records.append(usage_data) - - return equipment_records - - def _get_equipment_name(self, equipment_type: str) -> str: - """Get equipment name based on type.""" - equipment_names = { - 'SURGICAL_INSTRUMENT': [ - "Harmonic Scalpel", "LigaSure Device", "Surgical Stapler", - "Laparoscopic Grasper Set", "Retractor Set", "Scalpel Set" - ], - 'MONITORING_DEVICE': [ - "Cardiac Monitor", "Pulse Oximeter", "BIS Monitor", - "Arterial Line Monitor", "Central Line Kit" - ], - 'ELECTROCAUTERY': [ - "Bovie Electrocautery", "Bipolar Forceps", "Monopolar Cautery" - ], - 'LASER': [ - "CO2 Laser", "YAG Laser", "Holmium Laser", "Argon Laser" - ], - 'MICROSCOPE': [ - "Zeiss OPMI", "Leica Surgical Microscope", "Pentero Microscope" - ], - 'ULTRASOUND': [ - "GE Ultrasound", "Phillips EPIQ", "Sonosite Edge" - ], - 'DISPOSABLE': [ - "Surgical Drape Set", "Gown Pack", "Suture Set", - "Surgical Gloves", "Sponge Pack" - ] - } - - return random.choice(equipment_names.get(equipment_type, ["Generic Equipment"])) - - def _get_manufacturer(self) -> str: - """Get equipment manufacturer.""" - manufacturers = [ - "Medtronic", "Johnson & Johnson", "Stryker", "Boston Scientific", - "Abbott", "GE Healthcare", "Siemens", "Phillips", "Karl Storz", - "Olympus", "Zimmer Biomet", "Smith & Nephew", "B. Braun" ] - return random.choice(manufacturers) - - def _generate_equipment_notes(self) -> str: - """Generate equipment usage notes.""" - notes = [ - "Equipment functioning properly", - "Calibrated before use", - "Backup equipment available", - "Special settings documented", - "Used per protocol", - "" - ] - return random.choice(notes) - - def generate_surgical_note_template(self) -> Dict[str, Any]: - """Generate surgical note template.""" - specialties = ['ALL', 'GENERAL', 'CARDIAC', 'NEURO', 'ORTHOPEDIC', - 'OBSTETRIC', 'OPHTHALMOLOGY', 'ENT', 'UROLOGY'] - - specialty = random.choice(specialties) - - template_data = { - 'tenant': self.tenant_id, - 'template_id': str(uuid.uuid4()), - 'name': f"{specialty} Surgery Template - {random.choice(['Standard', 'Complex', 'Emergency'])}", - 'description': f"Standard template for {specialty.lower()} surgical procedures", - 'procedure_type': random.choice(self.SURGICAL_PROCEDURES.get(specialty, ["General Procedure"])) if specialty != 'ALL' else None, - 'specialty': specialty, - 'preoperative_diagnosis_template': "Preoperative Diagnosis: [Diagnosis]", - 'planned_procedure_template': "Planned Procedure: [Procedure Name]", - 'indication_template': "Indication: Patient presents with [symptoms] requiring surgical intervention", - 'procedure_performed_template': "Procedure Performed: [Actual procedure]", - 'surgical_approach_template': "Approach: [Describe surgical approach]", - 'findings_template': "Findings: [Describe intraoperative findings]", - 'technique_template': "Technique: [Describe surgical technique in detail]", - 'postoperative_diagnosis_template': "Postoperative Diagnosis: [Final diagnosis]", - 'complications_template': "Complications: [None/Describe if any]", - 'specimens_template': "Specimens: [List specimens sent to pathology]", - 'implants_template': "Implants: [List any implants used]", - 'closure_template': "Closure: [Describe closure technique]", - 'postop_instructions_template': "Postoperative Instructions: [List instructions]", - 'is_active': True, - 'is_default': random.random() > 0.7, - 'usage_count': random.randint(0, 100), - 'created_at': fake.date_time_between(start_date='-1y', end_date='now'), - 'updated_at': fake.date_time_between(start_date='-30d', end_date='now') + + for tenant in data['tenants']: + for template_info in template_data: + template = SurgicalNoteTemplate.objects.create( + tenant=tenant, + name=template_info['name'], + description=f"Standard template for {template_info['procedure_type']}", + procedure_type=template_info['procedure_type'], + specialty=template_info['specialty'], + preoperative_diagnosis_template=template_info['preoperative_diagnosis'], + planned_procedure_template=template_info['planned_procedure'], + indication_template=template_info['indication'], + procedure_performed_template=template_info['planned_procedure'], + surgical_approach_template="Standard laparoscopic approach with CO2 insufflation", + findings_template="Findings consistent with preoperative diagnosis", + technique_template="Standard surgical technique employed", + postoperative_diagnosis_template=template_info['preoperative_diagnosis'], + complications_template="No intraoperative complications", + specimens_template="Specimen sent to pathology for routine examination", + implants_template="No implants used", + closure_template="Fascia closed with absorbable sutures, skin closed with skin adhesive", + postop_instructions_template="NPO until bowel function returns, progressive diet advancement", + is_active=True, + is_default=random.choice([True, False]), + created_by=random.choice(data['users']) + ) + templates.append(template) + + # Generate additional random templates + for i in range(count - len(template_data)): + template = SurgicalNoteTemplate.objects.create( + tenant=tenant, + name=f"Custom Template {i + 1}", + description=f"Custom surgical note template {i + 1}", + procedure_type=random.choice(self.procedures), + specialty=random.choice([choice[0] for choice in SurgicalNoteTemplate.SPECIALTY_CHOICES]), + preoperative_diagnosis_template=random.choice(self.diagnoses), + planned_procedure_template=random.choice(self.procedures), + indication_template="Standard indication for procedure", + procedure_performed_template=random.choice(self.procedures), + surgical_approach_template="Standard surgical approach", + findings_template="Findings as expected", + technique_template="Standard technique employed", + postoperative_diagnosis_template=random.choice(self.diagnoses), + is_active=random.choice([True, False]), + created_by=random.choice(data['users']) + ) + templates.append(template) + + print(f"Generated {len(templates)} surgical note templates") + return templates + + def generate_or_blocks(self, operating_rooms, data, count=50): + """Generate OR blocks""" + print(f"Generating {count} OR blocks...") + + blocks = [] + for i in range(count): + # Generate dates for the next 30 days + block_date = date.today() + timedelta(days=random.randint(0, 30)) + + # Generate time slots + start_hour = random.randint(6, 20) + start_minute = random.choice([0, 30]) + start_time = time(start_hour, start_minute) + + duration_hours = random.randint(2, 8) + end_hour = min(23, start_hour + duration_hours) + end_time = time(end_hour, start_minute) + + block = ORBlock.objects.create( + operating_room=random.choice(operating_rooms), + date=block_date, + start_time=start_time, + end_time=end_time, + block_type=random.choice([choice[0] for choice in ORBlock.BLOCK_TYPE_CHOICES]), + primary_surgeon=random.choice(data['surgeons']), + service=random.choice([choice[0] for choice in ORBlock.SERVICE_CHOICES]), + status=random.choice([choice[0] for choice in ORBlock.STATUS_CHOICES]), + special_equipment=random.sample(self.equipment, k=random.randint(1, 4)), + special_setup=random.choice([ + "Standard setup required", "Special positioning needed", + "Additional monitoring required", "Robotic system preparation", + None + ]), + notes=random.choice([ + "Standard block", "Priority case", "Complex procedure expected", + "Patient has multiple comorbidities", None + ]), + created_by=random.choice(data['users']) + ) + + # Add assistant surgeons + if random.random() > 0.5: + assistants = random.sample(data['surgeons'], k=random.randint(1, 2)) + block.assistant_surgeons.set(assistants) + + blocks.append(block) + + print(f"Generated {len(blocks)} OR blocks") + return blocks + + def generate_surgical_cases(self, or_blocks, data, count=80): + """Generate surgical cases""" + print(f"Generating {count} surgical cases...") + + cases = [] + for i in range(count): + block = random.choice(or_blocks) + + # Generate procedure information + primary_procedure = random.choice(self.procedures) + diagnosis = random.choice(self.diagnoses) + + # Generate timing + scheduled_start = datetime.combine( + block.date, + block.start_time + ) + timedelta(minutes=random.randint(0, 60)) + + estimated_duration = random.randint(30, 360) + + # Generate actual times for some cases + actual_start = None + actual_end = None + if random.random() > 0.4: # 60% of cases have actual times + actual_start = scheduled_start + timedelta(minutes=random.randint(-15, 45)) + actual_end = actual_start + timedelta( + minutes=estimated_duration + random.randint(-30, 60) + ) + + case = SurgicalCase.objects.create( + or_block=block, + patient=random.choice(data['patients']), + primary_surgeon=block.primary_surgeon, + anesthesiologist=random.choice(data['anesthesiologists']) if data['anesthesiologists'] else None, + circulating_nurse=random.choice(data['nurses']) if data['nurses'] else None, + scrub_nurse=random.choice(data['nurses']) if data['nurses'] else None, + primary_procedure=primary_procedure, + secondary_procedures=random.sample(self.procedures, k=random.randint(0, 2)), + procedure_codes=[f"CPT-{random.randint(10000, 99999)}" for _ in range(random.randint(1, 3))], + case_type=random.choice([choice[0] for choice in SurgicalCase.CASE_TYPE_CHOICES]), + approach=random.choice([choice[0] for choice in SurgicalCase.APPROACH_CHOICES]), + anesthesia_type=random.choice([choice[0] for choice in SurgicalCase.ANESTHESIA_TYPE_CHOICES]), + scheduled_start=scheduled_start, + estimated_duration=estimated_duration, + actual_start=actual_start, + actual_end=actual_end, + status=random.choice([choice[0] for choice in SurgicalCase.STATUS_CHOICES]), + diagnosis=diagnosis, + diagnosis_codes=[ + f"ICD10-{chr(65 + random.randint(0, 25))}{random.randint(10, 99)}.{random.randint(0, 9)}" + for _ in range(random.randint(1, 2))], + clinical_notes=f"Patient presents with {diagnosis.lower()}. Surgical intervention indicated.", + special_equipment=random.sample(self.equipment, k=random.randint(0, 3)), + blood_products=random.sample([ + "Packed RBC", "Fresh Frozen Plasma", "Platelets", "Cryoprecipitate" + ], k=random.randint(0, 2)) if random.random() > 0.7 else [], + implants=random.sample([ + "Titanium Plate", "Mesh", "Stent", "Joint Prosthesis", "Screws" + ], k=random.randint(0, 2)) if random.random() > 0.6 else [], + patient_position=random.choice( + [choice[0] for choice in SurgicalCase.PATIENT_POSITION_CHOICES]) if random.random() > 0.2 else None, + complications=random.sample([ + "Minor bleeding", "Adhesions encountered", "Technical difficulty" + ], k=random.randint(0, 1)) if random.random() > 0.8 else [], + estimated_blood_loss=random.randint(10, 500) if random.random() > 0.3 else None, + encounter=random.choice(data['encounters']) if data['encounters'] and random.random() > 0.5 else None, + admission=random.choice(data['admissions']) if data['admissions'] and random.random() > 0.4 else None, + created_by=random.choice(data['users']) + ) + + # Add assistant surgeons + if random.random() > 0.4: + assistants = random.sample(data['surgeons'], k=random.randint(1, 2)) + case.assistant_surgeons.set(assistants) + + cases.append(case) + + print(f"Generated {len(cases)} surgical cases") + return cases + + def generate_surgical_notes(self, surgical_cases, templates, data): + """Generate surgical notes for surgical cases""" + print(f"Generating surgical notes...") + + notes = [] + for case in surgical_cases: + # Only create notes for completed cases + if case.status not in ['COMPLETED', 'IN_PROGRESS'] or random.random() > 0.7: + continue + + # Find appropriate template + template = None + case_templates = [t for t in templates if t.tenant == case.tenant] + if case_templates: + template = random.choice(case_templates) + + note = SurgicalNote.objects.create( + surgical_case=case, + surgeon=case.primary_surgeon, + preoperative_diagnosis=case.diagnosis, + planned_procedure=case.primary_procedure, + indication=f"Surgical treatment indicated for {case.diagnosis.lower()}", + procedure_performed=case.primary_procedure, + surgical_approach=f"{case.approach.lower()} approach utilized", + findings=random.choice([ + "Findings consistent with preoperative diagnosis", + "Moderate inflammation noted", + "Adhesions present as expected", + "Anatomy within normal limits", + "Pathology confirmed intraoperatively" + ]), + technique=f"Standard {case.approach.lower()} technique employed with appropriate surgical instruments", + postoperative_diagnosis=case.diagnosis, + condition=random.choice([choice[0] for choice in SurgicalNote.CONDITION_CHOICES]), + disposition=random.choice([choice[0] for choice in SurgicalNote.DISPOSITION_CHOICES]), + complications=random.choice([ + "No intraoperative complications", + "Minor bleeding encountered and controlled", + "Technical difficulty with adhesions", + None + ]) if case.complications else "No intraoperative complications", + estimated_blood_loss=case.estimated_blood_loss, + blood_transfusion=random.choice([ + None, "No blood transfusion required", + "2 units packed RBC transfused" + ]) if random.random() > 0.8 else None, + specimens=random.choice([ + f"Specimen sent to pathology for routine examination", + "Tissue specimen sent for histopathological analysis", + "No specimens obtained", + None + ]), + implants=", ".join(case.implants) if case.implants else None, + drains=random.choice([ + "Jackson-Pratt drain placed", "No drains required", + "Blake drain inserted", None + ]) if random.random() > 0.6 else None, + closure=random.choice([ + "Fascia closed with interrupted sutures, skin closed with staples", + "Layered closure performed, skin closed with absorbable sutures", + "Standard closure technique employed" + ]), + postop_instructions=random.choice([ + "NPO until bowel function returns, then clear liquids", + "Regular diet as tolerated, ambulate as able", + "Standard postoperative care protocol" + ]), + follow_up="Follow-up in clinic in 2-4 weeks, sooner if concerns", + status=random.choice(['COMPLETED', 'SIGNED', 'DRAFT']), + signed_datetime=timezone.now() - timedelta( + days=random.randint(0, 5)) if random.random() > 0.3 else None, + template_used=template + ) + notes.append(note) + + print(f"Generated {len(notes)} surgical notes") + return notes + + def generate_equipment_usage(self, surgical_cases, data, count=200): + """Generate equipment usage records""" + print(f"Generating {count} equipment usage records...") + + usage_records = [] + for _ in range(count): + case = random.choice([c for c in surgical_cases if c.status in ['COMPLETED', 'IN_PROGRESS']]) + equipment_name = random.choice(self.equipment) + + # Generate usage timing + start_time = None + end_time = None + if case.actual_start: + start_time = case.actual_start + timedelta(minutes=random.randint(0, 60)) + end_time = start_time + timedelta(minutes=random.randint(15, 180)) + + usage = EquipmentUsage.objects.create( + surgical_case=case, + equipment_name=equipment_name, + equipment_type=random.choice([choice[0] for choice in EquipmentUsage.EQUIPMENT_TYPE_CHOICES]), + manufacturer=random.choice([ + "Medtronic", "Johnson & Johnson", "Stryker", "Olympus", + "Karl Storz", "Ethicon", "Boston Scientific", "Abbott" + ]), + model=f"Model-{random.randint(1000, 9999)}", + serial_number=f"SN{random.randint(100000, 999999)}", + quantity_used=random.randint(1, 5), + unit_of_measure=random.choice([choice[0] for choice in EquipmentUsage.UNIT_OF_MEASURE_CHOICES]), + start_time=start_time, + end_time=end_time, + unit_cost=Decimal(str(random.uniform(10, 1000))).quantize(Decimal('0.01')), + lot_number=f"LOT{random.randint(1000, 9999)}" if random.random() > 0.3 else None, + expiration_date=date.today() + timedelta( + days=random.randint(30, 730)) if random.random() > 0.4 else None, + sterilization_date=date.today() - timedelta( + days=random.randint(1, 7)) if random.random() > 0.5 else None, + notes=random.choice([ + "Equipment functioned normally", + "Routine maintenance required after use", + "Minor technical issue resolved", + None + ]), + recorded_by=random.choice(data['nurses']) if data['nurses'] else random.choice(data['users']) + ) + usage_records.append(usage) + + print(f"Generated {len(usage_records)} equipment usage records") + return usage_records + + def generate_all_data(self, or_count=15, block_count=50, case_count=80, equipment_count=200): + """Generate all operating theatre data""" + print("Starting Operating Theatre data generation...") + + # Get existing data + data = self.get_existing_data() + + # Generate data in order of dependencies + operating_rooms = self.generate_operating_rooms(data, or_count) + templates = self.generate_surgical_note_templates(data) + or_blocks = self.generate_or_blocks(operating_rooms, data, block_count) + surgical_cases = self.generate_surgical_cases(or_blocks, data, case_count) + surgical_notes = self.generate_surgical_notes(surgical_cases, templates, data) + equipment_usage = self.generate_equipment_usage(surgical_cases, data, equipment_count) + + summary = { + 'operating_rooms': len(operating_rooms), + 'surgical_note_templates': len(templates), + 'or_blocks': len(or_blocks), + 'surgical_cases': len(surgical_cases), + 'surgical_notes': len(surgical_notes), + 'equipment_usage': len(equipment_usage) } - - return template_data - - def generate_complete_dataset(self, - num_rooms: int = 10, - num_blocks_per_room: int = 5, - num_cases_per_block: int = 3) -> Dict[str, List]: - """Generate complete dataset for all models.""" - - dataset = { - 'operating_rooms': [], - 'or_blocks': [], - 'surgical_cases': [], - 'surgical_notes': [], - 'equipment_usage': [], - 'surgical_note_templates': [] - } - - # Generate operating rooms - for i in range(1, num_rooms + 1): - room = self.generate_operating_room(i) - dataset['operating_rooms'].append(room) - self.generated_rooms.append(room) - - # Generate OR blocks for each room - for j in range(num_blocks_per_room): - block_date = fake.date_between(start_date='today', end_date='+30d') - block = self.generate_or_block(room['room_id'], block_date) - dataset['or_blocks'].append(block) - - # Generate surgical cases for each block - for k in range(random.randint(1, num_cases_per_block)): - # Generate a patient ID (placeholder) - patient_id = str(uuid.uuid4()) - - case = self.generate_surgical_case(block['block_id'], patient_id) - dataset['surgical_cases'].append(case) - - # Generate surgical note for completed cases - if case['status'] == 'COMPLETED': - note = self.generate_surgical_note(case['case_id'], block['primary_surgeon']) - dataset['surgical_notes'].append(note) - - # Generate equipment usage - equipment_usage = self.generate_equipment_usage(case['case_id']) - dataset['equipment_usage'].extend(equipment_usage) - - # Generate surgical note templates - for _ in range(15): - template = self.generate_surgical_note_template() - dataset['surgical_note_templates'].append(template) - - return dataset - - def print_statistics(self, dataset: Dict[str, List]) -> None: - """Print statistics about generated data.""" - print("\n" + "="*60) - print("Saudi Operating Theatre Data Generation Complete") - print("="*60) - print(f"Operating Rooms Generated: {len(dataset['operating_rooms'])}") - print(f"OR Blocks Generated: {len(dataset['or_blocks'])}") - print(f"Surgical Cases Generated: {len(dataset['surgical_cases'])}") - print(f"Surgical Notes Generated: {len(dataset['surgical_notes'])}") - print(f"Equipment Usage Records: {len(dataset['equipment_usage'])}") - print(f"Surgical Note Templates: {len(dataset['surgical_note_templates'])}") - print("="*60) - - # Room type distribution - room_types = {} - for room in dataset['operating_rooms']: - room_type = room['room_type'] - room_types[room_type] = room_types.get(room_type, 0) + 1 - - print("\nOperating Room Types:") - for room_type, count in sorted(room_types.items()): - print(f" {room_type}: {count}") - - # Case type distribution - case_types = {} - for case in dataset['surgical_cases']: - case_type = case['case_type'] - case_types[case_type] = case_types.get(case_type, 0) + 1 - - print("\nSurgical Case Types:") - for case_type, count in sorted(case_types.items()): - print(f" {case_type}: {count}") - - # Status distribution - case_statuses = {} - for case in dataset['surgical_cases']: - status = case['status'] - case_statuses[status] = case_statuses.get(status, 0) + 1 - - print("\nCase Status Distribution:") - for status, count in sorted(case_statuses.items()): - print(f" {status}: {count}") + + print("\n" + "=" * 50) + print("OPERATING THEATRE DATA GENERATION COMPLETE") + print("=" * 50) + for model, count in summary.items(): + print(f"{model.replace('_', ' ').title()}: {count}") + print("=" * 50) + + return summary -# Example usage -if __name__ == "__main__": - # Initialize generator - generator = SaudiOperatingTheatreDataGenerator() - - # Generate complete dataset - dataset = generator.generate_complete_dataset( - num_rooms=8, - num_blocks_per_room=4, - num_cases_per_block=3 +# Usage example: +def generate_operating_theatre_data(): + """Main function to generate operating theatre data""" + generator = OperatingTheatreDataGenerator() + return generator.generate_all_data( + or_count=20, # Number of operating rooms + block_count=60, # Number of OR blocks + case_count=100, # Number of surgical cases + equipment_count=250 # Number of equipment usage records ) - - # Print statistics - generator.print_statistics(dataset) - - # Example: Print first operating room - if dataset['operating_rooms']: - print("\n" + "="*60) - print("Sample Operating Room:") - print("="*60) - room = dataset['operating_rooms'][0] - for key, value in room.items(): - if key not in ['equipment_list', 'special_features']: - print(f"{key}: {value}") - - # Example: Print first surgical case - if dataset['surgical_cases']: - print("\n" + "="*60) - print("Sample Surgical Case:") - print("="*60) - case = dataset['surgical_cases'][0] - for key, value in case.items(): - if key not in ['special_equipment', 'blood_products', 'implants']: - print(f"{key}: {value}") \ No newline at end of file + + +if __name__ == "__main__": + # Run the generator + summary = generate_operating_theatre_data() + print("\nGeneration completed successfully!") \ No newline at end of file diff --git a/patients/.DS_Store b/patients/.DS_Store new file mode 100644 index 00000000..2b809d88 Binary files /dev/null and b/patients/.DS_Store differ diff --git a/patients/__pycache__/admin.cpython-312.pyc b/patients/__pycache__/admin.cpython-312.pyc index e6d00540..fed79fb4 100644 Binary files a/patients/__pycache__/admin.cpython-312.pyc and b/patients/__pycache__/admin.cpython-312.pyc differ diff --git a/patients/__pycache__/forms.cpython-312.pyc b/patients/__pycache__/forms.cpython-312.pyc index 77e9f58e..ff06a7b2 100644 Binary files a/patients/__pycache__/forms.cpython-312.pyc and b/patients/__pycache__/forms.cpython-312.pyc differ diff --git a/patients/__pycache__/models.cpython-312.pyc b/patients/__pycache__/models.cpython-312.pyc index 56c5aca6..eb9fa811 100644 Binary files a/patients/__pycache__/models.cpython-312.pyc and b/patients/__pycache__/models.cpython-312.pyc differ diff --git a/patients/__pycache__/urls.cpython-312.pyc b/patients/__pycache__/urls.cpython-312.pyc index 0979de90..16705094 100644 Binary files a/patients/__pycache__/urls.cpython-312.pyc and b/patients/__pycache__/urls.cpython-312.pyc differ diff --git a/patients/__pycache__/views.cpython-312.pyc b/patients/__pycache__/views.cpython-312.pyc index 5d67be1a..dcddb5e3 100644 Binary files a/patients/__pycache__/views.cpython-312.pyc and b/patients/__pycache__/views.cpython-312.pyc differ diff --git a/patients/admin.py b/patients/admin.py index c55d03f3..5fd29a14 100644 --- a/patients/admin.py +++ b/patients/admin.py @@ -4,10 +4,7 @@ Admin configuration for patients app. from django.contrib import admin from django.utils.html import format_html -from .models import ( - PatientProfile, EmergencyContact, InsuranceInfo, - ConsentTemplate, ConsentForm, PatientNote -) +from .models import * class EmergencyContactInline(admin.TabularInline): @@ -425,3 +422,136 @@ class PatientNoteAdmin(admin.ModelAdmin): def get_queryset(self, request): return super().get_queryset(request).select_related('patient', 'created_by') +class ClaimDocumentInline(admin.TabularInline): + """Inline admin for claim documents.""" + model = ClaimDocument + extra = 0 + readonly_fields = ['uploaded_at', 'file_size'] + + +class ClaimStatusHistoryInline(admin.TabularInline): + """Inline admin for claim status history.""" + model = ClaimStatusHistory + extra = 0 + readonly_fields = ['changed_at'] + ordering = ['-changed_at'] + fields = [ 'changed_at'] + + +@admin.register(InsuranceClaim) +class InsuranceClaimAdmin(admin.ModelAdmin): + """Admin interface for InsuranceClaim.""" + + list_display = [ + 'claim_number', 'patient', 'claim_type', 'priority', + 'billed_amount', 'approved_amount', 'service_date', 'submitted_date' + ] + list_filter = [ + 'claim_type', 'priority', 'service_date', + 'submitted_date', 'processed_date' + ] + search_fields = [ + 'claim_number', 'patient__first_name', 'patient__last_name', + 'service_provider', 'facility_name', 'primary_diagnosis_code' + ] + ordering = ['-created_at'] + + fieldsets = ( + ('Claim Information', { + 'fields': ('claim_number', 'patient', 'insurance_info', 'claim_type', 'status', 'priority') + }), + ('Service Information', { + 'fields': ( + 'service_date', 'service_provider', 'service_provider_license', + 'facility_name', 'facility_license' + ) + }), + ('Medical Codes', { + 'fields': ( + 'primary_diagnosis_code', 'primary_diagnosis_description', + 'secondary_diagnosis_codes', 'procedure_codes' + ) + }), + ('Financial Information', { + 'fields': ( + 'billed_amount', 'approved_amount', 'paid_amount', + 'patient_responsibility', 'discount_amount' + ) + }), + ('Processing Dates', { + 'fields': ('submitted_date', 'processed_date', 'payment_date') + }), + ('Saudi-specific Information', { + 'fields': ('saudi_id_number', 'insurance_card_number', 'authorization_number') + }), + ('Denial/Appeal Information', { + 'fields': ('denial_reason', 'denial_code', 'appeal_date', 'appeal_reason'), + 'classes': ('collapse',) + }), + ('Additional Information', { + 'fields': ('notes', 'attachments'), + 'classes': ('collapse',) + }) + ) + + readonly_fields = ['created_at', 'updated_at'] + inlines = [ClaimDocumentInline, ClaimStatusHistoryInline] + + def get_queryset(self, request): + """Optimize queryset with select_related.""" + return super().get_queryset(request).select_related('patient', 'insurance_info') + + def formfield_for_foreignkey(self, db_field, request, **kwargs): + """Optimize foreign key fields.""" + if db_field.name == "patient": + kwargs["queryset"] = PatientProfile.objects.select_related('tenant') + elif db_field.name == "insurance_info": + kwargs["queryset"] = InsuranceInfo.objects.select_related('patient') + return super().formfield_for_foreignkey(db_field, request, **kwargs) + + +@admin.register(ClaimDocument) +class ClaimDocumentAdmin(admin.ModelAdmin): + """Admin interface for ClaimDocument.""" + + list_display = [ + 'title', 'claim', 'document_type', 'file_size_display', + 'mime_type', 'uploaded_at', 'uploaded_by' + ] + list_filter = ['document_type', 'mime_type', 'uploaded_at'] + search_fields = ['title', 'claim__claim_number', 'description'] + ordering = ['-uploaded_at'] + + def file_size_display(self, obj): + """Display file size in human readable format.""" + size = obj.file_size + for unit in ['B', 'KB', 'MB', 'GB']: + if size < 1024.0: + return f"{size:.1f} {unit}" + size /= 1024.0 + return f"{size:.1f} TB" + + file_size_display.short_description = 'File Size' + + +@admin.register(ClaimStatusHistory) +class ClaimStatusHistoryAdmin(admin.ModelAdmin): + """Admin interface for ClaimStatusHistory.""" + + list_display = [ + 'claim', 'from_status', 'to_status', 'changed_at', 'changed_by' + ] + list_filter = ['from_status', 'to_status', 'changed_at'] + search_fields = ['claim__claim_number', 'reason', 'notes'] + ordering = ['-changed_at'] + + def get_queryset(self, request): + """Optimize queryset with select_related.""" + return super().get_queryset(request).select_related('claim', 'changed_by') + + +# Custom admin site configuration +admin.site.site_header = "Hospital Management System - Patients" +admin.site.site_title = "HMS Patients Admin" +admin.site.index_title = "Patients Administration" + diff --git a/patients/data_generators/__init__.py b/patients/data_generators/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/patients/data_generators/__pycache__/__init__.cpython-312.pyc b/patients/data_generators/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..ba2a1326 Binary files /dev/null and b/patients/data_generators/__pycache__/__init__.cpython-312.pyc differ diff --git a/patients/data_generators/__pycache__/saudi_claims_generator.cpython-312.pyc b/patients/data_generators/__pycache__/saudi_claims_generator.cpython-312.pyc new file mode 100644 index 00000000..b639a935 Binary files /dev/null and b/patients/data_generators/__pycache__/saudi_claims_generator.cpython-312.pyc differ diff --git a/patients/data_generators/saudi_claims_generator.py b/patients/data_generators/saudi_claims_generator.py new file mode 100644 index 00000000..0c1bb5ab --- /dev/null +++ b/patients/data_generators/saudi_claims_generator.py @@ -0,0 +1,592 @@ +""" +Saudi-influenced Insurance Claims Data Generator + +This module generates realistic insurance claims data tailored for the Saudi healthcare system, +including local insurance providers, medical facilities, and healthcare practices. +""" + +import random +import uuid +from datetime import datetime, timedelta +from decimal import Decimal +from django.utils import timezone +from django.contrib.auth import get_user_model + +User = get_user_model() + + +class SaudiClaimsDataGenerator: + """ + Generates realistic insurance claims data for Saudi healthcare system. + """ + + # Saudi Insurance Companies + SAUDI_INSURANCE_COMPANIES = [ + 'Tawuniya (The Company for Cooperative Insurance)', + 'Bupa Arabia for Cooperative Insurance', + 'Malath Cooperative Insurance & Reinsurance Company', + 'Saudi Enaya Cooperative Insurance Company', + 'Allianz Saudi Fransi Cooperative Insurance Company', + 'AXA Cooperative Insurance Company', + 'Arabian Shield Cooperative Insurance Company', + 'Gulf Union Alahlia Cooperative Insurance Company', + 'Solidarity Saudi Takaful Company', + 'Al Rajhi Takaful', + 'Weqaya Takaful Insurance & Reinsurance Company', + 'Sanad Cooperative Insurance & Reinsurance Company', + 'United Cooperative Assurance Company', + 'Buruj Cooperative Insurance Company', + 'Wataniya Insurance Company', + 'Saudi Re for Cooperative Reinsurance Company', + 'Amana Cooperative Insurance Company', + 'Ace Arabia Cooperative Insurance Company', + 'Al-Ahlia Insurance Company', + 'Mediterranean & Gulf Insurance & Reinsurance Company', + ] + + # Saudi Healthcare Providers (Doctors) + SAUDI_HEALTHCARE_PROVIDERS = [ + 'د. أحمد محمد العبدالله', # Dr. Ahmed Mohammed Al-Abdullah + 'د. فاطمة علي الزهراني', # Dr. Fatima Ali Al-Zahrani + 'د. محمد عبدالرحمن القحطاني', # Dr. Mohammed Abdulrahman Al-Qahtani + 'د. نورا سعد الغامدي', # Dr. Nora Saad Al-Ghamdi + 'د. خالد يوسف الشهري', # Dr. Khalid Youssef Al-Shahri + 'د. عائشة حسن الحربي', # Dr. Aisha Hassan Al-Harbi + 'د. عبدالله سليمان المطيري', # Dr. Abdullah Sulaiman Al-Mutairi + 'د. مريم أحمد الدوسري', # Dr. Maryam Ahmed Al-Dosari + 'د. سعد محمد العتيبي', # Dr. Saad Mohammed Al-Otaibi + 'د. هند عبدالعزيز الراشد', # Dr. Hind Abdulaziz Al-Rashid + 'د. عمر فهد الخالدي', # Dr. Omar Fahad Al-Khalidi + 'د. سارة عبدالرحمن الفيصل', # Dr. Sarah Abdulrahman Al-Faisal + 'د. يوسف علي البقمي', # Dr. Youssef Ali Al-Baqami + 'د. ليلى محمد الجبير', # Dr. Layla Mohammed Al-Jubair + 'د. فيصل عبدالله السديري', # Dr. Faisal Abdullah Al-Sudairi + 'د. رنا سعود الأحمد', # Dr. Rana Saud Al-Ahmad + 'د. طارق حسام الدين الأنصاري', # Dr. Tariq Hussamuddin Al-Ansari + 'د. إيمان عبدالمحسن الشمري', # Dr. Iman Abdulmohsen Al-Shamri + 'د. ماجد فواز العسيري', # Dr. Majed Fawaz Al-Asiri + 'د. دانا محمد الفهد', # Dr. Dana Mohammed Al-Fahad + ] + + # Saudi Healthcare Facilities + SAUDI_HEALTHCARE_FACILITIES = [ + 'مستشفى الملك فيصل التخصصي ومركز الأبحاث', # King Faisal Specialist Hospital & Research Centre + 'مستشفى الملك فهد الطبي', # King Fahad Medical City + 'مستشفى الملك عبدالعزيز الجامعي', # King Abdulaziz University Hospital + 'مستشفى الملك خالد الجامعي', # King Khalid University Hospital + 'مستشفى الأمير سلطان العسكري', # Prince Sultan Military Hospital + 'المستشفى السعودي الألماني', # Saudi German Hospital + 'مستشفى دلة', # Dallah Hospital + 'مستشفى الحبيب', # Al Habib Medical Group + 'مستشفى المملكة', # Al Mamlaka Hospital + 'مستشفى الدكتور سليمان الحبيب', # Dr. Sulaiman Al Habib Hospital + 'مستشفى الموسى التخصصي', # Al Mouwasat Hospital + 'مستشفى بقشان', # Bagshan Hospital + 'مستشفى الأهلي', # Al Ahli Hospital + 'مستشفى سعد التخصصي', # Saad Specialist Hospital + 'مستشفى الملك فهد للحرس الوطني', # King Fahad Hospital - National Guard + 'مستشفى الأمير محمد بن عبدالعزيز', # Prince Mohammed bin Abdulaziz Hospital + 'مستشفى الملك سعود', # King Saud Hospital + 'مستشفى الولادة والأطفال', # Maternity and Children Hospital + 'مستشفى العيون التخصصي', # Specialized Eye Hospital + 'مركز الأورام الطبي', # Medical Oncology Center + ] + + # Common Saudi Medical Conditions (ICD-10 codes with Arabic descriptions) + SAUDI_MEDICAL_CONDITIONS = [ + { + 'code': 'E11.9', + 'description_en': 'Type 2 diabetes mellitus without complications', + 'description_ar': 'داء السكري من النوع الثاني بدون مضاعفات', + 'prevalence': 0.25 # High prevalence in Saudi Arabia + }, + { + 'code': 'I10', + 'description_en': 'Essential hypertension', + 'description_ar': 'ارتفاع ضغط الدم الأساسي', + 'prevalence': 0.20 + }, + { + 'code': 'E78.5', + 'description_en': 'Hyperlipidemia', + 'description_ar': 'ارتفاع الدهون في الدم', + 'prevalence': 0.18 + }, + { + 'code': 'M79.3', + 'description_en': 'Panniculitis, unspecified', + 'description_ar': 'التهاب النسيج الشحمي', + 'prevalence': 0.15 + }, + { + 'code': 'J45.9', + 'description_en': 'Asthma, unspecified', + 'description_ar': 'الربو غير المحدد', + 'prevalence': 0.12 + }, + { + 'code': 'K21.9', + 'description_en': 'Gastro-esophageal reflux disease', + 'description_ar': 'مرض الارتجاع المعدي المريئي', + 'prevalence': 0.10 + }, + { + 'code': 'M25.50', + 'description_en': 'Pain in unspecified joint', + 'description_ar': 'ألم في المفصل غير المحدد', + 'prevalence': 0.08 + }, + { + 'code': 'N18.6', + 'description_en': 'End stage renal disease', + 'description_ar': 'المرحلة الأخيرة من مرض الكلى', + 'prevalence': 0.06 + }, + { + 'code': 'F32.9', + 'description_en': 'Major depressive disorder', + 'description_ar': 'اضطراب الاكتئاب الشديد', + 'prevalence': 0.05 + }, + { + 'code': 'Z51.11', + 'description_en': 'Encounter for antineoplastic chemotherapy', + 'description_ar': 'مواجهة للعلاج الكيميائي المضاد للأورام', + 'prevalence': 0.04 + }, + ] + + # Common Procedures (CPT codes) + SAUDI_MEDICAL_PROCEDURES = [ + { + 'code': '99213', + 'description': 'Office visit - established patient', + 'description_ar': 'زيارة العيادة - مريض منتظم', + 'cost_range': (150, 300) + }, + { + 'code': '99214', + 'description': 'Office visit - established patient, moderate complexity', + 'description_ar': 'زيارة العيادة - مريض منتظم، تعقيد متوسط', + 'cost_range': (200, 400) + }, + { + 'code': '80053', + 'description': 'Comprehensive metabolic panel', + 'description_ar': 'فحص الأيض الشامل', + 'cost_range': (100, 200) + }, + { + 'code': '85025', + 'description': 'Blood count; complete (CBC)', + 'description_ar': 'تعداد الدم الكامل', + 'cost_range': (50, 120) + }, + { + 'code': '71020', + 'description': 'Chest X-ray', + 'description_ar': 'أشعة سينية للصدر', + 'cost_range': (80, 150) + }, + { + 'code': '93000', + 'description': 'Electrocardiogram', + 'description_ar': 'تخطيط القلب الكهربائي', + 'cost_range': (75, 150) + }, + { + 'code': '76700', + 'description': 'Abdominal ultrasound', + 'description_ar': 'الموجات فوق الصوتية للبطن', + 'cost_range': (200, 400) + }, + { + 'code': '45378', + 'description': 'Colonoscopy', + 'description_ar': 'تنظير القولون', + 'cost_range': (800, 1500) + }, + { + 'code': '47562', + 'description': 'Laparoscopic cholecystectomy', + 'description_ar': 'استئصال المرارة بالمنظار', + 'cost_range': (5000, 8000) + }, + { + 'code': '66984', + 'description': 'Cataract surgery', + 'description_ar': 'جراحة الساد', + 'cost_range': (3000, 6000) + }, + ] + + # Saudi Names for generating realistic patient data + SAUDI_FIRST_NAMES_MALE = [ + 'محمد', 'أحمد', 'عبدالله', 'عبدالرحمن', 'علي', 'سعد', 'فهد', 'خالد', + 'عبدالعزيز', 'سلطان', 'فيصل', 'عمر', 'يوسف', 'إبراهيم', 'حسن', 'طارق', + 'ماجد', 'نواف', 'بندر', 'تركي', 'مشعل', 'وليد', 'صالح', 'عادل' + ] + + SAUDI_FIRST_NAMES_FEMALE = [ + 'فاطمة', 'عائشة', 'نورا', 'سارة', 'مريم', 'هند', 'ليلى', 'رنا', 'دانا', + 'ريم', 'أمل', 'منى', 'سمر', 'لمى', 'غادة', 'نهى', 'إيمان', 'خديجة', + 'زينب', 'رقية', 'جواهر', 'شهد', 'روان', 'لين' + ] + + SAUDI_FAMILY_NAMES = [ + 'العبدالله', 'الأحمد', 'المحمد', 'العلي', 'الزهراني', 'الغامدي', 'القحطاني', + 'الشهري', 'الحربي', 'المطيري', 'الدوسري', 'العتيبي', 'الراشد', 'الخالدي', + 'الفيصل', 'البقمي', 'الجبير', 'السديري', 'الأنصاري', 'الشمري', 'العسيري', + 'الفهد', 'السعود', 'آل سعود', 'الملك', 'الأمير', 'الشيخ', 'العثمان', + 'الصالح', 'الحسن', 'الحسين', 'الطيار', 'الرشيد', 'الفارس' + ] + + def __init__(self): + """Initialize the Saudi claims data generator.""" + self.generated_claim_numbers = set() + + def generate_saudi_id(self): + """Generate a realistic Saudi ID or Iqama number.""" + # Saudi ID: 1 for Saudi, 2 for resident + prefix = random.choice(['1', '2']) + # Next 9 digits + middle = ''.join([str(random.randint(0, 9)) for _ in range(8)]) + # Check digit (simplified) + check_digit = str(random.randint(0, 9)) + return prefix + middle + check_digit + + def generate_claim_number(self): + """Generate a unique claim number.""" + while True: + year = datetime.now().year + sequence = random.randint(100000, 999999) + claim_number = f"CLM{year}{sequence}" + if claim_number not in self.generated_claim_numbers: + self.generated_claim_numbers.add(claim_number) + return claim_number + + def generate_authorization_number(self): + """Generate a prior authorization number.""" + return f"AUTH{random.randint(100000, 999999)}" + + def generate_provider_license(self): + """Generate a Saudi medical license number.""" + return f"SML{random.randint(10000, 99999)}" + + def generate_facility_license(self): + """Generate a MOH facility license number.""" + return f"MOH{random.randint(100000, 999999)}" + + def select_weighted_condition(self): + """Select a medical condition based on prevalence weights.""" + conditions = self.SAUDI_MEDICAL_CONDITIONS.copy() + weights = [condition['prevalence'] for condition in conditions] + return random.choices(conditions, weights=weights)[0] + + def generate_secondary_diagnoses(self, primary_condition, count=None): + """Generate secondary diagnoses related to primary condition.""" + if count is None: + count = random.choices([0, 1, 2, 3], weights=[0.4, 0.3, 0.2, 0.1])[0] + + secondary = [] + available_conditions = [c for c in self.SAUDI_MEDICAL_CONDITIONS + if c['code'] != primary_condition['code']] + + for _ in range(count): + if available_conditions: + condition = random.choice(available_conditions) + secondary.append({ + 'code': condition['code'], + 'description': condition['description_en'], + 'description_ar': condition['description_ar'] + }) + available_conditions.remove(condition) + + return secondary + + def generate_procedures(self, condition, count=None): + """Generate procedures based on the medical condition.""" + if count is None: + count = random.choices([1, 2, 3], weights=[0.6, 0.3, 0.1])[0] + + procedures = [] + for _ in range(count): + procedure = random.choice(self.SAUDI_MEDICAL_PROCEDURES) + procedures.append({ + 'code': procedure['code'], + 'description': procedure['description'], + 'description_ar': procedure['description_ar'], + 'cost': random.uniform(*procedure['cost_range']) + }) + + return procedures + + def calculate_saudi_costs(self, procedures, claim_type='MEDICAL'): + """Calculate costs in Saudi Riyals with realistic pricing.""" + base_cost = sum(proc['cost'] for proc in procedures) + + # Adjust for claim type + multipliers = { + 'EMERGENCY': 1.5, + 'INPATIENT': 2.0, + 'SURGICAL': 3.0, + 'MATERNITY': 2.5, + 'DENTAL': 0.8, + 'VISION': 0.6, + 'PHARMACY': 0.3, + 'PREVENTIVE': 0.5, + } + + multiplier = multipliers.get(claim_type, 1.0) + billed_amount = Decimal(str(base_cost * multiplier)) + + # Insurance approval rates (realistic for Saudi market) + approval_rates = { + 'PREVENTIVE': (0.95, 1.0), + 'MEDICAL': (0.80, 0.95), + 'EMERGENCY': (0.90, 1.0), + 'INPATIENT': (0.85, 0.95), + 'SURGICAL': (0.75, 0.90), + 'DENTAL': (0.70, 0.85), + 'VISION': (0.60, 0.80), + 'PHARMACY': (0.85, 0.95), + 'MATERNITY': (0.90, 1.0), + } + + min_rate, max_rate = approval_rates.get(claim_type, (0.75, 0.90)) + approval_rate = random.uniform(min_rate, max_rate) + approved_amount = billed_amount * Decimal(str(approval_rate)) + + # Patient responsibility (copay/deductible) + copay_percentage = random.uniform(0.10, 0.25) # 10-25% patient responsibility + patient_responsibility = approved_amount * Decimal(str(copay_percentage)) + + # Paid amount (usually same as approved for Saudi insurance) + paid_amount = approved_amount - patient_responsibility + + return { + 'billed_amount': round(billed_amount, 2), + 'approved_amount': round(approved_amount, 2), + 'paid_amount': round(paid_amount, 2), + 'patient_responsibility': round(patient_responsibility, 2), + 'discount_amount': round(billed_amount - approved_amount, 2) + } + + def generate_claim_status_progression(self): + """Generate realistic claim status progression with dates.""" + statuses = ['DRAFT', 'SUBMITTED', 'UNDER_REVIEW', 'APPROVED', 'PAID'] + + # Some claims may be denied or require appeals + if random.random() < 0.15: # 15% denial rate + statuses = ['DRAFT', 'SUBMITTED', 'UNDER_REVIEW', 'DENIED'] + if random.random() < 0.3: # 30% of denied claims are appealed + statuses.extend(['APPEALED', 'UNDER_REVIEW', 'APPROVED', 'PAID']) + + # Generate dates for each status + base_date = datetime.now() - timedelta(days=random.randint(1, 180)) + status_dates = {} + + for i, status in enumerate(statuses): + if i == 0: + status_dates[status] = base_date + else: + days_increment = random.randint(1, 14) # 1-14 days between status changes + status_dates[status] = status_dates[statuses[i-1]] + timedelta(days=days_increment) + + return statuses[-1], status_dates + + def generate_denial_info(self): + """Generate denial information for denied claims.""" + denial_reasons = [ + 'خدمة غير مغطاة بالبوليصة', # Service not covered by policy + 'مطلوب تصريح مسبق', # Prior authorization required + 'معلومات ناقصة', # Incomplete information + 'مقدم خدمة خارج الشبكة', # Out of network provider + 'تجاوز الحد الأقصى السنوي', # Annual limit exceeded + 'خدمة تجميلية غير ضرورية طبياً', # Cosmetic service not medically necessary + 'تكرار في المطالبة', # Duplicate claim + 'انتهاء صلاحية البوليصة', # Policy expired + 'خدمة مستثناة', # Excluded service + 'مطلوب تقرير طبي إضافي', # Additional medical report required + ] + + denial_codes = ['D001', 'D002', 'D003', 'D004', 'D005', 'D006', 'D007', 'D008', 'D009', 'D010'] + + return { + 'reason': random.choice(denial_reasons), + 'code': random.choice(denial_codes) + } + + def generate_attachments(self, claim_type): + """Generate realistic document attachments for claims.""" + base_attachments = [ + {'type': 'MEDICAL_REPORT', 'name': 'تقرير طبي.pdf'}, + {'type': 'INVOICE', 'name': 'فاتورة.pdf'}, + {'type': 'INSURANCE_CARD', 'name': 'بطاقة التأمين.pdf'}, + ] + + type_specific_attachments = { + 'SURGICAL': [ + {'type': 'OPERATIVE_REPORT', 'name': 'تقرير العملية.pdf'}, + {'type': 'AUTHORIZATION', 'name': 'تصريح مسبق.pdf'}, + ], + 'EMERGENCY': [ + {'type': 'DISCHARGE_SUMMARY', 'name': 'ملخص الخروج.pdf'}, + ], + 'PHARMACY': [ + {'type': 'PRESCRIPTION', 'name': 'وصفة طبية.pdf'}, + ], + 'RADIOLOGY': [ + {'type': 'RADIOLOGY_REPORT', 'name': 'تقرير الأشعة.pdf'}, + ], + 'DIAGNOSTIC': [ + {'type': 'LAB_RESULT', 'name': 'نتائج المختبر.pdf'}, + ], + } + + attachments = base_attachments.copy() + if claim_type in type_specific_attachments: + attachments.extend(type_specific_attachments[claim_type]) + + # Add random additional documents + additional_docs = [ + {'type': 'REFERRAL', 'name': 'خطاب تحويل.pdf'}, + {'type': 'ID_COPY', 'name': 'نسخة الهوية.pdf'}, + {'type': 'OTHER', 'name': 'مستند إضافي.pdf'}, + ] + + num_additional = random.randint(0, 2) + attachments.extend(random.sample(additional_docs, num_additional)) + + return attachments + + def generate_single_claim(self, patient, insurance_info, created_by=None): + """Generate a single realistic insurance claim.""" + # Select claim type with Saudi healthcare patterns + claim_types = [ + ('MEDICAL', 0.35), + ('OUTPATIENT', 0.25), + ('PHARMACY', 0.15), + ('DIAGNOSTIC', 0.10), + ('EMERGENCY', 0.05), + ('INPATIENT', 0.04), + ('PREVENTIVE', 0.03), + ('DENTAL', 0.02), + ('SURGICAL', 0.01), + ] + + claim_type = random.choices( + [ct[0] for ct in claim_types], + weights=[ct[1] for ct in claim_types] + )[0] + + # Generate medical information + primary_condition = self.select_weighted_condition() + secondary_conditions = self.generate_secondary_diagnoses(primary_condition) + procedures = self.generate_procedures(primary_condition) + + # Calculate costs + costs = self.calculate_saudi_costs(procedures, claim_type) + + # Generate status and dates + final_status, status_dates = self.generate_claim_status_progression() + + # Service date (1-180 days ago) + service_date = datetime.now().date() - timedelta(days=random.randint(1, 180)) + + # Generate claim data + claim_data = { + 'claim_number': self.generate_claim_number(), + 'patient': patient, + 'insurance_info': insurance_info, + 'claim_type': claim_type, + 'status': final_status, + 'priority': random.choices( + ['LOW', 'NORMAL', 'HIGH', 'URGENT', 'EMERGENCY'], + weights=[0.1, 0.6, 0.2, 0.08, 0.02] + )[0], + 'service_date': service_date, + 'service_provider': random.choice(self.SAUDI_HEALTHCARE_PROVIDERS), + 'service_provider_license': self.generate_provider_license(), + 'facility_name': random.choice(self.SAUDI_HEALTHCARE_FACILITIES), + 'facility_license': self.generate_facility_license(), + 'primary_diagnosis_code': primary_condition['code'], + 'primary_diagnosis_description': f"{primary_condition['description_en']} / {primary_condition['description_ar']}", + 'secondary_diagnosis_codes': secondary_conditions, + 'procedure_codes': procedures, + 'saudi_id_number': self.generate_saudi_id(), + 'insurance_card_number': f"IC{random.randint(100000000, 999999999)}", + 'authorization_number': self.generate_authorization_number() if random.random() < 0.3 else None, + 'notes': f"مطالبة تأمينية لـ {claim_type.lower()} - تم إنشاؤها تلقائياً", + 'attachments': self.generate_attachments(claim_type), + 'created_by': created_by, + **costs + } + + # Add status-specific dates + if 'SUBMITTED' in status_dates: + claim_data['submitted_date'] = timezone.make_aware( + datetime.combine(status_dates['SUBMITTED'].date(), datetime.min.time()) + ) + + if final_status in ['APPROVED', 'PARTIALLY_APPROVED', 'DENIED'] and 'UNDER_REVIEW' in status_dates: + claim_data['processed_date'] = timezone.make_aware( + datetime.combine(status_dates['UNDER_REVIEW'].date(), datetime.min.time()) + ) + timedelta(days=random.randint(1, 7)) + + if final_status == 'PAID' and 'PAID' in status_dates: + claim_data['payment_date'] = timezone.make_aware( + datetime.combine(status_dates['PAID'].date(), datetime.min.time()) + ) + + # Add denial information if claim is denied + if final_status == 'DENIED': + denial_info = self.generate_denial_info() + claim_data['denial_reason'] = denial_info['reason'] + claim_data['denial_code'] = denial_info['code'] + + return claim_data + + def generate_multiple_claims(self, patients_with_insurance, num_claims=100, created_by=None): + """Generate multiple realistic insurance claims.""" + claims_data = [] + + for _ in range(num_claims): + # Select random patient with insurance + patient, insurance_info = random.choice(patients_with_insurance) + + # Generate claim + claim_data = self.generate_single_claim(patient, insurance_info, created_by) + claims_data.append(claim_data) + + return claims_data + + def get_saudi_insurance_statistics(self, claims): + """Generate statistics specific to Saudi insurance market.""" + total_claims = len(claims) + if total_claims == 0: + return {} + + # Calculate statistics + approved_claims = len([c for c in claims if c['status'] in ['APPROVED', 'PARTIALLY_APPROVED', 'PAID']]) + denied_claims = len([c for c in claims if c['status'] == 'DENIED']) + pending_claims = len([c for c in claims if c['status'] in ['SUBMITTED', 'UNDER_REVIEW']]) + + total_billed = sum(float(c['billed_amount']) for c in claims) + total_approved = sum(float(c['approved_amount']) for c in claims) + total_paid = sum(float(c['paid_amount']) for c in claims) + + return { + 'total_claims': total_claims, + 'approved_claims': approved_claims, + 'denied_claims': denied_claims, + 'pending_claims': pending_claims, + 'approval_rate': (approved_claims / total_claims) * 100, + 'denial_rate': (denied_claims / total_claims) * 100, + 'total_billed_sar': total_billed, + 'total_approved_sar': total_approved, + 'total_paid_sar': total_paid, + 'average_claim_amount_sar': total_billed / total_claims, + 'average_processing_time_days': 7.5, # Typical for Saudi market + } + diff --git a/patients/forms.py b/patients/forms.py index 59f2e098..b649d554 100644 --- a/patients/forms.py +++ b/patients/forms.py @@ -163,7 +163,7 @@ class ConsentTemplateForm(forms.ModelForm): fields = [ 'name', 'description', 'category', 'content', 'version', 'is_active', 'requires_signature', 'requires_witness', 'requires_guardian', - 'effective_date', 'expiry_date' + 'effective_date', 'expiry_date', ] widgets = { 'name': forms.TextInput(attrs={'class': 'form-control'}), diff --git a/patients/management/.DS_Store b/patients/management/.DS_Store new file mode 100644 index 00000000..4b9d3d3c Binary files /dev/null and b/patients/management/.DS_Store differ diff --git a/patients/management/__init__.py b/patients/management/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/patients/management/__pycache__/__init__.cpython-312.pyc b/patients/management/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..43277557 Binary files /dev/null and b/patients/management/__pycache__/__init__.cpython-312.pyc differ diff --git a/patients/management/commands/__init__.py b/patients/management/commands/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/patients/management/commands/__pycache__/__init__.cpython-312.pyc b/patients/management/commands/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..020468e1 Binary files /dev/null and b/patients/management/commands/__pycache__/__init__.cpython-312.pyc differ diff --git a/patients/management/commands/__pycache__/generate_saudi_claims.cpython-312.pyc b/patients/management/commands/__pycache__/generate_saudi_claims.cpython-312.pyc new file mode 100644 index 00000000..1285f3d6 Binary files /dev/null and b/patients/management/commands/__pycache__/generate_saudi_claims.cpython-312.pyc differ diff --git a/patients/management/commands/generate_saudi_claims.py b/patients/management/commands/generate_saudi_claims.py new file mode 100644 index 00000000..718a2182 --- /dev/null +++ b/patients/management/commands/generate_saudi_claims.py @@ -0,0 +1,398 @@ +""" +Django management command to generate Saudi-influenced insurance claims data. + +Usage: + python manage.py generate_saudi_claims --count 100 --tenant-id 1 + python manage.py generate_saudi_claims --count 500 --all-tenants + python manage.py generate_saudi_claims --count 50 --patient-id 123 +""" + +from django.core.management.base import BaseCommand, CommandError +from django.contrib.auth import get_user_model +from django.db import transaction +from django.utils import timezone +from patients.models import PatientProfile, InsuranceInfo, InsuranceClaim, ClaimStatusHistory +from patients.data_generators.saudi_claims_generator import SaudiClaimsDataGenerator +from core.models import Tenant +import random + +User = get_user_model() + + +class Command(BaseCommand): + help = 'Generate Saudi-influenced insurance claims data for testing and development' + + def add_arguments(self, parser): + parser.add_argument( + '--count', + type=int, + default=50, + help='Number of claims to generate (default: 50)' + ) + + parser.add_argument( + '--tenant-id', + type=int, + help='Specific tenant ID to generate claims for' + ) + + parser.add_argument( + '--all-tenants', + action='store_true', + help='Generate claims for all tenants' + ) + + parser.add_argument( + '--patient-id', + type=int, + help='Generate claims for a specific patient' + ) + + parser.add_argument( + '--insurance-id', + type=int, + help='Generate claims for a specific insurance policy' + ) + + parser.add_argument( + '--claim-type', + choices=['MEDICAL', 'DENTAL', 'VISION', 'PHARMACY', 'EMERGENCY', + 'INPATIENT', 'OUTPATIENT', 'PREVENTIVE', 'MATERNITY', + 'MENTAL_HEALTH', 'REHABILITATION', 'DIAGNOSTIC', 'SURGICAL', 'CHRONIC_CARE'], + help='Generate claims of specific type only' + ) + + parser.add_argument( + '--status', + choices=['DRAFT', 'SUBMITTED', 'UNDER_REVIEW', 'APPROVED', + 'PARTIALLY_APPROVED', 'DENIED', 'PAID', 'CANCELLED', + 'APPEALED', 'RESUBMITTED'], + help='Generate claims with specific status only' + ) + + parser.add_argument( + '--days-back', + type=int, + default=180, + help='Generate claims from this many days back (default: 180)' + ) + + parser.add_argument( + '--dry-run', + action='store_true', + help='Show what would be generated without creating records' + ) + + parser.add_argument( + '--verbose', + action='store_true', + help='Show detailed output' + ) + + parser.add_argument( + '--clear-existing', + action='store_true', + help='Clear existing claims before generating new ones (USE WITH CAUTION)' + ) + + def handle(self, *args, **options): + """Main command handler.""" + self.verbosity = options.get('verbosity', 1) + self.verbose = options.get('verbose', False) + + try: + # Validate options + self._validate_options(options) + + # Get patients with insurance + patients_with_insurance = self._get_patients_with_insurance(options) + + if not patients_with_insurance: + raise CommandError("No patients with insurance found. Please create patients and insurance records first.") + + # Clear existing claims if requested + if options['clear_existing']: + self._clear_existing_claims(options) + + # Generate claims + if options['dry_run']: + self._dry_run(patients_with_insurance, options) + else: + self._generate_claims(patients_with_insurance, options) + + except Exception as e: + raise CommandError(f"Error generating claims: {str(e)}") + + def _validate_options(self, options): + """Validate command options.""" + if options['tenant_id'] and options['all_tenants']: + raise CommandError("Cannot specify both --tenant-id and --all-tenants") + + if options['count'] <= 0: + raise CommandError("Count must be a positive integer") + + if options['days_back'] <= 0: + raise CommandError("Days back must be a positive integer") + + def _get_patients_with_insurance(self, options): + """Get patients with insurance based on options.""" + patients_with_insurance = [] + + # Base queryset + patients_query = PatientProfile.objects.select_related('tenant') + insurance_query = InsuranceInfo.objects.select_related('patient', 'patient__tenant') + + # Filter by tenant + if options['tenant_id']: + try: + tenant = Tenant.objects.get(id=options['tenant_id']) + patients_query = patients_query.filter(tenant=tenant) + insurance_query = insurance_query.filter(patient__tenant=tenant) + if self.verbose: + self.stdout.write(f"Filtering by tenant: {tenant.name}") + except Tenant.DoesNotExist: + raise CommandError(f"Tenant with ID {options['tenant_id']} not found") + + elif not options['all_tenants']: + # Default to first tenant if no specific tenant specified + first_tenant = Tenant.objects.first() + if first_tenant: + patients_query = patients_query.filter(tenant=first_tenant) + insurance_query = insurance_query.filter(patient__tenant=first_tenant) + if self.verbose: + self.stdout.write(f"Using default tenant: {first_tenant.name}") + + # Filter by specific patient + if options['patient_id']: + try: + patient = patients_query.get(id=options['patient_id']) + insurance_query = insurance_query.filter(patient=patient) + if self.verbose: + self.stdout.write(f"Filtering by patient: {patient.get_full_name()}") + except PatientProfile.DoesNotExist: + raise CommandError(f"Patient with ID {options['patient_id']} not found") + + # Filter by specific insurance + if options['insurance_id']: + try: + insurance = insurance_query.get(id=options['insurance_id']) + patients_with_insurance = [(insurance.patient, insurance)] + if self.verbose: + self.stdout.write(f"Using specific insurance: {insurance.insurance_provider}") + except InsuranceInfo.DoesNotExist: + raise CommandError(f"Insurance with ID {options['insurance_id']} not found") + else: + # Get all patients with insurance + for insurance in insurance_query: + patients_with_insurance.append((insurance.patient, insurance)) + + return patients_with_insurance + + def _clear_existing_claims(self, options): + """Clear existing claims if requested.""" + if not options['clear_existing']: + return + + self.stdout.write( + self.style.WARNING("Clearing existing claims...") + ) + + # Build filter for claims to delete + claims_query = InsuranceClaim.objects.all() + + if options['tenant_id']: + claims_query = claims_query.filter(patient__tenant_id=options['tenant_id']) + elif not options['all_tenants']: + first_tenant = Tenant.objects.first() + if first_tenant: + claims_query = claims_query.filter(patient__tenant=first_tenant) + + if options['patient_id']: + claims_query = claims_query.filter(patient_id=options['patient_id']) + + if options['insurance_id']: + claims_query = claims_query.filter(insurance_info_id=options['insurance_id']) + + deleted_count = claims_query.count() + claims_query.delete() + + self.stdout.write( + self.style.SUCCESS(f"Cleared {deleted_count} existing claims") + ) + + def _dry_run(self, patients_with_insurance, options): + """Show what would be generated without creating records.""" + self.stdout.write( + self.style.WARNING("DRY RUN - No records will be created") + ) + + generator = SaudiClaimsDataGenerator() + + # Generate sample claims data + sample_claims = generator.generate_multiple_claims( + patients_with_insurance[:min(5, len(patients_with_insurance))], + min(5, options['count']) + ) + + self.stdout.write(f"\nWould generate {options['count']} claims") + self.stdout.write(f"Available patients with insurance: {len(patients_with_insurance)}") + + if sample_claims: + self.stdout.write(f"\nSample claim data:") + for i, claim in enumerate(sample_claims[:3], 1): + self.stdout.write(f"\nClaim {i}:") + self.stdout.write(f" - Number: {claim['claim_number']}") + self.stdout.write(f" - Patient: {claim['patient'].get_full_name()}") + self.stdout.write(f" - Type: {claim['claim_type']}") + self.stdout.write(f" - Status: {claim['status']}") + self.stdout.write(f" - Amount: {claim['billed_amount']} SAR") + self.stdout.write(f" - Provider: {claim['service_provider']}") + self.stdout.write(f" - Facility: {claim['facility_name']}") + + # Show statistics + stats = generator.get_saudi_insurance_statistics(sample_claims) + if stats: + self.stdout.write(f"\nSample statistics:") + self.stdout.write(f" - Total claims: {stats['total_claims']}") + self.stdout.write(f" - Approval rate: {stats['approval_rate']:.1f}%") + self.stdout.write(f" - Average amount: {stats['average_claim_amount_sar']:.2f} SAR") + + def _generate_claims(self, patients_with_insurance, options): + """Generate the actual claims records.""" + generator = SaudiClaimsDataGenerator() + created_by = self._get_system_user() + + self.stdout.write(f"Generating {options['count']} insurance claims...") + + if self.verbose: + self.stdout.write(f"Available patients with insurance: {len(patients_with_insurance)}") + + # Generate claims data + claims_data = generator.generate_multiple_claims( + patients_with_insurance, + options['count'], + created_by + ) + + # Filter by claim type if specified + if options['claim_type']: + claims_data = [c for c in claims_data if c['claim_type'] == options['claim_type']] + if self.verbose: + self.stdout.write(f"Filtered to {len(claims_data)} claims of type {options['claim_type']}") + + # Filter by status if specified + if options['status']: + claims_data = [c for c in claims_data if c['status'] == options['status']] + if self.verbose: + self.stdout.write(f"Filtered to {len(claims_data)} claims with status {options['status']}") + + if not claims_data: + self.stdout.write( + self.style.WARNING("No claims data generated after filtering") + ) + return + + # Create claims in database + created_claims = [] + created_count = 0 + + with transaction.atomic(): + for claim_data in claims_data: + try: + # Create the claim + claim = InsuranceClaim.objects.create(**claim_data) + created_claims.append(claim) + created_count += 1 + + # Create status history + self._create_status_history(claim, created_by) + + if self.verbose and created_count % 10 == 0: + self.stdout.write(f"Created {created_count} claims...") + + except Exception as e: + self.stdout.write( + self.style.ERROR(f"Error creating claim: {str(e)}") + ) + continue + + # Show results + self.stdout.write( + self.style.SUCCESS(f"Successfully created {created_count} insurance claims") + ) + + # Show statistics + if created_claims: + stats = generator.get_saudi_insurance_statistics(claims_data) + self.stdout.write(f"\nGenerated claims statistics:") + self.stdout.write(f" - Total claims: {stats['total_claims']}") + self.stdout.write(f" - Approved claims: {stats['approved_claims']}") + self.stdout.write(f" - Denied claims: {stats['denied_claims']}") + self.stdout.write(f" - Pending claims: {stats['pending_claims']}") + self.stdout.write(f" - Approval rate: {stats['approval_rate']:.1f}%") + self.stdout.write(f" - Total billed: {stats['total_billed_sar']:,.2f} SAR") + self.stdout.write(f" - Total approved: {stats['total_approved_sar']:,.2f} SAR") + self.stdout.write(f" - Average claim: {stats['average_claim_amount_sar']:,.2f} SAR") + + # Show sample claims + if self.verbose and created_claims: + self.stdout.write(f"\nSample created claims:") + for claim in created_claims[:3]: + self.stdout.write(f" - {claim.claim_number}: {claim.patient.get_full_name()} - {claim.billed_amount} SAR ({claim.status})") + + def _create_status_history(self, claim, created_by): + """Create status history for the claim.""" + # Create initial status history entry + ClaimStatusHistory.objects.create( + claim=claim, + from_status=None, + to_status='DRAFT', + reason='Initial claim creation', + changed_by=created_by + ) + + # If claim has progressed beyond draft, create additional history + if claim.status != 'DRAFT': + statuses = ['DRAFT', 'SUBMITTED', 'UNDER_REVIEW'] + + if claim.status in ['APPROVED', 'PARTIALLY_APPROVED', 'PAID']: + statuses.append('APPROVED') + if claim.status == 'PAID': + statuses.append('PAID') + elif claim.status == 'DENIED': + statuses.append('DENIED') + + # Create history entries for each status transition + for i in range(1, len(statuses)): + ClaimStatusHistory.objects.create( + claim=claim, + from_status=statuses[i-1], + to_status=statuses[i], + reason=f'Automatic status progression to {statuses[i]}', + changed_by=created_by + ) + + def _get_system_user(self): + """Get or create a system user for created_by field.""" + try: + return User.objects.get(username='system') + except User.DoesNotExist: + # Try to get the first superuser + superuser = User.objects.filter(is_superuser=True).first() + if superuser: + return superuser + + # Try to get any user + user = User.objects.first() + if user: + return user + + # Create a system user if none exists + return User.objects.create_user( + username='system', + email='system@hospital.local', + first_name='System', + last_name='Generator', + is_active=True + ) + diff --git a/patients/management/commands/populate_saudi_insurance.py b/patients/management/commands/populate_saudi_insurance.py new file mode 100644 index 00000000..b7788877 --- /dev/null +++ b/patients/management/commands/populate_saudi_insurance.py @@ -0,0 +1,228 @@ +""" +Django management command to populate Saudi insurance providers and create sample patients. + +Usage: + python manage.py populate_saudi_insurance --tenant-id 1 + python manage.py populate_saudi_insurance --create-patients 50 +""" + +from django.core.management.base import BaseCommand, CommandError +from django.contrib.auth import get_user_model +from django.db import transaction +from django.utils import timezone +from patients.models import PatientProfile, InsuranceInfo +from patients.data_generators.saudi_claims_generator import SaudiClaimsDataGenerator +from core.models import Tenant +import random +from datetime import datetime, timedelta + +User = get_user_model() + + +class Command(BaseCommand): + help = 'Populate Saudi insurance providers and create sample patients with insurance' + + def add_arguments(self, parser): + parser.add_argument( + '--tenant-id', + type=int, + required=True, + help='Tenant ID to create data for' + ) + + parser.add_argument( + '--create-patients', + type=int, + default=20, + help='Number of patients to create (default: 20)' + ) + + parser.add_argument( + '--dry-run', + action='store_true', + help='Show what would be created without creating records' + ) + + def handle(self, *args, **options): + """Main command handler.""" + try: + # Get tenant + tenant = Tenant.objects.get(id=options['tenant_id']) + + if options['dry_run']: + self._dry_run(tenant, options) + else: + self._create_data(tenant, options) + + except Tenant.DoesNotExist: + raise CommandError(f"Tenant with ID {options['tenant_id']} not found") + except Exception as e: + raise CommandError(f"Error: {str(e)}") + + def _dry_run(self, tenant, options): + """Show what would be created.""" + self.stdout.write( + self.style.WARNING("DRY RUN - No records will be created") + ) + + generator = SaudiClaimsDataGenerator() + + self.stdout.write(f"\nWould create for tenant: {tenant.name}") + self.stdout.write(f"Number of patients: {options['create_patients']}") + self.stdout.write(f"Insurance companies available: {len(generator.SAUDI_INSURANCE_COMPANIES)}") + + # Show sample data + self.stdout.write(f"\nSample insurance companies:") + for company in generator.SAUDI_INSURANCE_COMPANIES[:5]: + self.stdout.write(f" - {company}") + + self.stdout.write(f"\nSample patient names:") + for i in range(3): + male_name = f"{random.choice(generator.SAUDI_FIRST_NAMES_MALE)} {random.choice(generator.SAUDI_FAMILY_NAMES)}" + female_name = f"{random.choice(generator.SAUDI_FIRST_NAMES_FEMALE)} {random.choice(generator.SAUDI_FAMILY_NAMES)}" + self.stdout.write(f" - {male_name}") + self.stdout.write(f" - {female_name}") + + def _create_data(self, tenant, options): + """Create the actual data.""" + generator = SaudiClaimsDataGenerator() + created_by = self._get_system_user() + + self.stdout.write(f"Creating data for tenant: {tenant.name}") + + patients_created = 0 + insurance_created = 0 + + with transaction.atomic(): + # Create patients with insurance + for i in range(options['create_patients']): + try: + # Generate patient data + is_male = random.choice([True, False]) + + if is_male: + first_name = random.choice(generator.SAUDI_FIRST_NAMES_MALE) + gender = 'M' + else: + first_name = random.choice(generator.SAUDI_FIRST_NAMES_FEMALE) + gender = 'F' + + last_name = random.choice(generator.SAUDI_FAMILY_NAMES) + + # Generate birth date (18-80 years old) + birth_date = datetime.now().date() - timedelta( + days=random.randint(18*365, 80*365) + ) + + # Create patient + patient = PatientProfile.objects.create( + tenant=tenant, + mrn=f"MRN{random.randint(100000, 999999)}", + first_name=first_name, + last_name=last_name, + date_of_birth=birth_date, + gender=gender, + phone_number=f"+966{random.randint(500000000, 599999999)}", + email=f"{first_name.lower()}.{last_name.lower().replace(' ', '')}@example.com", + address=f"الرياض، المملكة العربية السعودية", + city="الرياض", + country="SA", + created_by=created_by + ) + patients_created += 1 + + # Create 1-2 insurance policies per patient + num_insurances = random.choices([1, 2], weights=[0.7, 0.3])[0] + + for j in range(num_insurances): + insurance_company = random.choice(generator.SAUDI_INSURANCE_COMPANIES) + + # Generate policy dates + effective_date = datetime.now().date() - timedelta( + days=random.randint(30, 365) + ) + expiration_date = effective_date + timedelta(days=365) + + # Create insurance + insurance = InsuranceInfo.objects.create( + patient=patient, + insurance_type='PRIMARY' if j == 0 else 'SECONDARY', + insurance_company=insurance_company, + plan_name=f"{insurance_company.split()[0]} Premium Plan", + plan_type=random.choice(['HMO', 'PPO', 'EPO']), + policy_number=f"POL{random.randint(100000000, 999999999)}", + member_id=f"MEM{random.randint(100000000, 999999999)}", + group_number=f"GRP{random.randint(10000, 99999)}", + effective_date=effective_date, + expiration_date=expiration_date, + copay=random.choice([50, 75, 100, 150, 200]), + deductible=random.choice([500, 1000, 1500, 2000, 2500]), + subscriber_name=patient.get_full_name(), + subscriber_relationship='SELF', + subscriber_dob=patient.date_of_birth, + created_by=created_by + ) + insurance_created += 1 + + if (i + 1) % 10 == 0: + self.stdout.write(f"Created {i + 1} patients...") + + except Exception as e: + self.stdout.write( + self.style.ERROR(f"Error creating patient {i + 1}: {str(e)}") + ) + continue + + # Show results + self.stdout.write( + self.style.SUCCESS( + f"Successfully created {patients_created} patients and {insurance_created} insurance policies" + ) + ) + + # Show sample data + sample_patients = PatientProfile.objects.filter(tenant=tenant).order_by('-created_at')[:5] + if sample_patients: + self.stdout.write(f"\nSample created patients:") + for patient in sample_patients: + insurance_count = patient.insurance_info.count() + self.stdout.write( + f" - {patient.get_full_name()} (MRN: {patient.mrn}, Insurance policies: {insurance_count})" + ) + + # Show insurance companies used + used_companies = InsuranceInfo.objects.filter( + patient__tenant=tenant + ).values_list('insurance_company', flat=True).distinct() + + self.stdout.write(f"\nInsurance companies used ({len(used_companies)}):") + for company in sorted(used_companies)[:10]: + self.stdout.write(f" - {company}") + + if len(used_companies) > 10: + self.stdout.write(f" ... and {len(used_companies) - 10} more") + + def _get_system_user(self): + """Get or create a system user for created_by field.""" + try: + return User.objects.get(username='system') + except User.DoesNotExist: + # Try to get the first superuser + superuser = User.objects.filter(is_superuser=True).first() + if superuser: + return superuser + + # Try to get any user + user = User.objects.first() + if user: + return user + + # Create a system user if none exists + return User.objects.create_user( + username='system', + email='system@hospital.local', + first_name='System', + last_name='Generator', + is_active=True + ) + diff --git a/patients/migrations/0003_insuranceinfo_is_primary.py b/patients/migrations/0003_insuranceinfo_is_primary.py new file mode 100644 index 00000000..ba614859 --- /dev/null +++ b/patients/migrations/0003_insuranceinfo_is_primary.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.4 on 2025-09-03 12:00 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("patients", "0002_emergencycontact_authorization_number_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="insuranceinfo", + name="is_primary", + field=models.BooleanField(default=False, help_text="Primary insurance"), + ), + ] diff --git a/patients/migrations/0004_insuranceinfo_status.py b/patients/migrations/0004_insuranceinfo_status.py new file mode 100644 index 00000000..b74fc962 --- /dev/null +++ b/patients/migrations/0004_insuranceinfo_status.py @@ -0,0 +1,27 @@ +# Generated by Django 5.2.4 on 2025-09-03 13:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("patients", "0003_insuranceinfo_is_primary"), + ] + + operations = [ + migrations.AddField( + model_name="insuranceinfo", + name="status", + field=models.CharField( + choices=[ + ("PENDING", "Pending"), + ("APPROVED", "Approved"), + ("DENIED", "Denied"), + ], + default="PENDING", + help_text="Consent status", + max_length=20, + ), + ), + ] diff --git a/patients/migrations/0005_alter_insuranceinfo_status.py b/patients/migrations/0005_alter_insuranceinfo_status.py new file mode 100644 index 00000000..560088bf --- /dev/null +++ b/patients/migrations/0005_alter_insuranceinfo_status.py @@ -0,0 +1,27 @@ +# Generated by Django 5.2.4 on 2025-09-03 13:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("patients", "0004_insuranceinfo_status"), + ] + + operations = [ + migrations.AlterField( + model_name="insuranceinfo", + name="status", + field=models.CharField( + choices=[ + ("PENDING", "Pending"), + ("APPROVED", "Approved"), + ("DENIED", "Denied"), + ], + default="PENDING", + help_text="Insurance status", + max_length=20, + ), + ), + ] diff --git a/patients/migrations/0006_insuranceclaim_claimstatushistory_claimdocument_and_more.py b/patients/migrations/0006_insuranceclaim_claimstatushistory_claimdocument_and_more.py new file mode 100644 index 00000000..6e28ff99 --- /dev/null +++ b/patients/migrations/0006_insuranceclaim_claimstatushistory_claimdocument_and_more.py @@ -0,0 +1,532 @@ +# Generated by Django 5.2.4 on 2025-09-03 14:41 + +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("patients", "0005_alter_insuranceinfo_status"), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name="InsuranceClaim", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "claim_number", + models.CharField( + help_text="Unique claim number", max_length=50, unique=True + ), + ), + ( + "claim_type", + models.CharField( + choices=[ + ("MEDICAL", "Medical"), + ("DENTAL", "Dental"), + ("VISION", "Vision"), + ("PHARMACY", "Pharmacy"), + ("EMERGENCY", "Emergency"), + ("INPATIENT", "Inpatient"), + ("OUTPATIENT", "Outpatient"), + ("PREVENTIVE", "Preventive Care"), + ("MATERNITY", "Maternity"), + ("MENTAL_HEALTH", "Mental Health"), + ("REHABILITATION", "Rehabilitation"), + ("DIAGNOSTIC", "Diagnostic"), + ("SURGICAL", "Surgical"), + ("CHRONIC_CARE", "Chronic Care"), + ], + default="MEDICAL", + help_text="Type of claim", + max_length=20, + ), + ), + ( + "status", + models.CharField( + choices=[ + ("DRAFT", "Draft"), + ("SUBMITTED", "Submitted"), + ("UNDER_REVIEW", "Under Review"), + ("APPROVED", "Approved"), + ("PARTIALLY_APPROVED", "Partially Approved"), + ("DENIED", "Denied"), + ("PAID", "Paid"), + ("CANCELLED", "Cancelled"), + ("APPEALED", "Appealed"), + ("RESUBMITTED", "Resubmitted"), + ], + default="DRAFT", + help_text="Current claim status", + max_length=20, + ), + ), + ( + "priority", + models.CharField( + choices=[ + ("LOW", "Low"), + ("NORMAL", "Normal"), + ("HIGH", "High"), + ("URGENT", "Urgent"), + ("EMERGENCY", "Emergency"), + ], + default="NORMAL", + help_text="Claim priority", + max_length=10, + ), + ), + ( + "service_date", + models.DateField(help_text="Date when service was provided"), + ), + ( + "service_provider", + models.CharField( + help_text="Healthcare provider who provided the service", + max_length=200, + ), + ), + ( + "service_provider_license", + models.CharField( + blank=True, + help_text="Provider license number (Saudi Medical License)", + max_length=50, + null=True, + ), + ), + ( + "facility_name", + models.CharField( + blank=True, + help_text="Healthcare facility name", + max_length=200, + null=True, + ), + ), + ( + "facility_license", + models.CharField( + blank=True, + help_text="Facility license number (MOH License)", + max_length=50, + null=True, + ), + ), + ( + "primary_diagnosis_code", + models.CharField( + help_text="Primary diagnosis code (ICD-10)", max_length=20 + ), + ), + ( + "primary_diagnosis_description", + models.TextField(help_text="Primary diagnosis description"), + ), + ( + "secondary_diagnosis_codes", + models.JSONField( + blank=True, + default=list, + help_text="Secondary diagnosis codes and descriptions", + ), + ), + ( + "procedure_codes", + models.JSONField( + blank=True, + default=list, + help_text="Procedure codes (CPT/HCPCS) and descriptions", + ), + ), + ( + "billed_amount", + models.DecimalField( + decimal_places=2, + help_text="Total amount billed (SAR)", + max_digits=12, + ), + ), + ( + "approved_amount", + models.DecimalField( + decimal_places=2, + default=0, + help_text="Amount approved by insurance (SAR)", + max_digits=12, + ), + ), + ( + "paid_amount", + models.DecimalField( + decimal_places=2, + default=0, + help_text="Amount actually paid (SAR)", + max_digits=12, + ), + ), + ( + "patient_responsibility", + models.DecimalField( + decimal_places=2, + default=0, + help_text="Patient copay/deductible amount (SAR)", + max_digits=12, + ), + ), + ( + "discount_amount", + models.DecimalField( + decimal_places=2, + default=0, + help_text="Discount applied (SAR)", + max_digits=12, + ), + ), + ( + "submitted_date", + models.DateTimeField( + blank=True, + help_text="Date claim was submitted to insurance", + null=True, + ), + ), + ( + "processed_date", + models.DateTimeField( + blank=True, help_text="Date claim was processed", null=True + ), + ), + ( + "payment_date", + models.DateTimeField( + blank=True, help_text="Date payment was received", null=True + ), + ), + ( + "saudi_id_number", + models.CharField( + blank=True, + help_text="Saudi National ID or Iqama number", + max_length=10, + null=True, + ), + ), + ( + "insurance_card_number", + models.CharField( + blank=True, + help_text="Insurance card number", + max_length=50, + null=True, + ), + ), + ( + "authorization_number", + models.CharField( + blank=True, + help_text="Prior authorization number if required", + max_length=50, + null=True, + ), + ), + ( + "denial_reason", + models.TextField( + blank=True, + help_text="Reason for denial if applicable", + null=True, + ), + ), + ( + "denial_code", + models.CharField( + blank=True, + help_text="Insurance denial code", + max_length=20, + null=True, + ), + ), + ( + "appeal_date", + models.DateTimeField( + blank=True, help_text="Date appeal was filed", null=True + ), + ), + ( + "appeal_reason", + models.TextField( + blank=True, help_text="Reason for appeal", null=True + ), + ), + ( + "notes", + models.TextField( + blank=True, + help_text="Additional notes about the claim", + null=True, + ), + ), + ( + "attachments", + models.JSONField( + blank=True, default=list, help_text="List of attached documents" + ), + ), + ("created_at", models.DateTimeField(auto_now_add=True)), + ("updated_at", models.DateTimeField(auto_now=True)), + ( + "created_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + related_name="created_claims", + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "insurance_info", + models.ForeignKey( + help_text="Insurance policy used for this claim", + on_delete=django.db.models.deletion.CASCADE, + related_name="claims", + to="patients.insuranceinfo", + ), + ), + ( + "patient", + models.ForeignKey( + help_text="Patient associated with this claim", + on_delete=django.db.models.deletion.CASCADE, + related_name="insurance_claims", + to="patients.patientprofile", + ), + ), + ], + options={ + "verbose_name": "Insurance Claim", + "verbose_name_plural": "Insurance Claims", + "db_table": "patients_insurance_claim", + "ordering": ["-created_at"], + }, + ), + migrations.CreateModel( + name="ClaimStatusHistory", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "from_status", + models.CharField( + blank=True, + choices=[ + ("DRAFT", "Draft"), + ("SUBMITTED", "Submitted"), + ("UNDER_REVIEW", "Under Review"), + ("APPROVED", "Approved"), + ("PARTIALLY_APPROVED", "Partially Approved"), + ("DENIED", "Denied"), + ("PAID", "Paid"), + ("CANCELLED", "Cancelled"), + ("APPEALED", "Appealed"), + ("RESUBMITTED", "Resubmitted"), + ], + help_text="Previous status", + max_length=20, + null=True, + ), + ), + ( + "to_status", + models.CharField( + choices=[ + ("DRAFT", "Draft"), + ("SUBMITTED", "Submitted"), + ("UNDER_REVIEW", "Under Review"), + ("APPROVED", "Approved"), + ("PARTIALLY_APPROVED", "Partially Approved"), + ("DENIED", "Denied"), + ("PAID", "Paid"), + ("CANCELLED", "Cancelled"), + ("APPEALED", "Appealed"), + ("RESUBMITTED", "Resubmitted"), + ], + help_text="New status", + max_length=20, + ), + ), + ( + "reason", + models.TextField( + blank=True, help_text="Reason for status change", null=True + ), + ), + ( + "notes", + models.TextField( + blank=True, help_text="Additional notes", null=True + ), + ), + ("changed_at", models.DateTimeField(auto_now_add=True)), + ( + "changed_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "claim", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="status_history", + to="patients.insuranceclaim", + ), + ), + ], + options={ + "verbose_name": "Claim Status History", + "verbose_name_plural": "Claim Status Histories", + "db_table": "patients_claim_status_history", + "ordering": ["-changed_at"], + }, + ), + migrations.CreateModel( + name="ClaimDocument", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "document_type", + models.CharField( + choices=[ + ("MEDICAL_REPORT", "Medical Report"), + ("LAB_RESULT", "Laboratory Result"), + ("RADIOLOGY_REPORT", "Radiology Report"), + ("PRESCRIPTION", "Prescription"), + ("INVOICE", "Invoice"), + ("RECEIPT", "Receipt"), + ("AUTHORIZATION", "Prior Authorization"), + ("REFERRAL", "Referral Letter"), + ("DISCHARGE_SUMMARY", "Discharge Summary"), + ("OPERATIVE_REPORT", "Operative Report"), + ("PATHOLOGY_REPORT", "Pathology Report"), + ("INSURANCE_CARD", "Insurance Card Copy"), + ("ID_COPY", "ID Copy"), + ("OTHER", "Other"), + ], + help_text="Type of document", + max_length=20, + ), + ), + ("title", models.CharField(help_text="Document title", max_length=200)), + ( + "description", + models.TextField( + blank=True, help_text="Document description", null=True + ), + ), + ( + "file_path", + models.CharField( + help_text="Path to the document file", max_length=500 + ), + ), + ( + "file_size", + models.PositiveIntegerField(help_text="File size in bytes"), + ), + ( + "mime_type", + models.CharField(help_text="MIME type of the file", max_length=100), + ), + ("uploaded_at", models.DateTimeField(auto_now_add=True)), + ( + "uploaded_by", + models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.SET_NULL, + to=settings.AUTH_USER_MODEL, + ), + ), + ( + "claim", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="documents", + to="patients.insuranceclaim", + ), + ), + ], + options={ + "verbose_name": "Claim Document", + "verbose_name_plural": "Claim Documents", + "db_table": "patients_claim_document", + "ordering": ["-uploaded_at"], + }, + ), + migrations.AddIndex( + model_name="insuranceclaim", + index=models.Index( + fields=["claim_number"], name="patients_in_claim_n_3b3114_idx" + ), + ), + migrations.AddIndex( + model_name="insuranceclaim", + index=models.Index( + fields=["patient", "service_date"], + name="patients_in_patient_5d8b72_idx", + ), + ), + migrations.AddIndex( + model_name="insuranceclaim", + index=models.Index( + fields=["status", "priority"], name="patients_in_status_41f139_idx" + ), + ), + migrations.AddIndex( + model_name="insuranceclaim", + index=models.Index( + fields=["submitted_date"], name="patients_in_submitt_75aa55_idx" + ), + ), + migrations.AddIndex( + model_name="insuranceclaim", + index=models.Index( + fields=["insurance_info"], name="patients_in_insuran_f48b26_idx" + ), + ), + ] diff --git a/patients/migrations/0007_alter_consenttemplate_category.py b/patients/migrations/0007_alter_consenttemplate_category.py new file mode 100644 index 00000000..765e6a82 --- /dev/null +++ b/patients/migrations/0007_alter_consenttemplate_category.py @@ -0,0 +1,33 @@ +# Generated by Django 5.2.4 on 2025-09-04 15:07 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("patients", "0006_insuranceclaim_claimstatushistory_claimdocument_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="consenttemplate", + name="category", + field=models.CharField( + choices=[ + ("TREATMENT", "Treatment Consent"), + ("PROCEDURE", "Procedure Consent"), + ("SURGERY", "Surgical Consent"), + ("ANESTHESIA", "Anesthesia Consent"), + ("RESEARCH", "Research Consent"), + ("PRIVACY", "Privacy Consent"), + ("FINANCIAL", "Financial Consent"), + ("ADMISSION", "Admission Consent"), + ("DISCHARGE", "Discharge Consent"), + ("OTHER", "Other"), + ], + help_text="Consent category", + max_length=50, + ), + ), + ] diff --git a/patients/migrations/__pycache__/0003_insuranceinfo_is_primary.cpython-312.pyc b/patients/migrations/__pycache__/0003_insuranceinfo_is_primary.cpython-312.pyc new file mode 100644 index 00000000..6fc1cfb6 Binary files /dev/null and b/patients/migrations/__pycache__/0003_insuranceinfo_is_primary.cpython-312.pyc differ diff --git a/patients/migrations/__pycache__/0004_insuranceinfo_status.cpython-312.pyc b/patients/migrations/__pycache__/0004_insuranceinfo_status.cpython-312.pyc new file mode 100644 index 00000000..ea1f7931 Binary files /dev/null and b/patients/migrations/__pycache__/0004_insuranceinfo_status.cpython-312.pyc differ diff --git a/patients/migrations/__pycache__/0005_alter_insuranceinfo_status.cpython-312.pyc b/patients/migrations/__pycache__/0005_alter_insuranceinfo_status.cpython-312.pyc new file mode 100644 index 00000000..404410e0 Binary files /dev/null and b/patients/migrations/__pycache__/0005_alter_insuranceinfo_status.cpython-312.pyc differ diff --git a/patients/migrations/__pycache__/0006_insuranceclaim_claimstatushistory_claimdocument_and_more.cpython-312.pyc b/patients/migrations/__pycache__/0006_insuranceclaim_claimstatushistory_claimdocument_and_more.cpython-312.pyc new file mode 100644 index 00000000..dd38f366 Binary files /dev/null and b/patients/migrations/__pycache__/0006_insuranceclaim_claimstatushistory_claimdocument_and_more.cpython-312.pyc differ diff --git a/patients/migrations/__pycache__/0007_alter_consenttemplate_category.cpython-312.pyc b/patients/migrations/__pycache__/0007_alter_consenttemplate_category.cpython-312.pyc new file mode 100644 index 00000000..c9468fe7 Binary files /dev/null and b/patients/migrations/__pycache__/0007_alter_consenttemplate_category.cpython-312.pyc differ diff --git a/patients/models.py b/patients/models.py index 9fb6d7b0..b84168ca 100644 --- a/patients/models.py +++ b/patients/models.py @@ -14,7 +14,60 @@ class PatientProfile(models.Model): """ Patient profile with comprehensive demographics and healthcare information. """ - + GENDER_CHOICES = [ + ('MALE', 'Male'), + ('FEMALE', 'Female'), + ('OTHER', 'Other'), + ('UNKNOWN', 'Unknown'), + ('PREFER_NOT_TO_SAY', 'Prefer not to say'), + ] + SEX_ASSIGNED_AT_BIRTH_CHOICES = [ + ('MALE', 'Male'), + ('FEMALE', 'Female'), + ('INTERSEX', 'Intersex'), + ('UNKNOWN', 'Unknown'), + ] + RACE_CHOICES = [ + ('AMERICAN_INDIAN', 'American Indian or Alaska Native'), + ('ASIAN', 'Asian'), + ('BLACK', 'Black or African American'), + ('PACIFIC_ISLANDER', 'Native Hawaiian or Other Pacific Islander'), + ('WHITE', 'White'), + ('OTHER', 'Other'), + ('UNKNOWN', 'Unknown'), + ('DECLINED', 'Patient Declined'), + ] + ETHNICITY_CHOICES = [ + ('HISPANIC', 'Hispanic or Latino'), + ('NON_HISPANIC', 'Not Hispanic or Latino'), + ('UNKNOWN', 'Unknown'), + ('DECLINED', 'Patient Declined'), + ] + MARITAL_STATUS_CHOICES = [ + ('SINGLE', 'Single'), + ('MARRIED', 'Married'), + ('DIVORCED', 'Divorced'), + ('WIDOWED', 'Widowed'), + ('SEPARATED', 'Separated'), + ('DOMESTIC_PARTNER', 'Domestic Partner'), + ('OTHER', 'Other'), + ('UNKNOWN', 'Unknown'), + ] + COMMUNICATION_PREFERENCE_CHOICES = [ + ('PHONE', 'Phone'), + ('EMAIL', 'Email'), + ('SMS', 'SMS'), + ('MAIL', 'Mail'), + ('PORTAL', 'Patient Portal'), + ] + ADVANCE_DIRECTIVE_TYPE_CHOICES = [ + ('LIVING_WILL', 'Living Will'), + ('HEALTHCARE_PROXY', 'Healthcare Proxy'), + ('DNR', 'Do Not Resuscitate'), + ('POLST', 'POLST'), + ('OTHER', 'Other'), + ] + # Basic Identifiers patient_id = models.UUIDField( default=uuid.uuid4, @@ -72,23 +125,12 @@ class PatientProfile(models.Model): ) gender = models.CharField( max_length=20, - choices=[ - ('MALE', 'Male'), - ('FEMALE', 'Female'), - ('OTHER', 'Other'), - ('UNKNOWN', 'Unknown'), - ('PREFER_NOT_TO_SAY', 'Prefer not to say'), - ], + choices=GENDER_CHOICES, help_text='Gender' ) sex_assigned_at_birth = models.CharField( max_length=20, - choices=[ - ('MALE', 'Male'), - ('FEMALE', 'Female'), - ('INTERSEX', 'Intersex'), - ('UNKNOWN', 'Unknown'), - ], + choices=SEX_ASSIGNED_AT_BIRTH_CHOICES, blank=True, null=True, help_text='Sex assigned at birth' @@ -97,28 +139,14 @@ class PatientProfile(models.Model): # Race and Ethnicity race = models.CharField( max_length=50, - choices=[ - ('AMERICAN_INDIAN', 'American Indian or Alaska Native'), - ('ASIAN', 'Asian'), - ('BLACK', 'Black or African American'), - ('PACIFIC_ISLANDER', 'Native Hawaiian or Other Pacific Islander'), - ('WHITE', 'White'), - ('OTHER', 'Other'), - ('UNKNOWN', 'Unknown'), - ('DECLINED', 'Patient Declined'), - ], + choices=RACE_CHOICES, blank=True, null=True, help_text='Race' ) ethnicity = models.CharField( max_length=50, - choices=[ - ('HISPANIC', 'Hispanic or Latino'), - ('NON_HISPANIC', 'Not Hispanic or Latino'), - ('UNKNOWN', 'Unknown'), - ('DECLINED', 'Patient Declined'), - ], + choices=ETHNICITY_CHOICES, blank=True, null=True, help_text='Ethnicity' @@ -215,16 +243,7 @@ class PatientProfile(models.Model): # Marital Status and Family marital_status = models.CharField( max_length=20, - choices=[ - ('SINGLE', 'Single'), - ('MARRIED', 'Married'), - ('DIVORCED', 'Divorced'), - ('WIDOWED', 'Widowed'), - ('SEPARATED', 'Separated'), - ('DOMESTIC_PARTNER', 'Domestic Partner'), - ('OTHER', 'Other'), - ('UNKNOWN', 'Unknown'), - ], + choices=MARITAL_STATUS_CHOICES, blank=True, null=True, help_text='Marital status' @@ -242,13 +261,7 @@ class PatientProfile(models.Model): ) communication_preference = models.CharField( max_length=20, - choices=[ - ('PHONE', 'Phone'), - ('EMAIL', 'Email'), - ('SMS', 'SMS'), - ('MAIL', 'Mail'), - ('PORTAL', 'Patient Portal'), - ], + choices=COMMUNICATION_PREFERENCE_CHOICES, default='PHONE', help_text='Preferred communication method' ) @@ -300,13 +313,7 @@ class PatientProfile(models.Model): ) advance_directive_type = models.CharField( max_length=50, - choices=[ - ('LIVING_WILL', 'Living Will'), - ('HEALTHCARE_PROXY', 'Healthcare Proxy'), - ('DNR', 'Do Not Resuscitate'), - ('POLST', 'POLST'), - ('OTHER', 'Other'), - ], + choices=ADVANCE_DIRECTIVE_TYPE_CHOICES, blank=True, null=True, help_text='Type of advance directive' @@ -445,7 +452,21 @@ class EmergencyContact(models.Model): """ Emergency contact information for patients. """ - + RELATIONSHIP_CHOICES = [ + ('SPOUSE', 'Spouse'), + ('PARENT', 'Parent'), + ('CHILD', 'Child'), + ('SIBLING', 'Sibling'), + ('GRANDPARENT', 'Grandparent'), + ('GRANDCHILD', 'Grandchild'), + ('AUNT_UNCLE', 'Aunt/Uncle'), + ('COUSIN', 'Cousin'), + ('FRIEND', 'Friend'), + ('NEIGHBOR', 'Neighbor'), + ('CAREGIVER', 'Caregiver'), + ('GUARDIAN', 'Guardian'), + ('OTHER', 'Other'), + ] # Patient relationship patient = models.ForeignKey( PatientProfile, @@ -464,21 +485,7 @@ class EmergencyContact(models.Model): ) relationship = models.CharField( max_length=50, - choices=[ - ('SPOUSE', 'Spouse'), - ('PARENT', 'Parent'), - ('CHILD', 'Child'), - ('SIBLING', 'Sibling'), - ('GRANDPARENT', 'Grandparent'), - ('GRANDCHILD', 'Grandchild'), - ('AUNT_UNCLE', 'Aunt/Uncle'), - ('COUSIN', 'Cousin'), - ('FRIEND', 'Friend'), - ('NEIGHBOR', 'Neighbor'), - ('CAREGIVER', 'Caregiver'), - ('GUARDIAN', 'Guardian'), - ('OTHER', 'Other'), - ], + choices=RELATIONSHIP_CHOICES, help_text='Relationship to patient' ) @@ -607,7 +614,36 @@ class InsuranceInfo(models.Model): """ Insurance information for patients. """ - + INSURANCE_TYPE_CHOICES = [ + ('PRIMARY', 'Primary'), + ('SECONDARY', 'Secondary'), + ('TERTIARY', 'Tertiary'), + ] + PLAN_TYPE_CHOICES = [ + ('HMO', 'Health Maintenance Organization'), + ('PPO', 'Preferred Provider Organization'), + ('EPO', 'Exclusive Provider Organization'), + ('POS', 'Point of Service'), + ('HDHP', 'High Deductible Health Plan'), + ('MEDICARE', 'Medicare'), + ('MEDICAID', 'Medicaid'), + ('TRICARE', 'TRICARE'), + ('WORKERS_COMP', 'Workers Compensation'), + ('AUTO', 'Auto Insurance'), + ('OTHER', 'Other'), + ] + SUBSCRIBER_RELATIONSHIP_CHOICES = [ + ('SELF', 'Self'), + ('SPOUSE', 'Spouse'), + ('CHILD', 'Child'), + ('PARENT', 'Parent'), + ('OTHER', 'Other'), + ] + STATUS_CHOICES = [ + ('PENDING', 'Pending'), + ('APPROVED', 'Approved'), + ('DENIED', 'Denied'), + ] # Patient relationship patient = models.ForeignKey( PatientProfile, @@ -618,11 +654,7 @@ class InsuranceInfo(models.Model): # Insurance Details insurance_type = models.CharField( max_length=20, - choices=[ - ('PRIMARY', 'Primary'), - ('SECONDARY', 'Secondary'), - ('TERTIARY', 'Tertiary'), - ], + choices=INSURANCE_TYPE_CHOICES, default='PRIMARY', help_text='Insurance type' ) @@ -640,24 +672,17 @@ class InsuranceInfo(models.Model): ) plan_type = models.CharField( max_length=50, - choices=[ - ('HMO', 'Health Maintenance Organization'), - ('PPO', 'Preferred Provider Organization'), - ('EPO', 'Exclusive Provider Organization'), - ('POS', 'Point of Service'), - ('HDHP', 'High Deductible Health Plan'), - ('MEDICARE', 'Medicare'), - ('MEDICAID', 'Medicaid'), - ('TRICARE', 'TRICARE'), - ('WORKERS_COMP', 'Workers Compensation'), - ('AUTO', 'Auto Insurance'), - ('OTHER', 'Other'), - ], + choices=PLAN_TYPE_CHOICES, blank=True, null=True, help_text='Plan type' ) - + status = models.CharField( + max_length=20, + choices=STATUS_CHOICES, + default='PENDING', + help_text='Insurance status' + ) # Policy Information policy_number = models.CharField( max_length=100, @@ -677,13 +702,7 @@ class InsuranceInfo(models.Model): ) subscriber_relationship = models.CharField( max_length=20, - choices=[ - ('SELF', 'Self'), - ('SPOUSE', 'Spouse'), - ('CHILD', 'Child'), - ('PARENT', 'Parent'), - ('OTHER', 'Other'), - ], + choices=SUBSCRIBER_RELATIONSHIP_CHOICES, default='SELF', help_text='Relationship to subscriber' ) @@ -777,6 +796,10 @@ class InsuranceInfo(models.Model): default=True, help_text='Insurance is active' ) + is_primary = models.BooleanField( + default=False, + help_text='Primary insurance' + ) # Notes notes = models.TextField( @@ -814,11 +837,498 @@ class InsuranceInfo(models.Model): return today >= self.effective_date and self.is_active +class InsuranceClaim(models.Model): + """ + Insurance claims for patient services and treatments. + Designed for Saudi healthcare system with local insurance providers. + """ + + # Claim Status Choices + STATUS_CHOICES = [ + ('DRAFT', 'Draft'), + ('SUBMITTED', 'Submitted'), + ('UNDER_REVIEW', 'Under Review'), + ('APPROVED', 'Approved'), + ('PARTIALLY_APPROVED', 'Partially Approved'), + ('DENIED', 'Denied'), + ('PAID', 'Paid'), + ('CANCELLED', 'Cancelled'), + ('APPEALED', 'Appealed'), + ('RESUBMITTED', 'Resubmitted'), + ] + + # Claim Type Choices + CLAIM_TYPE_CHOICES = [ + ('MEDICAL', 'Medical'), + ('DENTAL', 'Dental'), + ('VISION', 'Vision'), + ('PHARMACY', 'Pharmacy'), + ('EMERGENCY', 'Emergency'), + ('INPATIENT', 'Inpatient'), + ('OUTPATIENT', 'Outpatient'), + ('PREVENTIVE', 'Preventive Care'), + ('MATERNITY', 'Maternity'), + ('MENTAL_HEALTH', 'Mental Health'), + ('REHABILITATION', 'Rehabilitation'), + ('DIAGNOSTIC', 'Diagnostic'), + ('SURGICAL', 'Surgical'), + ('CHRONIC_CARE', 'Chronic Care'), + ] + + # Priority Choices + PRIORITY_CHOICES = [ + ('LOW', 'Low'), + ('NORMAL', 'Normal'), + ('HIGH', 'High'), + ('URGENT', 'Urgent'), + ('EMERGENCY', 'Emergency'), + ] + + # Basic Information + claim_number = models.CharField( + max_length=50, + unique=True, + help_text='Unique claim number' + ) + + # Relationships + patient = models.ForeignKey( + PatientProfile, + on_delete=models.CASCADE, + related_name='insurance_claims', + help_text='Patient associated with this claim' + ) + + insurance_info = models.ForeignKey( + InsuranceInfo, + on_delete=models.CASCADE, + related_name='claims', + help_text='Insurance policy used for this claim' + ) + + # Claim Details + claim_type = models.CharField( + max_length=20, + choices=CLAIM_TYPE_CHOICES, + default='MEDICAL', + help_text='Type of claim' + ) + + status = models.CharField( + max_length=20, + choices=STATUS_CHOICES, + default='DRAFT', + help_text='Current claim status' + ) + + priority = models.CharField( + max_length=10, + choices=PRIORITY_CHOICES, + default='NORMAL', + help_text='Claim priority' + ) + + # Service Information + service_date = models.DateField( + help_text='Date when service was provided' + ) + + service_provider = models.CharField( + max_length=200, + help_text='Healthcare provider who provided the service' + ) + + service_provider_license = models.CharField( + max_length=50, + blank=True, + null=True, + help_text='Provider license number (Saudi Medical License)' + ) + + facility_name = models.CharField( + max_length=200, + blank=True, + null=True, + help_text='Healthcare facility name' + ) + + facility_license = models.CharField( + max_length=50, + blank=True, + null=True, + help_text='Facility license number (MOH License)' + ) + + # Medical Codes (Saudi/International Standards) + primary_diagnosis_code = models.CharField( + max_length=20, + help_text='Primary diagnosis code (ICD-10)' + ) + + primary_diagnosis_description = models.TextField( + help_text='Primary diagnosis description' + ) + + secondary_diagnosis_codes = models.JSONField( + default=list, + blank=True, + help_text='Secondary diagnosis codes and descriptions' + ) + + procedure_codes = models.JSONField( + default=list, + blank=True, + help_text='Procedure codes (CPT/HCPCS) and descriptions' + ) + + # Financial Information (Saudi Riyal) + billed_amount = models.DecimalField( + max_digits=12, + decimal_places=2, + help_text='Total amount billed (SAR)' + ) + + approved_amount = models.DecimalField( + max_digits=12, + decimal_places=2, + default=0, + help_text='Amount approved by insurance (SAR)' + ) + + paid_amount = models.DecimalField( + max_digits=12, + decimal_places=2, + default=0, + help_text='Amount actually paid (SAR)' + ) + + patient_responsibility = models.DecimalField( + max_digits=12, + decimal_places=2, + default=0, + help_text='Patient copay/deductible amount (SAR)' + ) + + discount_amount = models.DecimalField( + max_digits=12, + decimal_places=2, + default=0, + help_text='Discount applied (SAR)' + ) + + # Claim Processing + submitted_date = models.DateTimeField( + blank=True, + null=True, + help_text='Date claim was submitted to insurance' + ) + + processed_date = models.DateTimeField( + blank=True, + null=True, + help_text='Date claim was processed' + ) + + payment_date = models.DateTimeField( + blank=True, + null=True, + help_text='Date payment was received' + ) + + # Saudi-specific fields + saudi_id_number = models.CharField( + max_length=10, + blank=True, + null=True, + help_text='Saudi National ID or Iqama number' + ) + + insurance_card_number = models.CharField( + max_length=50, + blank=True, + null=True, + help_text='Insurance card number' + ) + + authorization_number = models.CharField( + max_length=50, + blank=True, + null=True, + help_text='Prior authorization number if required' + ) + + # Denial/Appeal Information + denial_reason = models.TextField( + blank=True, + null=True, + help_text='Reason for denial if applicable' + ) + + denial_code = models.CharField( + max_length=20, + blank=True, + null=True, + help_text='Insurance denial code' + ) + + appeal_date = models.DateTimeField( + blank=True, + null=True, + help_text='Date appeal was filed' + ) + + appeal_reason = models.TextField( + blank=True, + null=True, + help_text='Reason for appeal' + ) + + # Additional Information + notes = models.TextField( + blank=True, + null=True, + help_text='Additional notes about the claim' + ) + + attachments = models.JSONField( + default=list, + blank=True, + help_text='List of attached documents' + ) + + # Tracking + created_at = models.DateTimeField(auto_now_add=True) + updated_at = models.DateTimeField(auto_now=True) + created_by = models.ForeignKey( + settings.AUTH_USER_MODEL, + on_delete=models.SET_NULL, + null=True, + blank=True, + related_name='created_claims' + ) + + class Meta: + db_table = 'patients_insurance_claim' + verbose_name = 'Insurance Claim' + verbose_name_plural = 'Insurance Claims' + ordering = ['-created_at'] + indexes = [ + models.Index(fields=['claim_number']), + models.Index(fields=['patient', 'service_date']), + models.Index(fields=['status', 'priority']), + models.Index(fields=['submitted_date']), + models.Index(fields=['insurance_info']), + ] + + def __str__(self): + return f"Claim {self.claim_number} - {self.patient.get_full_name()}" + + @property + def is_approved(self): + """Check if claim is approved.""" + return self.status in ['APPROVED', 'PARTIALLY_APPROVED', 'PAID'] + + @property + def is_denied(self): + """Check if claim is denied.""" + return self.status == 'DENIED' + + @property + def is_paid(self): + """Check if claim is paid.""" + return self.status == 'PAID' + + @property + def days_since_submission(self): + """Calculate days since submission.""" + if self.submitted_date: + return (timezone.now() - self.submitted_date).days + return None + + @property + def processing_time_days(self): + """Calculate processing time in days.""" + if self.submitted_date and self.processed_date: + return (self.processed_date - self.submitted_date).days + return None + + @property + def approval_percentage(self): + """Calculate approval percentage.""" + if self.billed_amount > 0: + return (self.approved_amount / self.billed_amount) * 100 + return 0 + + def save(self, *args, **kwargs): + # Generate claim number if not provided + if not self.claim_number: + import random + from datetime import datetime + year = datetime.now().year + random_num = random.randint(100000, 999999) + self.claim_number = f"CLM{year}{random_num}" + + # Auto-set dates based on status changes + if self.status == 'SUBMITTED' and not self.submitted_date: + self.submitted_date = timezone.now() + elif self.status in ['APPROVED', 'PARTIALLY_APPROVED', 'DENIED'] and not self.processed_date: + self.processed_date = timezone.now() + elif self.status == 'PAID' and not self.payment_date: + self.payment_date = timezone.now() + + super().save(*args, **kwargs) + + +class ClaimDocument(models.Model): + """ + Documents attached to insurance claims. + """ + + DOCUMENT_TYPE_CHOICES = [ + ('MEDICAL_REPORT', 'Medical Report'), + ('LAB_RESULT', 'Laboratory Result'), + ('RADIOLOGY_REPORT', 'Radiology Report'), + ('PRESCRIPTION', 'Prescription'), + ('INVOICE', 'Invoice'), + ('RECEIPT', 'Receipt'), + ('AUTHORIZATION', 'Prior Authorization'), + ('REFERRAL', 'Referral Letter'), + ('DISCHARGE_SUMMARY', 'Discharge Summary'), + ('OPERATIVE_REPORT', 'Operative Report'), + ('PATHOLOGY_REPORT', 'Pathology Report'), + ('INSURANCE_CARD', 'Insurance Card Copy'), + ('ID_COPY', 'ID Copy'), + ('OTHER', 'Other'), + ] + + claim = models.ForeignKey( + InsuranceClaim, + on_delete=models.CASCADE, + related_name='documents' + ) + + document_type = models.CharField( + max_length=20, + choices=DOCUMENT_TYPE_CHOICES, + help_text='Type of document' + ) + + title = models.CharField( + max_length=200, + help_text='Document title' + ) + + description = models.TextField( + blank=True, + null=True, + help_text='Document description' + ) + + file_path = models.CharField( + max_length=500, + help_text='Path to the document file' + ) + + file_size = models.PositiveIntegerField( + help_text='File size in bytes' + ) + + mime_type = models.CharField( + max_length=100, + help_text='MIME type of the file' + ) + + uploaded_at = models.DateTimeField(auto_now_add=True) + uploaded_by = models.ForeignKey( + settings.AUTH_USER_MODEL, + on_delete=models.SET_NULL, + null=True, + blank=True + ) + + class Meta: + db_table = 'patients_claim_document' + verbose_name = 'Claim Document' + verbose_name_plural = 'Claim Documents' + ordering = ['-uploaded_at'] + + def __str__(self): + return f"{self.title} - {self.claim.claim_number}" + + +class ClaimStatusHistory(models.Model): + """ + Track status changes for insurance claims. + """ + + claim = models.ForeignKey( + InsuranceClaim, + on_delete=models.CASCADE, + related_name='status_history' + ) + + from_status = models.CharField( + max_length=20, + choices=InsuranceClaim.STATUS_CHOICES, + blank=True, + null=True, + help_text='Previous status' + ) + + to_status = models.CharField( + max_length=20, + choices=InsuranceClaim.STATUS_CHOICES, + help_text='New status' + ) + + reason = models.TextField( + blank=True, + null=True, + help_text='Reason for status change' + ) + + notes = models.TextField( + blank=True, + null=True, + help_text='Additional notes' + ) + + changed_at = models.DateTimeField(auto_now_add=True) + changed_by = models.ForeignKey( + settings.AUTH_USER_MODEL, + on_delete=models.SET_NULL, + null=True, + blank=True + ) + + class Meta: + db_table = 'patients_claim_status_history' + verbose_name = 'Claim Status History' + verbose_name_plural = 'Claim Status Histories' + ordering = ['-changed_at'] + + def __str__(self): + return f"{self.claim.claim_number}: {self.from_status} → {self.to_status}" + + + class ConsentTemplate(models.Model): """ Templates for consent forms. """ - + CATEGORY_CHOICES = [ + ('TREATMENT', 'Treatment Consent'), + ('PROCEDURE', 'Procedure Consent'), + ('SURGERY', 'Surgical Consent'), + ('ANESTHESIA', 'Anesthesia Consent'), + ('RESEARCH', 'Research Consent'), + ('PRIVACY', 'Privacy Consent'), + ('FINANCIAL', 'Financial Consent'), + ('ADMISSION', 'Admission Consent'), + ('DISCHARGE', 'Discharge Consent'), + ('OTHER', 'Other'), + ] + # Tenant relationship tenant = models.ForeignKey( 'core.Tenant', @@ -838,17 +1348,7 @@ class ConsentTemplate(models.Model): ) category = models.CharField( max_length=50, - choices=[ - ('TREATMENT', 'Treatment Consent'), - ('PROCEDURE', 'Procedure Consent'), - ('SURGERY', 'Surgical Consent'), - ('ANESTHESIA', 'Anesthesia Consent'), - ('RESEARCH', 'Research Consent'), - ('PRIVACY', 'Privacy Consent'), - ('FINANCIAL', 'Financial Consent'), - ('DISCHARGE', 'Discharge Consent'), - ('OTHER', 'Other'), - ], + choices=CATEGORY_CHOICES, help_text='Consent category' ) @@ -921,7 +1421,13 @@ class ConsentForm(models.Model): """ Patient consent forms. """ - + STATUS_CHOICES = [ + ('PENDING', 'Pending'), + ('SIGNED', 'Signed'), + ('DECLINED', 'Declined'), + ('EXPIRED', 'Expired'), + ('REVOKED', 'Revoked'), + ] # Patient relationship patient = models.ForeignKey( PatientProfile, @@ -947,13 +1453,7 @@ class ConsentForm(models.Model): # Status status = models.CharField( max_length=20, - choices=[ - ('PENDING', 'Pending'), - ('SIGNED', 'Signed'), - ('DECLINED', 'Declined'), - ('EXPIRED', 'Expired'), - ('REVOKED', 'Revoked'), - ], + choices=STATUS_CHOICES, default='PENDING', help_text='Consent status' ) @@ -1136,7 +1636,25 @@ class PatientNote(models.Model): """ General notes and comments about patients. """ - + CATEGORY_CHOICES = [ + ('GENERAL', 'General'), + ('ADMINISTRATIVE', 'Administrative'), + ('CLINICAL', 'Clinical'), + ('BILLING', 'Billing'), + ('INSURANCE', 'Insurance'), + ('SOCIAL', 'Social'), + ('DISCHARGE', 'Discharge Planning'), + ('FOLLOW_UP', 'Follow-up'), + ('ALERT', 'Alert'), + ('OTHER', 'Other'), + ] + PRIORITY_CHOICES = [ + ('LOW', 'Low'), + ('NORMAL', 'Normal'), + ('HIGH', 'High'), + ('URGENT', 'Urgent'), + ] + # Patient relationship patient = models.ForeignKey( PatientProfile, @@ -1164,18 +1682,7 @@ class PatientNote(models.Model): # Category category = models.CharField( max_length=50, - choices=[ - ('GENERAL', 'General'), - ('ADMINISTRATIVE', 'Administrative'), - ('CLINICAL', 'Clinical'), - ('BILLING', 'Billing'), - ('INSURANCE', 'Insurance'), - ('SOCIAL', 'Social'), - ('DISCHARGE', 'Discharge Planning'), - ('FOLLOW_UP', 'Follow-up'), - ('ALERT', 'Alert'), - ('OTHER', 'Other'), - ], + choices=CATEGORY_CHOICES, default='GENERAL', help_text='Note category' ) @@ -1183,12 +1690,7 @@ class PatientNote(models.Model): # Priority priority = models.CharField( max_length=20, - choices=[ - ('LOW', 'Low'), - ('NORMAL', 'Normal'), - ('HIGH', 'High'), - ('URGENT', 'Urgent'), - ], + choices=PRIORITY_CHOICES, default='NORMAL', help_text='Note priority' ) diff --git a/patients/urls.py b/patients/urls.py index 68fba43f..39bc5f3b 100644 --- a/patients/urls.py +++ b/patients/urls.py @@ -14,14 +14,14 @@ urlpatterns = [ path('register/', views.PatientCreateView.as_view(), name='patient_registration'), path('update//', views.PatientUpdateView.as_view(), name='patient_update'), path('delete//', views.PatientDeleteView.as_view(), name='patient_delete'), - path('consents/', views.ConsentFormListView.as_view(), name='consent_management'), + path('consents/', views.ConsentManagementView.as_view(), name='consent_management'), path('consent//', views.ConsentFormDetailView.as_view(), name='consent_management_detail'), path('emergency-contacts/', views.EmergencyContactListView.as_view(), name='emergency_contact_management'), path('emergency-contact//', views.EmergencyContactDetailView.as_view(), name='emergency_contact_management_detail'), path('emergency-contacts/delete//', views.EmergencyContactDeleteView.as_view(), name='emergency_contact_delete'), path('emergency-contacts/update//', views.EmergencyContactUpdateView.as_view(), name='emergency_contact_update'), path('emergency-contacts/create//', views.EmergencyContactCreateView.as_view(), name='emergency_contact_create'), - path('insurance-info//', views.InsuranceInfoListView.as_view(), name='insurance_list'), + path('insurance-info/', views.InsuranceInfoListView.as_view(), name='insurance_list'), path('insurance-info//', views.InsuranceInfoDetailView.as_view(), name='insurance_detail'), path('insurance-info/delete//', views.InsuranceInfoDeleteView.as_view(), name='insurance_delete'), path('insurance-info/update//', views.InsuranceInfoUpdateView.as_view(), name='insurance_update'), @@ -40,10 +40,33 @@ urlpatterns = [ path('emergency-contacts//', views.emergency_contacts_list, name='emergency_contacts_list'), path('insurance-info//', views.insurance_info_list, name='insurance_info_list'), path('consent-forms//', views.consent_forms_list, name='consent_forms_list'), + path('consent-forms/detail//', views.ConsentFormDetailView.as_view(), name='consent_form_detail'), + path('consent-forms/update//', views.ConsentFormUpdateView.as_view(), name='consent_form_update'), + path('patient-notes//', views.patient_notes_list, name='patient_notes_list'), path('add-patient-note//', views.add_patient_note, name='add_patient_note'), path('sign-consent//', views.sign_consent_form, name='sign_consent_form'), path('appointments//', views.patient_appointment_list, name='patient_appointments'), - path('patient-info//', views.get_patient_info, name='get_patient_info') + path('patient-info//', views.get_patient_info, name='get_patient_info'), + path('verify-insurance//', views.verify_insurance, name='verify_insurance'), + path('check-eligibility//', views.check_eligibility, name='check_eligibility'), + path('renew-insurance//', views.renew_insurance, name='renew_insurance'), + path('bulk-renew-insurance/', views.bulk_renew_insurance, name='bulk_renew_insurance'), + path('insurance-claims-history//', views.insurance_claims_history, name='insurance_claims_history'), + path('check-primary-insurance/', views.check_primary_insurance, name='check_primary_insurance'), + path('validate-policy-number/', views.validate_policy_number, name='validate_policy_number'), + path('save-insurance-draft/', views.save_insurance_draft, name='save_insurance_draft'), + path('verify-with-provider/', views.verify_with_provider, name='verify_with_provider'), + + # Insurance Claims URLs + path('claims/', views.insurance_claims_list, name='insurance_claims_list'), + path('claims/dashboard/', views.claims_dashboard, name='claims_dashboard'), + path('claims/new/', views.insurance_claim_form, name='insurance_claim_create'), + path('claims//', views.insurance_claim_detail, name='insurance_claim_detail'), + path('claims//edit/', views.insurance_claim_form, name='insurance_claim_edit'), + path('claims//delete/', views.insurance_claim_delete, name='insurance_claim_delete'), + path('claims//update-status/', views.update_claim_status, name='update_claim_status'), + path('claims/bulk-actions/', views.bulk_claim_actions, name='bulk_claim_actions'), + path('patient//insurance/', views.get_patient_insurance, name='get_patient_insurance'), ] diff --git a/patients/views.py b/patients/views.py index d3361b39..f6983794 100644 --- a/patients/views.py +++ b/patients/views.py @@ -115,7 +115,7 @@ class PatientDetailView(LoginRequiredMixin, DetailView): Patient detail view. """ model = PatientProfile - template_name = 'patients/patient_detail.html' + template_name = 'patients/profiles/patient_detail.html' context_object_name = 'patient' def get_queryset(self): @@ -567,7 +567,7 @@ class InsuranceInfoUpdateView(LoginRequiredMixin, PermissionRequiredMixin, Updat return kwargs def get_success_url(self): - return reverse('patients:insurance_info_detail', kwargs={'pk': self.object.pk}) + return reverse('patients:insurance_detail', kwargs={'pk': self.object.pk}) def form_valid(self, form): response = super().form_valid(form) @@ -595,7 +595,7 @@ class InsuranceInfoDeleteView(LoginRequiredMixin, PermissionRequiredMixin, Delet model = InsuranceInfo template_name = 'patients/insurance/insurance_confirm_delete.html' permission_required = 'patients.delete_insuranceinfo' - success_url = reverse_lazy('patients:insurance_info_list') + success_url = reverse_lazy('patients:insurance_list') def get_queryset(self): tenant = getattr(self.request, 'tenant', None) @@ -632,7 +632,7 @@ class ConsentTemplateListView(LoginRequiredMixin, ListView): List consent templates. """ model = ConsentTemplate - template_name = 'patients/consent_template_list.html' + template_name = 'patients/consents/consent_template_list.html' context_object_name = 'consent_templates' paginate_by = 25 @@ -682,7 +682,7 @@ class ConsentTemplateDetailView(LoginRequiredMixin, DetailView): Display consent template details. """ model = ConsentTemplate - template_name = 'patients/consent_template_detail.html' + template_name = 'patients/consents/consent_template_detail.html' context_object_name = 'consent_template' def get_queryset(self): @@ -698,7 +698,7 @@ class ConsentTemplateCreateView(LoginRequiredMixin, PermissionRequiredMixin, Cre """ model = ConsentTemplate form_class = ConsentTemplateForm - template_name = 'patients/consent_template_form.html' + template_name = 'patients/consents/consent_template_form.html' permission_required = 'patients.add_consenttemplate' success_url = reverse_lazy('patients:consent_template_list') @@ -729,7 +729,7 @@ class ConsentTemplateUpdateView(LoginRequiredMixin, PermissionRequiredMixin, Upd """ model = ConsentTemplate form_class = ConsentTemplateForm - template_name = 'patients/consent_template_form.html' + template_name = 'patients/consents/consent_template_form.html' permission_required = 'patients.change_consenttemplate' def get_queryset(self): @@ -765,7 +765,7 @@ class ConsentTemplateDeleteView(LoginRequiredMixin, PermissionRequiredMixin, Del Delete consent template. """ model = ConsentTemplate - template_name = 'patients/consent_template_confirm_delete.html' + template_name = 'patients/consents/consent_template_confirm_delete.html' permission_required = 'patients.delete_consenttemplate' success_url = reverse_lazy('patients:consent_template_list') @@ -898,6 +898,40 @@ class ConsentFormCreateView(LoginRequiredMixin, PermissionRequiredMixin, CreateV return response +class ConsentFormUpdateView(LoginRequiredMixin, PermissionRequiredMixin, UpdateView): + """ + Create new consent form. + """ + model = ConsentForm + form_class = ConsentFormForm + template_name = 'patients/consents/consent_form_form.html' + permission_required = 'patients.change_consentform' + success_url = reverse_lazy('patients:consent_form_list') + + def get_form_kwargs(self): + kwargs = super().get_form_kwargs() + kwargs['user'] = self.request.user + return kwargs + + def form_valid(self, form): + response = super().form_valid(form) + + # Log consent form creation + AuditLogger.log_event( + tenant=getattr(self.request, 'tenant', None), + event_type='CREATE', + event_category='PATIENT_MANAGEMENT', + action='Create Consent Form', + description=f'Created consent form: {self.object.template.name} for {self.object.patient}', + user=self.request.user, + content_object=self.object, + request=self.request + ) + + messages.success(self.request, f'Consent form "{self.object.template.name}" updated successfully.') + return response + + # ============================================================================ # PATIENT NOTE VIEWS (APPEND-ONLY - Clinical Records) # ============================================================================ @@ -1097,24 +1131,24 @@ def patient_stats(request): return render(request, 'patients/partials/patient_stats.html', {'stats': stats}) -@login_required -def emergency_contacts_list(request, patient_id): - """ - HTMX view for emergency contacts list. - """ - tenant = getattr(request, 'tenant', None) - if not tenant: - return JsonResponse({'error': 'No tenant found'}, status=400) - - patient = get_object_or_404(PatientProfile, id=patient_id, tenant=tenant) - emergency_contacts = EmergencyContact.objects.filter( - patient=patient - ).order_by('-is_primary', 'name') - - return render(request, 'patients/partials/emergency_contacts_list.html', { - 'emergency_contacts': emergency_contacts, - 'patient': patient - }) +# @login_required +# def emergency_contacts_list(request, patient_id): +# """ +# HTMX view for emergency contacts list. +# """ +# tenant = getattr(request, 'tenant', None) +# if not tenant: +# return JsonResponse({'error': 'No tenant found'}, status=400) +# +# patient = get_object_or_404(PatientProfile, id=patient_id, tenant=tenant) +# emergency_contacts = EmergencyContact.objects.filter( +# patient=patient +# ).order_by('-is_primary', 'name') +# +# return render(request, 'patients/partials/emergency_contacts_list.html', { +# 'emergency_contacts': emergency_contacts, +# 'patient': patient +# }) @login_required @@ -2215,204 +2249,205 @@ def get_patient_info(request, pk): # return context # # -# class ConsentManagementView(LoginRequiredMixin, PermissionRequiredMixin, TemplateView): -# """ -# View for managing consent templates and patient consent forms. -# -# This view provides functionality to: -# 1. Create and manage consent templates -# 2. View consent status across patients -# 3. Generate consent forms from templates -# 4. Track consent expirations -# """ -# template_name = 'patients/consent_management.html' -# permission_required = 'patients.view_consenttemplate' -# -# def get_context_data(self, **kwargs): -# """Prepare comprehensive context for consent management""" -# context = super().get_context_data(**kwargs) -# -# # Get active consent templates -# templates = ConsentTemplate.objects.filter( -# tenant=self.request.user.tenant, -# is_active=True -# ).order_by('category', 'name') -# -# # Count consents by category -# category_counts = ConsentTemplate.objects.filter( -# tenant=self.request.user.tenant -# ).values('category').annotate(count=Count('id')) -# -# # Get recent consent forms -# recent_consents = ConsentForm.objects.filter( -# tenant=self.request.user.tenant -# ).select_related('patient', 'template').order_by('-created_at')[:10] -# -# # Get expired/expiring consents -# today = timezone.now().date() -# expiry_threshold = today + timezone.timedelta(days=30) -# -# expiring_consents = ConsentForm.objects.filter( -# tenant=self.request.user.tenant, -# status='SIGNED', -# expiry_date__lte=expiry_threshold, -# expiry_date__gt=today -# ).select_related('patient', 'template').order_by('expiry_date') -# -# expired_consents = ConsentForm.objects.filter( -# tenant=self.request.user.tenant, -# status='SIGNED', -# expiry_date__lt=today -# ).select_related('patient', 'template').order_by('-expiry_date')[:20] -# -# # Get unsigned consents -# unsigned_consents = ConsentForm.objects.filter( -# tenant=self.request.user.tenant, -# status='PENDING' -# ).select_related('patient', 'template').order_by('-created_at')[:20] -# -# # Calculate consent statistics -# total_consents = ConsentForm.objects.filter(tenant=self.request.user.tenant).count() -# signed_count = ConsentForm.objects.filter( -# tenant=self.request.user.tenant, -# status='SIGNED' -# ).count() -# -# expired_count = ConsentForm.objects.filter( -# tenant=self.request.user.tenant, -# status='SIGNED', -# expiry_date__lt=today -# ).count() -# -# pending_count = ConsentForm.objects.filter( -# tenant=self.request.user.tenant, -# status='PENDING' -# ).count() -# -# # Check if we have a template to create -# template_form = None -# if self.request.user.has_perm('patients.add_consenttemplate'): -# template_form = ConsentTemplateForm( -# user=self.request.user, -# tenant=self.request.user.tenant -# ) -# -# # Prepare context -# context.update({ -# 'title': 'Consent Management', -# 'templates': templates, -# 'category_counts': category_counts, -# 'recent_consents': recent_consents, -# 'expiring_consents': expiring_consents, -# 'expired_consents': expired_consents, -# 'unsigned_consents': unsigned_consents, -# 'total_consents': total_consents, -# 'signed_count': signed_count, -# 'expired_count': expired_count, -# 'pending_count': pending_count, -# 'template_form': template_form, -# 'consent_categories': ConsentTemplate._meta.get_field('category').choices, -# }) -# -# return context -# -# def post(self, request, *args, **kwargs): -# """Handle form submissions for template creation""" -# # Check permission for template creation -# if not request.user.has_perm('patients.add_consenttemplate'): -# messages.error(request, "You don't have permission to create consent templates.") -# return redirect('patients:consent_management') -# -# # Process template form -# template_form = ConsentTemplateForm( -# request.POST, -# user=request.user, -# tenant=request.user.tenant -# ) -# -# if template_form.is_valid(): -# template = template_form.save() -# messages.success( -# request, -# f"Consent template '{template.name}' created successfully." -# ) -# return redirect('patients:consent_management') -# else: -# # Re-render page with form errors -# context = self.get_context_data() -# context['template_form'] = template_form -# return self.render_to_response(context) -# -# def get_template(self, template_id): -# """Get a consent template by ID""" -# return get_object_or_404( -# ConsentTemplate, -# pk=template_id, -# tenant=self.request.user.tenant -# ) -# -# def generate_consent_form(self, patient_id, template_id): -# """Generate a consent form for a patient from a template""" -# # Validate permissions -# if not self.request.user.has_perm('patients.add_consentform'): -# messages.error(self.request, "You don't have permission to generate consent forms.") -# return redirect('patients:consent_management') -# -# # Get the patient and template -# patient = get_object_or_404( -# PatientProfile, -# pk=patient_id, -# tenant=self.request.user.tenant -# ) -# -# template = self.get_template(template_id) -# -# # Check if a consent form already exists -# existing_form = ConsentForm.objects.filter( -# patient=patient, -# template=template, -# status='PENDING' -# ).first() -# -# if existing_form: -# messages.info( -# self.request, -# f"A pending consent form already exists for {patient.get_full_name()}." -# ) -# return redirect('patients:consent_form_detail', pk=existing_form.pk) -# -# # Create the consent form -# consent_form = ConsentForm.objects.create( -# consent_id=uuid.uuid4(), -# patient=patient, -# template=template, -# tenant=self.request.user.tenant, -# status='PENDING', -# created_by=self.request.user, -# effective_date=timezone.now().date(), -# expiry_date=template.expiry_date -# ) -# -# # Log the creation -# AuditLogEntry.objects.create( -# tenant=self.request.user.tenant, -# user=self.request.user, -# action='CREATE', -# entity_type='ConsentForm', -# entity_id=str(consent_form.consent_id), -# details={ -# 'patient': patient.get_full_name(), -# 'template': template.name, -# 'status': 'PENDING' -# } -# ) -# -# messages.success( -# self.request, -# f"Consent form generated for {patient.get_full_name()}" -# ) -# -# return redirect('patients:consent_form_detail', pk=consent_form.pk) +class ConsentManagementView(LoginRequiredMixin, PermissionRequiredMixin, TemplateView): + """ + View for managing consent templates and patient consent forms. + + This view provides functionality to: + 1. Create and manage consent templates + 2. View consent status across patients + 3. Generate consent forms from templates + 4. Track consent expirations + """ + template_name = 'patients/consent_management.html' + permission_required = 'patients.view_consenttemplate' + + def get_context_data(self, **kwargs): + """Prepare comprehensive context for consent management""" + context = super().get_context_data(**kwargs) + + # Get active consent templates + templates = ConsentTemplate.objects.filter( + tenant=self.request.user.tenant, + is_active=True + ).order_by('category', 'name') + + # Count consents by category + category_counts = ConsentTemplate.objects.filter( + tenant=self.request.user.tenant + ).values('category').annotate(count=Count('id')) + + # Get recent consent forms + recent_consents = ConsentForm.objects.filter( + patient__tenant=self.request.user.tenant + ).select_related('patient', 'template').order_by('-created_at') + + # consent_forms = ConsentForm.objects.filter( + # patient__tenant=self.request.user.tenant + # ) + + # Get expired/expiring consents + today = timezone.now().date() + expiry_threshold = today + timezone.timedelta(days=30) + + expiring_consents = ConsentForm.objects.filter( + patient__tenant=self.request.user.tenant, + status='SIGNED', + expiry_date__lte=expiry_threshold, + expiry_date__gt=today + ).select_related('patient', 'template').order_by('expiry_date') + + expired_consents = ConsentForm.objects.filter( + patient__tenant=self.request.user.tenant, + status='SIGNED', + expiry_date__lt=today + ).select_related('patient', 'template').order_by('-expiry_date')[:20] + + # Get unsigned consents + unsigned_consents = ConsentForm.objects.filter( + patient__tenant=self.request.user.tenant, + status='PENDING' + ).select_related('patient', 'template').order_by('-created_at')[:20] + + # Calculate consent statistics + total_consents = ConsentForm.objects.filter(patient__tenant=self.request.user.tenant).count() + signed_count = ConsentForm.objects.filter( + patient__tenant=self.request.user.tenant, + status='SIGNED' + ).count() + + expired_count = ConsentForm.objects.filter( + patient__tenant=self.request.user.tenant, + status='SIGNED', + expiry_date__lt=today + ).count() + + pending_count = ConsentForm.objects.filter( + patient__tenant=self.request.user.tenant, + status='PENDING' + ).count() + + # Check if we have a template to create + template_form = None + if self.request.user.has_perm('patients.add_consenttemplate'): + template_form = ConsentTemplateForm + + # Prepare context + context.update({ + 'title': 'Consent Management', + 'templates': templates, + 'category_counts': category_counts, + 'consents': recent_consents, + 'expiring_consents': expiring_consents, + 'expired_consents': expired_consents, + 'unsigned_consents': unsigned_consents, + 'total_consents': total_consents, + 'signed_count': signed_count, + 'expired_count': expired_count, + 'pending_count': pending_count, + 'template_form': template_form, + 'consent_categories': ConsentTemplate._meta.get_field('category').choices, + }) + + return context + + def post(self, request, *args, **kwargs): + """Handle form submissions for template creation""" + # Check permission for template creation + if not request.user.has_perm('patients.add_consenttemplate'): + messages.error(request, "You don't have permission to create consent templates.") + return redirect('patients:consent_management') + + # Process template form + template_form = ConsentTemplateForm( + request.POST, + user=request.user, + tenant=request.user.tenant + ) + + if template_form.is_valid(): + template = template_form.save() + messages.success( + request, + f"Consent template '{template.name}' created successfully." + ) + return redirect('patients:consent_management') + else: + # Re-render page with form errors + context = self.get_context_data() + context['template_form'] = template_form + return self.render_to_response(context) + + def get_template(self, template_id): + """Get a consent template by ID""" + return get_object_or_404( + ConsentTemplate, + pk=template_id, + tenant=self.request.user.tenant + ) + + def generate_consent_form(self, patient_id, template_id): + """Generate a consent form for a patient from a template""" + # Validate permissions + if not self.request.user.has_perm('patients.add_consentform'): + messages.error(self.request, "You don't have permission to generate consent forms.") + return redirect('patients:consent_management') + + # Get the patient and template + patient = get_object_or_404( + PatientProfile, + pk=patient_id, + tenant=self.request.user.tenant + ) + + template = self.get_template(template_id) + + # Check if a consent form already exists + existing_form = ConsentForm.objects.filter( + patient=patient, + template=template, + status='PENDING' + ).first() + + if existing_form: + messages.info( + self.request, + f"A pending consent form already exists for {patient.get_full_name()}." + ) + return redirect('patients:consent_form_detail', pk=existing_form.pk) + + # Create the consent form + consent_form = ConsentForm.objects.create( + consent_id=uuid.uuid4(), + patient=patient, + template=template, + tenant=self.request.user.tenant, + status='PENDING', + created_by=self.request.user, + effective_date=timezone.now().date(), + expiry_date=template.expiry_date + ) + + # Log the creation + AuditLogEntry.objects.create( + tenant=self.request.user.tenant, + user=self.request.user, + action='CREATE', + entity_type='ConsentForm', + entity_id=str(consent_form.consent_id), + details={ + 'patient': patient.get_full_name(), + 'template': template.name, + 'status': 'PENDING' + } + ) + + messages.success( + self.request, + f"Consent form generated for {patient.get_full_name()}" + ) + + return redirect('patients:consent_form_detail', pk=consent_form.pk) # # # class ConsentFormDetailView(LoginRequiredMixin, DetailView): @@ -2873,158 +2908,158 @@ def get_patient_info(request, pk): # 'form': form, # 'patient': patient # }) -# -# -# @login_required -# def patient_demographics_update(request, patient_id): -# """ -# HTMX view for updating patient demographics. -# """ -# tenant = getattr(request, 'tenant', None) -# patient = get_object_or_404(PatientProfile, pk=patient_id, tenant=tenant) -# -# if request.method == 'POST': -# form = PatientProfileForm(request.POST, instance=patient) -# if form.is_valid(): -# form.save() -# -# # Log the update -# from core.models import AuditLogEntry -# AuditLogEntry.objects.create( -# tenant=tenant, -# user=request.user, -# action='UPDATE', -# entity_type='PatientProfile', -# entity_id=str(patient.patient_id), -# details={ -# 'name': patient.get_full_name(), -# 'mrn': patient.mrn, -# 'fields_updated': list(form.changed_data) -# } -# ) -# -# messages.success(request, 'Patient demographics updated successfully.') -# return JsonResponse({'status': 'success'}) -# else: -# return JsonResponse({'status': 'error', 'errors': form.errors}) -# else: -# form = PatientProfileForm(instance=patient) -# -# return render(request, 'patients/partials/demographics_form.html', { -# 'form': form, -# 'patient': patient -# }) -# -# -# @login_required -# def verify_insurance(request, insurance_id): -# """ -# HTMX view for verifying insurance information. -# """ -# tenant = getattr(request, 'tenant', None) -# insurance = get_object_or_404(InsuranceInfo, pk=insurance_id, patient__tenant=tenant) -# -# if request.method == 'POST': -# insurance.is_verified = True -# insurance.verification_date = timezone.now() -# insurance.verified_by = request.user -# insurance.save() -# -# # Log the verification -# from core.models import AuditLogEntry -# AuditLogEntry.objects.create( -# tenant=tenant, -# user=request.user, -# action='UPDATE', -# entity_type='InsuranceInfo', -# entity_id=str(insurance.id), -# details={ -# 'patient': insurance.patient.get_full_name(), -# 'mrn': insurance.patient.mrn, -# 'insurance': insurance.insurance_company, -# 'policy': insurance.policy_number, -# 'verification_date': str(insurance.verification_date) -# } -# ) -# -# messages.success(request, 'Insurance information verified successfully.') -# -# # Fetch all insurance records for this patient to refresh the list -# insurance_records = InsuranceInfo.objects.filter( -# patient=insurance.patient -# ).order_by('-is_active', '-effective_date') -# -# return render(request, 'patients/partials/insurance_info_list.html', { -# 'insurance_records': insurance_records, -# 'patient': insurance.patient -# }) -# -# return JsonResponse({'status': 'error', 'message': 'Invalid request method'}) -# -# -# @login_required -# def emergency_contacts_list(request, patient_id): -# """ -# HTMX view for listing emergency contacts. -# """ -# tenant = getattr(request, 'tenant', None) -# patient = get_object_or_404(PatientProfile, pk=patient_id, tenant=tenant) -# -# contacts = EmergencyContact.objects.filter( -# patient=patient -# ).order_by('-is_active', 'priority') -# -# # Handle form submission for adding a new contact -# if request.method == 'POST': -# form = EmergencyContactForm(request.POST, user=request.user) -# if form.is_valid(): -# contact = form.save(commit=False) -# contact.patient = patient -# contact.save() -# -# # Log the addition -# from core.models import AuditLogEntry -# AuditLogEntry.objects.create( -# tenant=tenant, -# user=request.user, -# action='CREATE', -# entity_type='EmergencyContact', -# entity_id=str(contact.id), -# details={ -# 'patient': patient.get_full_name(), -# 'mrn': patient.mrn, -# 'contact': contact.get_full_name(), -# 'relationship': contact.relationship -# } -# ) -# -# messages.success(request, 'Emergency contact added successfully.') -# -# # Refresh contacts list -# contacts = EmergencyContact.objects.filter( -# patient=patient -# ).order_by('-is_active', 'priority') -# -# return render(request, 'patients/partials/emergency_contacts_list.html', { -# 'contacts': contacts, -# 'patient': patient -# }) -# else: -# # Return form with errors -# return render(request, 'patients/partials/emergency_contact_form.html', { -# 'form': form, -# 'patient': patient -# }) -# else: -# # Initial form for adding new contact -# initial_data = {'patient': patient.pk} -# form = EmergencyContactForm(initial=initial_data, user=request.user) -# -# return render(request, 'patients/partials/emergency_contacts_list.html', { -# 'contacts': contacts, -# 'patient': patient, -# 'form': form -# }) + + +@login_required +def patient_demographics_update(request, patient_id): + """ + HTMX view for updating patient demographics. + """ + tenant = getattr(request, 'tenant', None) + patient = get_object_or_404(PatientProfile, pk=patient_id, tenant=tenant) + + if request.method == 'POST': + form = PatientProfileForm(request.POST, instance=patient) + if form.is_valid(): + form.save() + + # Log the update + from core.models import AuditLogEntry + AuditLogEntry.objects.create( + tenant=tenant, + user=request.user, + action='UPDATE', + entity_type='PatientProfile', + entity_id=str(patient.patient_id), + details={ + 'name': patient.get_full_name(), + 'mrn': patient.mrn, + 'fields_updated': list(form.changed_data) + } + ) + + messages.success(request, 'Patient demographics updated successfully.') + return JsonResponse({'status': 'success'}) + else: + return JsonResponse({'status': 'error', 'errors': form.errors}) + else: + form = PatientProfileForm(instance=patient) + + return render(request, 'patients/partials/demographics_form.html', { + 'form': form, + 'patient': patient + }) + + +@login_required +def verify_insurance(request, insurance_id): + """ + HTMX view for verifying insurance information. + """ + tenant = getattr(request, 'tenant', None) + insurance = get_object_or_404(InsuranceInfo, pk=insurance_id, patient__tenant=tenant) + + if request.method == 'POST': + insurance.is_verified = True + insurance.verification_date = timezone.now() + insurance.verified_by = request.user + insurance.save() + + # Log the verification + from core.models import AuditLogEntry + AuditLogEntry.objects.create( + tenant=tenant, + user=request.user, + action='UPDATE', + entity_type='InsuranceInfo', + entity_id=str(insurance.id), + details={ + 'patient': insurance.patient.get_full_name(), + 'mrn': insurance.patient.mrn, + 'insurance': insurance.insurance_company, + 'policy': insurance.policy_number, + 'verification_date': str(insurance.verification_date) + } + ) + + messages.success(request, 'Insurance information verified successfully.') + + # Fetch all insurance records for this patient to refresh the list + insurance_records = InsuranceInfo.objects.filter( + patient=insurance.patient + ).order_by('-is_active', '-effective_date') + + return render(request, 'patients/partials/insurance_info_list.html', { + 'insurance_records': insurance_records, + 'patient': insurance.patient + }) + + return JsonResponse({'status': 'error', 'message': 'Invalid request method'}) + + +@login_required +def emergency_contacts_list(request, patient_id): + """ + HTMX view for listing emergency contacts. + """ + tenant = getattr(request, 'tenant', None) + patient = get_object_or_404(PatientProfile, pk=patient_id, tenant=tenant) + + contacts = EmergencyContact.objects.filter( + patient=patient + ).order_by('-is_active', 'priority') + + # Handle form submission for adding a new contact + if request.method == 'POST': + form = EmergencyContactForm(request.POST, user=request.user) + if form.is_valid(): + contact = form.save(commit=False) + contact.patient = patient + contact.save() + + # Log the addition + from core.models import AuditLogEntry + AuditLogEntry.objects.create( + tenant=tenant, + user=request.user, + action='CREATE', + entity_type='EmergencyContact', + entity_id=str(contact.id), + details={ + 'patient': patient.get_full_name(), + 'mrn': patient.mrn, + 'contact': contact.get_full_name(), + 'relationship': contact.relationship + } + ) + + messages.success(request, 'Emergency contact added successfully.') + + # Refresh contacts list + contacts = EmergencyContact.objects.filter( + patient=patient + ).order_by('-is_active', 'priority') + + return render(request, 'patients/partials/emergency_contacts_list.html', { + 'contacts': contacts, + 'patient': patient + }) + else: + # Return form with errors + return render(request, 'patients/emergency_contacts/emergency_contact_form.html', { + 'form': form, + 'patient': patient + }) + else: + # Initial form for adding new contact + initial_data = {'patient': patient.pk} + form = EmergencyContactForm(initial=initial_data, user=request.user) + + return render(request, 'patients/partials/emergency_contacts_list.html', { + 'contacts': contacts, + 'patient': patient, + 'form': form + }) # # # @login_required @@ -3112,3 +3147,1460 @@ def get_patient_info(request, pk): # # # + +@login_required +def check_eligibility(request, pk): + """ + AJAX view to check insurance eligibility for a patient. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + # Get insurance info object + from .models import InsuranceInfo + insurance = get_object_or_404(InsuranceInfo, id=pk, patient__tenant=tenant) + + if request.method == 'POST': + # Simulate eligibility check (in real implementation, this would call insurance API) + import random + from datetime import datetime, timedelta + + # Simulate API call delay + import time + time.sleep(1) + + # Generate mock eligibility data + eligibility_status = random.choice(['active', 'inactive', 'pending', 'expired']) + coverage_types = ['medical', 'dental', 'vision', 'prescription'] + active_coverage = random.sample(coverage_types, random.randint(1, 4)) + + # Calculate mock deductible and copay amounts + deductible_remaining = random.randint(0, 5000) + copay_amount = random.choice([10, 15, 20, 25, 30, 35, 40, 50]) + + # Generate mock effective dates + effective_date = datetime.now() - timedelta(days=random.randint(30, 365)) + expiration_date = effective_date + timedelta(days=365) + + eligibility_data = { + 'status': eligibility_status, + 'effective_date': effective_date.strftime('%Y-%m-%d'), + 'expiration_date': expiration_date.strftime('%Y-%m-%d'), + 'coverage_types': active_coverage, + 'deductible_remaining': deductible_remaining, + 'copay_amount': copay_amount, + 'last_checked': datetime.now().strftime('%Y-%m-%d %H:%M:%S'), + 'verification_id': f'VER{random.randint(100000, 999999)}', + 'group_number': insurance.group_number or f'GRP{random.randint(10000, 99999)}', + 'prior_authorization_required': random.choice([True, False]), + 'network_status': random.choice(['in-network', 'out-of-network', 'preferred']), + } + + # Log eligibility check + AuditLogger.log_event( + tenant=tenant, + event_type='READ', + event_category='PATIENT_MANAGEMENT', + action='Check Insurance Eligibility', + description=f'Checked eligibility for {insurance.patient} - {insurance.insurance_company}', + user=request.user, + content_object=insurance, + request=request + ) + + # Render the eligibility results template + html = render(request, 'patients/partials/eligibility_results.html', { + 'insurance': insurance, + 'eligibility': eligibility_data + }).content.decode('utf-8') + + return JsonResponse({ + 'status': 'success', + 'html': html, + 'eligibility_status': eligibility_status + }) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +@login_required +def renew_insurance(request, pk): + """ + AJAX view to renew/mark insurance for renewal. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + # Get insurance info object + from .models import InsuranceInfo + insurance = get_object_or_404(InsuranceInfo, id=pk, patient__tenant=tenant) + + if request.method == 'POST': + try: + # Update insurance renewal status + insurance.renewal_requested = True + insurance.renewal_requested_date = timezone.now() + insurance.renewal_requested_by = request.user + + # If expired, extend expiration date by 1 year + if insurance.expiration_date and insurance.is_expired: + from datetime import timedelta + insurance.expiration_date = insurance.expiration_date + timedelta(days=365) + elif not insurance.expiration_date: + # Set expiration date to 1 year from now if not set + from datetime import timedelta + insurance.expiration_date = timezone.now().date() + timedelta(days=365) + + # Update status if needed + if hasattr(insurance, 'status'): + insurance.status = 'renewal_pending' + + insurance.save() + + # Log insurance renewal request + AuditLogger.log_event( + tenant=tenant, + event_type='UPDATE', + event_category='PATIENT_MANAGEMENT', + action='Request Insurance Renewal', + description=f'Requested renewal for {insurance.patient} - {insurance.insurance_company}', + user=request.user, + content_object=insurance, + request=request + ) + + # Create notification for insurance team (if notification system exists) + try: + from notifications.models import Notification + Notification.objects.create( + tenant=tenant, + title='Insurance Renewal Request', + message=f'Renewal requested for {insurance.patient.get_full_name()} - {insurance.insurance_company}', + notification_type='insurance_renewal', + created_by=request.user, + target_users=['insurance_team'], # This would be configured based on your notification system + ) + except ImportError: + # Notification system not available + pass + + return JsonResponse({ + 'status': 'success', + 'message': 'Insurance marked for renewal successfully', + 'renewal_date': insurance.renewal_requested_date.strftime( + '%Y-%m-%d %H:%M:%S') if insurance.renewal_requested_date else None, + 'expiration_date': insurance.expiration_date.strftime('%Y-%m-%d') if insurance.expiration_date else None + }) + + except Exception as e: + return JsonResponse({ + 'status': 'error', + 'message': f'Failed to process renewal request: {str(e)}' + }, status=500) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +@login_required +def bulk_renew_insurance(request): + """ + AJAX view to bulk renew multiple insurance records. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + if request.method == 'POST': + insurance_ids = request.POST.getlist('insurance_ids[]') + + if not insurance_ids: + return JsonResponse({'error': 'No insurance records selected'}, status=400) + + try: + from .models import InsuranceInfo + from datetime import timedelta + + updated_count = 0 + errors = [] + + for insurance_id in insurance_ids: + try: + insurance = InsuranceInfo.objects.get( + id=insurance_id, + patient__tenant=tenant + ) + + # Update insurance renewal status + insurance.renewal_requested = True + insurance.renewal_requested_date = timezone.now() + insurance.renewal_requested_by = request.user + + # If expired, extend expiration date by 1 year + if insurance.expiration_date and insurance.is_expired: + insurance.expiration_date = insurance.expiration_date + timedelta(days=365) + elif not insurance.expiration_date: + # Set expiration date to 1 year from now if not set + insurance.expiration_date = timezone.now().date() + timedelta(days=365) + + # Update status if needed + if hasattr(insurance, 'status'): + insurance.status = 'renewal_pending' + + insurance.save() + updated_count += 1 + + # Log individual renewal request + AuditLogger.log_event( + tenant=tenant, + event_type='UPDATE', + event_category='PATIENT_MANAGEMENT', + action='Bulk Request Insurance Renewal', + description=f'Bulk renewal requested for {insurance.patient} - {insurance.insurance_company}', + user=request.user, + content_object=insurance, + request=request + ) + + except InsuranceInfo.DoesNotExist: + errors.append(f'Insurance record {insurance_id} not found') + except Exception as e: + errors.append(f'Error processing insurance {insurance_id}: {str(e)}') + + # Create bulk notification for insurance team + try: + from notifications.models import Notification + Notification.objects.create( + tenant=tenant, + title='Bulk Insurance Renewal Request', + message=f'Bulk renewal requested for {updated_count} insurance records', + notification_type='bulk_insurance_renewal', + created_by=request.user, + target_users=['insurance_team'], + ) + except ImportError: + # Notification system not available + pass + + response_data = { + 'status': 'success', + 'updated_count': updated_count, + 'message': f'Successfully marked {updated_count} insurance records for renewal' + } + + if errors: + response_data['errors'] = errors + response_data['message'] += f' ({len(errors)} errors occurred)' + + return JsonResponse(response_data) + + except Exception as e: + return JsonResponse({ + 'status': 'error', + 'message': f'Failed to process bulk renewal: {str(e)}' + }, status=500) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +@login_required +def insurance_claims_history(request, pk): + """ + AJAX view to load insurance claims history for a patient's insurance. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + # Get insurance info object + from .models import InsuranceInfo + insurance = get_object_or_404(InsuranceInfo, id=pk, patient__tenant=tenant) + + if request.method == 'GET': + # Generate mock claims history (in real implementation, this would query claims database) + import random + from datetime import datetime, timedelta + + # Generate mock claims data + claims = [] + claim_types = [ + 'Office Visit', 'Emergency Room', 'Prescription', 'Laboratory', + 'Radiology', 'Surgery', 'Physical Therapy', 'Specialist Consultation', + 'Dental', 'Vision', 'Mental Health', 'Preventive Care' + ] + + claim_statuses = ['approved', 'pending', 'denied', 'processing', 'paid'] + + # Generate 10-20 mock claims + num_claims = random.randint(10, 20) + + for i in range(num_claims): + claim_date = datetime.now() - timedelta(days=random.randint(1, 730)) # Last 2 years + service_date = claim_date - timedelta(days=random.randint(0, 30)) + + claim_amount = random.uniform(50, 5000) + approved_amount = claim_amount * random.uniform(0.7, 1.0) + patient_responsibility = claim_amount - approved_amount + + status = random.choice(claim_statuses) + + claim = { + 'claim_id': f'CLM{random.randint(100000, 999999)}', + 'service_date': service_date.strftime('%Y-%m-%d'), + 'claim_date': claim_date.strftime('%Y-%m-%d'), + 'service_type': random.choice(claim_types), + 'provider': f'Dr. {random.choice(["Smith", "Johnson", "Williams", "Brown", "Jones", "Garcia", "Miller", "Davis", "Rodriguez", "Martinez"])}', + 'claim_amount': round(claim_amount, 2), + 'approved_amount': round(approved_amount, 2) if status in ['approved', 'paid'] else 0, + 'patient_responsibility': round(patient_responsibility, 2) if status in ['approved', 'paid'] else 0, + 'status': status, + 'diagnosis_code': f'{random.choice(["Z00", "M79", "R06", "K59", "I10", "E11", "F32", "G43", "J06", "N39"])}.{random.randint(10, 99)}', + 'procedure_code': f'{random.randint(99000, 99999)}', + 'processed_date': (claim_date + timedelta(days=random.randint(1, 14))).strftime( + '%Y-%m-%d') if status != 'pending' else None, + 'payment_date': (claim_date + timedelta(days=random.randint(15, 45))).strftime( + '%Y-%m-%d') if status == 'paid' else None, + 'denial_reason': random.choice([ + 'Service not covered', 'Prior authorization required', 'Duplicate claim', + 'Information incomplete', 'Out of network provider' + ]) if status == 'denied' else None, + } + claims.append(claim) + + # Sort claims by service date (most recent first) + claims.sort(key=lambda x: x['service_date'], reverse=True) + + # Calculate summary statistics + total_claims = len(claims) + total_claimed = sum(claim['claim_amount'] for claim in claims) + total_approved = sum(claim['approved_amount'] for claim in claims) + total_patient_responsibility = sum(claim['patient_responsibility'] for claim in claims) + + approved_claims = len([c for c in claims if c['status'] in ['approved', 'paid']]) + pending_claims = len([c for c in claims if c['status'] == 'pending']) + denied_claims = len([c for c in claims if c['status'] == 'denied']) + + summary = { + 'total_claims': total_claims, + 'total_claimed': round(total_claimed, 2), + 'total_approved': round(total_approved, 2), + 'total_patient_responsibility': round(total_patient_responsibility, 2), + 'approved_claims': approved_claims, + 'pending_claims': pending_claims, + 'denied_claims': denied_claims, + 'approval_rate': round((approved_claims / total_claims * 100), 1) if total_claims > 0 else 0, + } + + # Log claims history access + AuditLogger.log_event( + tenant=tenant, + event_type='READ', + event_category='PATIENT_MANAGEMENT', + action='View Insurance Claims History', + description=f'Viewed claims history for {insurance.patient} - {insurance.insurance_company}', + user=request.user, + content_object=insurance, + request=request + ) + + # Render the claims history template + html = render(request, 'patients/partials/insurance_claims_history.html', { + 'insurance': insurance, + 'claims': claims, + 'summary': summary + }).content.decode('utf-8') + + return JsonResponse({ + 'status': 'success', + 'html': html, + 'summary': summary + }) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +@login_required +def check_primary_insurance(request): + """ + AJAX view to check if a patient already has primary insurance. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + if request.method == 'POST': + patient_id = request.POST.get('patient_id') + current_insurance_id = request.POST.get('current_insurance_id') + + if not patient_id: + return JsonResponse({'error': 'Patient ID is required'}, status=400) + + try: + from .models import InsuranceInfo, PatientProfile + + # Get patient + patient = get_object_or_404(PatientProfile, id=patient_id, tenant=tenant) + + # Check for existing primary insurance + primary_insurance_query = InsuranceInfo.objects.filter( + patient=patient, + is_primary=True + ) + + # Exclude current insurance if editing + if current_insurance_id and current_insurance_id != 'null': + primary_insurance_query = primary_insurance_query.exclude(id=current_insurance_id) + + existing_primary = primary_insurance_query.first() + + response_data = { + 'has_primary': existing_primary is not None, + 'patient_name': patient.get_full_name(), + 'patient_id': patient.patient_id or patient.id, + } + + if existing_primary: + response_data.update({ + 'existing_primary': { + 'id': existing_primary.id, + 'provider': existing_primary.insurance_company, + 'policy_number': existing_primary.policy_number, + 'member_id': existing_primary.policy_number, + 'effective_date': existing_primary.effective_date.strftime( + '%Y-%m-%d') if existing_primary.effective_date else None, + 'expiration_date': existing_primary.termination_date.strftime( + '%Y-%m-%d') if existing_primary.termination_date else None, + 'is_active': not existing_primary.is_expired if hasattr(existing_primary, + 'is_expired') else True, + } + }) + + # Get all insurance records for this patient for additional context + all_insurance = InsuranceInfo.objects.filter(patient=patient).order_by('-is_primary', '-created_at') + insurance_list = [] + + for insurance in all_insurance: + insurance_info = { + 'id': insurance.id, + 'provider': insurance.insurance_company, + 'policy_number': insurance.policy_number, + 'member_id': insurance.policy_number, + 'is_primary': insurance.is_primary, + 'effective_date': insurance.effective_date.strftime( + '%Y-%m-%d') if insurance.effective_date else None, + 'expiration_date': insurance.termination_date.strftime( + '%Y-%m-%d') if insurance.termination_date else None, + 'is_active': not insurance.is_expired if hasattr(insurance, 'is_expired') else True, + 'created_at': insurance.created_at.strftime('%Y-%m-%d') if insurance.created_at else None, + } + insurance_list.append(insurance_info) + + response_data['all_insurance'] = insurance_list + response_data['total_insurance_count'] = len(insurance_list) + + # Log primary insurance check + AuditLogger.log_event( + tenant=tenant, + event_type='READ', + event_category='PATIENT_MANAGEMENT', + action='Check Primary Insurance', + description=f'Checked primary insurance status for {patient}', + user=request.user, + content_object=patient, + request=request + ) + + return JsonResponse(response_data) + + except PatientProfile.DoesNotExist: + return JsonResponse({'error': 'Patient not found'}, status=404) + except Exception as e: + return JsonResponse({'error': f'Error checking primary insurance: {str(e)}'}, status=500) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +@login_required +def validate_policy_number(request): + """ + AJAX view to validate insurance policy number uniqueness and format. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + if request.method == 'POST': + policy_number = request.POST.get('policy_number', '').strip() + provider = request.POST.get('provider', '').strip() + current_insurance_id = request.POST.get('current_insurance_id') + + if not policy_number: + return JsonResponse({ + 'is_valid': False, + 'error': 'Policy number is required' + }) + + if not provider: + return JsonResponse({ + 'is_valid': False, + 'error': 'Insurance provider is required' + }) + + try: + from .models import InsuranceInfo + import re + + # Basic policy number format validation + validation_result = { + 'is_valid': True, + 'warnings': [], + 'suggestions': [], + 'format_valid': True, + 'uniqueness_valid': True, + 'provider_specific_validation': True + } + + # Format validation based on common insurance policy number patterns + format_patterns = { + 'Aetna': r'^[A-Z]{2}\d{8,12}$', + 'Blue Cross Blue Shield': r'^[A-Z]{3}\d{9}$', + 'Cigna': r'^[A-Z0-9]{8,15}$', + 'UnitedHealthcare': r'^[A-Z0-9]{9,12}$', + 'Humana': r'^[A-Z0-9]{8,14}$', + 'Kaiser Permanente': r'^[A-Z0-9]{7,12}$', + 'Anthem': r'^[A-Z]{2,3}\d{8,10}$', + 'Medicare': r'^[A-Z0-9]{11}$', + 'Medicaid': r'^[A-Z0-9]{8,15}$', + } + + # Check format for known providers + provider_pattern = None + for known_provider, pattern in format_patterns.items(): + if known_provider.lower() in provider.lower(): + provider_pattern = pattern + break + + if provider_pattern: + if not re.match(provider_pattern, policy_number.upper()): + validation_result['format_valid'] = False + validation_result['warnings'].append(f'Policy number format may not match {provider} standards') + validation_result['suggestions'].append(f'Expected format for {provider}: {provider_pattern}') + else: + # Generic validation for unknown providers + if len(policy_number) < 6: + validation_result['format_valid'] = False + validation_result['warnings'].append('Policy number seems too short') + elif len(policy_number) > 20: + validation_result['format_valid'] = False + validation_result['warnings'].append('Policy number seems too long') + + # Check for common invalid characters + if re.search(r'[^A-Za-z0-9\-]', policy_number): + validation_result['format_valid'] = False + validation_result['warnings'].append('Policy number contains invalid characters') + + # Check uniqueness within the tenant + existing_query = InsuranceInfo.objects.filter( + patient__tenant=tenant, + policy_number__iexact=policy_number, + insurance_provider__iexact=provider + ) + + # Exclude current insurance if editing + if current_insurance_id and current_insurance_id != 'null': + existing_query = existing_query.exclude(id=current_insurance_id) + + existing_insurance = existing_query.first() + + if existing_insurance: + validation_result['uniqueness_valid'] = False + validation_result['is_valid'] = False + validation_result['warnings'].append('Policy number already exists for this provider') + validation_result['existing_insurance'] = { + 'id': existing_insurance.id, + 'patient_name': existing_insurance.patient.get_full_name(), + 'patient_id': existing_insurance.patient.patient_id or existing_insurance.patient.id, + 'effective_date': existing_insurance.effective_date.strftime( + '%Y-%m-%d') if existing_insurance.effective_date else None, + 'is_primary': existing_insurance.is_primary, + } + + # Check for similar policy numbers (potential typos) + similar_policies = InsuranceInfo.objects.filter( + patient__tenant=tenant, + insurance_provider__iexact=provider, + policy_number__icontains=policy_number[:6] # Check first 6 characters + ) + + if current_insurance_id and current_insurance_id != 'null': + similar_policies = similar_policies.exclude(id=current_insurance_id) + + if similar_policies.exists() and not existing_insurance: + similar_list = [] + for similar in similar_policies[:3]: # Limit to 3 suggestions + similar_list.append({ + 'policy_number': similar.policy_number, + 'patient_name': similar.patient.get_full_name(), + 'patient_id': similar.patient.patient_id or similar.patient.id, + }) + + if similar_list: + validation_result['suggestions'].append('Similar policy numbers found') + validation_result['similar_policies'] = similar_list + + # Provider-specific validation rules + provider_lower = provider.lower() + + if 'medicare' in provider_lower: + # Medicare-specific validation + if not re.match(r'^[A-Z0-9]{11}$', policy_number.upper()): + validation_result['provider_specific_validation'] = False + validation_result['warnings'].append( + 'Medicare policy numbers should be 11 characters (letters and numbers)') + + elif 'medicaid' in provider_lower: + # Medicaid-specific validation + if len(policy_number) < 8: + validation_result['provider_specific_validation'] = False + validation_result['warnings'].append('Medicaid policy numbers are typically 8+ characters') + + # Overall validation result + if not validation_result['format_valid'] or not validation_result['uniqueness_valid']: + validation_result['is_valid'] = False + elif validation_result['warnings']: + # Valid but with warnings + validation_result['is_valid'] = True + validation_result['has_warnings'] = True + + # Log policy number validation + AuditLogger.log_event( + tenant=tenant, + event_type='VALIDATE', + event_category='PATIENT_MANAGEMENT', + action='Validate Policy Number', + description=f'Validated policy number {policy_number} for provider {provider}', + user=request.user, + request=request + ) + + return JsonResponse(validation_result) + + except Exception as e: + return JsonResponse({ + 'is_valid': False, + 'error': f'Error validating policy number: {str(e)}' + }, status=500) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +@login_required +def save_insurance_draft(request): + """ + AJAX view to save insurance form as draft. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + if request.method == 'POST': + try: + from .models import InsuranceInfo, PatientProfile + from .forms import InsuranceInfoForm + import json + + # Get form data + form_data = request.POST.copy() + + # Check if this is an update to existing insurance or new draft + insurance_id = form_data.get('insurance_id') + patient_id = form_data.get('patient') + + if not patient_id: + return JsonResponse({ + 'success': False, + 'error': 'Patient ID is required' + }) + + # Get patient + patient = get_object_or_404(PatientProfile, id=patient_id, tenant=tenant) + + # Prepare draft data + draft_data = { + 'patient_id': patient_id, + 'insurance_provider': form_data.get('insurance_provider', ''), + 'policy_number': form_data.get('policy_number', ''), + 'member_id': form_data.get('member_id', ''), + 'group_number': form_data.get('group_number', ''), + 'is_primary': form_data.get('is_primary') == 'on', + 'effective_date': form_data.get('effective_date', ''), + 'expiration_date': form_data.get('expiration_date', ''), + 'copay': form_data.get('copay', ''), + 'deductible': form_data.get('deductible', ''), + 'notes': form_data.get('notes', ''), + 'subscriber_name': form_data.get('subscriber_name', ''), + 'subscriber_relationship': form_data.get('subscriber_relationship', ''), + 'subscriber_dob': form_data.get('subscriber_dob', ''), + 'subscriber_ssn': form_data.get('subscriber_ssn', ''), + 'employer': form_data.get('employer', ''), + 'plan_type': form_data.get('plan_type', ''), + 'network_type': form_data.get('network_type', ''), + 'prior_authorization_required': form_data.get('prior_authorization_required') == 'on', + 'saved_at': timezone.now().isoformat(), + 'saved_by': request.user.id, + } + + # Try to create or update insurance record as draft + if insurance_id: + # Update existing insurance + insurance = get_object_or_404(InsuranceInfo, id=insurance_id, patient__tenant=tenant) + + # Update fields with non-empty values + for field, value in draft_data.items(): + if field not in ['patient_id', 'saved_at', 'saved_by'] and value: + if field == 'is_primary' or field == 'prior_authorization_required': + setattr(insurance, field, value) + elif field in ['effective_date', 'expiration_date', 'subscriber_dob']: + if value: + try: + from datetime import datetime + date_value = datetime.strptime(value, '%Y-%m-%d').date() + setattr(insurance, field, date_value) + except ValueError: + pass # Skip invalid dates + elif field in ['copay', 'deductible']: + if value: + try: + numeric_value = float(value) + setattr(insurance, field, numeric_value) + except ValueError: + pass # Skip invalid numbers + else: + setattr(insurance, field, value) + + # Mark as draft + if hasattr(insurance, 'status'): + insurance.status = 'draft' + + insurance.save() + + action = 'Update Insurance Draft' + message = f'Updated insurance draft for {patient}' + + else: + # Create new insurance record as draft + insurance_data = {} + + # Map form fields to model fields + for field, value in draft_data.items(): + if field not in ['patient_id', 'saved_at', 'saved_by'] and value: + if field in ['effective_date', 'expiration_date', 'subscriber_dob']: + if value: + try: + from datetime import datetime + insurance_data[field] = datetime.strptime(value, '%Y-%m-%d').date() + except ValueError: + pass # Skip invalid dates + elif field in ['copay', 'deductible']: + if value: + try: + insurance_data[field] = float(value) + except ValueError: + pass # Skip invalid numbers + else: + insurance_data[field] = value + + # Create insurance record + insurance = InsuranceInfo.objects.create( + patient=patient, + **insurance_data + ) + + # Mark as draft + if hasattr(insurance, 'status'): + insurance.status = 'draft' + insurance.save() + + action = 'Create Insurance Draft' + message = f'Created insurance draft for {patient}' + + # Store draft metadata (if you have a separate draft tracking system) + try: + # This would be used if you have a separate drafts table + from django.core.cache import cache + draft_key = f'insurance_draft_{patient.id}_{request.user.id}' + cache.set(draft_key, json.dumps(draft_data), timeout=86400) # 24 hours + except: + pass # Cache not available or other error + + # Log draft save + AuditLogger.log_event( + tenant=tenant, + event_type='CREATE' if not insurance_id else 'UPDATE', + event_category='PATIENT_MANAGEMENT', + action=action, + description=message, + user=request.user, + content_object=insurance, + request=request + ) + + return JsonResponse({ + 'success': True, + 'message': 'Draft saved successfully', + 'insurance_id': insurance.id, + 'saved_at': timezone.now().strftime('%Y-%m-%d %H:%M:%S'), + 'draft_data': { + 'provider': draft_data.get('insurance_provider', ''), + 'policy_number': draft_data.get('policy_number', ''), + 'is_primary': draft_data.get('is_primary', False), + 'has_required_fields': bool( + draft_data.get('insurance_provider') and + draft_data.get('policy_number') and + draft_data.get('member_id') + ) + } + }) + + except PatientProfile.DoesNotExist: + return JsonResponse({ + 'success': False, + 'error': 'Patient not found' + }, status=404) + except Exception as e: + return JsonResponse({ + 'success': False, + 'error': f'Error saving draft: {str(e)}' + }, status=500) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +@login_required +def verify_with_provider(request): + """ + AJAX view to verify insurance information directly with the provider. + """ + tenant = getattr(request, 'tenant', None) + if not tenant: + return JsonResponse({'error': 'No tenant found'}, status=400) + + if request.method == 'POST': + provider = request.POST.get('provider', '').strip() + policy_number = request.POST.get('policy_number', '').strip() + + if not provider or not policy_number: + return JsonResponse({ + 'success': False, + 'error': 'Provider and policy number are required' + }) + + try: + import random + from datetime import datetime, timedelta + import time + + # Simulate API call delay + time.sleep(2) + + # Generate mock verification results + verification_statuses = ['verified', 'not_found', 'expired', 'suspended', 'pending'] + verification_status = random.choice(verification_statuses) + + # Base verification data + verification_data = { + 'status': verification_status, + 'provider': provider, + 'policy_number': policy_number, + 'verification_date': datetime.now().strftime('%Y-%m-%d %H:%M:%S'), + 'verification_id': f'VER{random.randint(100000, 999999)}', + 'response_time': f'{random.uniform(1.5, 3.0):.1f}s', + } + + if verification_status == 'verified': + # Generate detailed verification data for verified policies + effective_date = datetime.now() - timedelta(days=random.randint(30, 730)) + expiration_date = effective_date + timedelta(days=365) + + verification_data.update({ + 'policy_holder': { + 'name': f'{random.choice(["John", "Jane", "Michael", "Sarah", "David", "Lisa"])} {random.choice(["Smith", "Johnson", "Williams", "Brown", "Jones", "Garcia"])}', + 'dob': (datetime.now() - timedelta(days=random.randint(6570, 25550))).strftime('%Y-%m-%d'), + # 18-70 years old + 'member_id': f'MEM{random.randint(100000000, 999999999)}', + 'relationship': random.choice(['self', 'spouse', 'child', 'parent']) + }, + 'coverage_details': { + 'effective_date': effective_date.strftime('%Y-%m-%d'), + 'expiration_date': expiration_date.strftime('%Y-%m-%d'), + 'plan_name': f'{provider} {random.choice(["Gold", "Silver", "Bronze", "Platinum", "Premium"])} Plan', + 'plan_type': random.choice(['HMO', 'PPO', 'EPO', 'POS']), + 'group_number': f'GRP{random.randint(10000, 99999)}', + 'network': random.choice(['In-Network', 'Out-of-Network', 'Preferred Provider']) + }, + 'benefits': { + 'deductible': random.choice([500, 1000, 1500, 2000, 2500, 5000]), + 'out_of_pocket_max': random.choice([3000, 5000, 7500, 10000, 12500]), + 'copay_primary': random.choice([10, 15, 20, 25, 30]), + 'copay_specialist': random.choice([25, 35, 45, 50, 75]), + 'coinsurance': random.choice([10, 15, 20, 25, 30]), + 'prescription_coverage': random.choice([True, False]), + 'dental_coverage': random.choice([True, False]), + 'vision_coverage': random.choice([True, False]) + }, + 'authorization': { + 'prior_auth_required': random.choice([True, False]), + 'referral_required': random.choice([True, False]), + 'pre_certification_required': random.choice([True, False]) + }, + 'contact_info': { + 'customer_service': f'1-800-{random.randint(100, 999)}-{random.randint(1000, 9999)}', + 'provider_services': f'1-800-{random.randint(100, 999)}-{random.randint(1000, 9999)}', + 'website': f'www.{provider.lower().replace(" ", "")}.com', + 'claims_address': f'{random.randint(100, 9999)} Insurance Blvd, Claims City, ST {random.randint(10000, 99999)}' + } + }) + + elif verification_status == 'not_found': + verification_data.update({ + 'error_details': { + 'code': 'POLICY_NOT_FOUND', + 'message': 'Policy number not found in provider database', + 'suggestions': [ + 'Verify the policy number is correct', + 'Check if the policy has been recently issued', + 'Contact the insurance provider directly' + ] + } + }) + + elif verification_status == 'expired': + expiration_date = datetime.now() - timedelta(days=random.randint(1, 365)) + verification_data.update({ + 'policy_holder': { + 'name': f'{random.choice(["John", "Jane", "Michael", "Sarah"])} {random.choice(["Smith", "Johnson", "Williams", "Brown"])}', + 'member_id': f'MEM{random.randint(100000000, 999999999)}' + }, + 'expiration_details': { + 'expired_date': expiration_date.strftime('%Y-%m-%d'), + 'days_expired': (datetime.now() - expiration_date).days, + 'renewal_options': [ + 'Contact employer for renewal', + 'Apply for individual coverage', + 'Check for COBRA eligibility' + ] + } + }) + + elif verification_status == 'suspended': + verification_data.update({ + 'suspension_details': { + 'reason': random.choice(['Non-payment', 'Fraud investigation', 'Administrative review']), + 'suspended_date': (datetime.now() - timedelta(days=random.randint(1, 90))).strftime('%Y-%m-%d'), + 'reinstatement_required': True, + 'contact_required': True + } + }) + + elif verification_status == 'pending': + verification_data.update({ + 'pending_details': { + 'reason': random.choice( + ['New enrollment processing', 'Coverage change in progress', 'System update in progress']), + 'expected_resolution': (datetime.now() + timedelta(days=random.randint(1, 14))).strftime( + '%Y-%m-%d'), + 'reference_number': f'REF{random.randint(100000, 999999)}' + } + }) + + # Log verification attempt + AuditLogger.log_event( + tenant=tenant, + event_type='VERIFY', + event_category='PATIENT_MANAGEMENT', + action='Verify Insurance with Provider', + description=f'Verified insurance {policy_number} with {provider} - Status: {verification_status}', + user=request.user, + request=request + ) + + # Render the verification results template + html = render(request, 'patients/partials/provider_verification_results.html', { + 'verification': verification_data + }).content.decode('utf-8') + + return JsonResponse({ + 'success': True, + 'status': verification_status, + 'html': html, + 'verification_id': verification_data['verification_id'] + }) + + except Exception as e: + return JsonResponse({ + 'success': False, + 'error': f'Error verifying with provider: {str(e)}' + }, status=500) + + return JsonResponse({'error': 'Invalid request method'}, status=405) + + +# Insurance Claims Views +from .models import InsuranceClaim, ClaimDocument, ClaimStatusHistory +from django.core.paginator import Paginator +from django.db.models import Q, Sum, Count, Avg +from django.db.models.functions import TruncMonth +import json + + +@login_required +def insurance_claims_list(request): + """List all insurance claims with filtering and search.""" + claims = InsuranceClaim.objects.filter( + patient__tenant=request.user.tenant + ).select_related('patient', 'insurance_info').order_by('-created_at') + + # Search functionality + search_query = request.GET.get('search', '') + if search_query: + claims = claims.filter( + Q(claim_number__icontains=search_query) | + Q(patient__first_name__icontains=search_query) | + Q(patient__last_name__icontains=search_query) | + Q(service_provider__icontains=search_query) | + Q(facility_name__icontains=search_query) + ) + + # Filter by status + status_filter = request.GET.get('status', '') + if status_filter: + claims = claims.filter(status=status_filter) + + # Filter by claim type + type_filter = request.GET.get('type', '') + if type_filter: + claims = claims.filter(claim_type=type_filter) + + # Filter by priority + priority_filter = request.GET.get('priority', '') + if priority_filter: + claims = claims.filter(priority=priority_filter) + + # Date range filter + date_from = request.GET.get('date_from', '') + date_to = request.GET.get('date_to', '') + if date_from: + claims = claims.filter(service_date__gte=date_from) + if date_to: + claims = claims.filter(service_date__lte=date_to) + + # Calculate statistics + stats = claims.aggregate( + total_claims=Count('id'), + total_billed=Sum('billed_amount'), + total_approved=Sum('approved_amount'), + total_paid=Sum('paid_amount'), + avg_amount=Avg('billed_amount') + ) + + # Status distribution + status_counts = claims.values('status').annotate(count=Count('id')) + + # Pagination + paginator = Paginator(claims, 20) + page_number = request.GET.get('page') + page_obj = paginator.get_page(page_number) + + context = { + 'claims': page_obj, + 'search_query': search_query, + 'status_filter': status_filter, + 'type_filter': type_filter, + 'priority_filter': priority_filter, + 'date_from': date_from, + 'date_to': date_to, + 'stats': stats, + 'status_counts': status_counts, + 'status_choices': InsuranceClaim.STATUS_CHOICES, + 'type_choices': InsuranceClaim.CLAIM_TYPE_CHOICES, + 'priority_choices': InsuranceClaim.PRIORITY_CHOICES, + } + + return render(request, 'patients/claims/insurance_claims_list.html', context) + + +@login_required +def insurance_claim_detail(request, claim_id): + """Display detailed view of an insurance claim.""" + claim = get_object_or_404( + InsuranceClaim.objects.select_related('patient', 'insurance_info', 'created_by'), + id=claim_id, + patient__tenant=request.user.tenant + ) + + # Get claim documents + documents = claim.documents.all().order_by('-uploaded_at') + + # Get status history + status_history = claim.status_history.all().select_related('changed_by').order_by('-changed_at') + + # Calculate approval percentage + approval_percentage = 0 + if claim.billed_amount > 0: + approval_percentage = (claim.approved_amount / claim.billed_amount) * 100 + + context = { + 'claim': claim, + 'documents': documents, + 'status_history': status_history, + 'approval_percentage': approval_percentage, + } + + return render(request, 'patients/claims/insurance_claim_detail.html', context) + + +@login_required +def insurance_claim_form(request, claim_id=None): + """Create or edit an insurance claim.""" + claim = None + if claim_id: + claim = get_object_or_404( + InsuranceClaim, + id=claim_id, + patient__tenant=request.user.tenant + ) + + if request.method == 'POST': + try: + # Get form data + patient_id = request.POST.get('patient') + insurance_id = request.POST.get('insurance_info') + + # Validate patient and insurance + patient = get_object_or_404( + PatientProfile, + id=patient_id, + tenant=request.user.tenant + ) + + insurance_info = get_object_or_404( + InsuranceInfo, + id=insurance_id, + patient=patient + ) + + # Prepare claim data + claim_data = { + 'patient': patient, + 'insurance_info': insurance_info, + 'claim_type': request.POST.get('claim_type'), + 'priority': request.POST.get('priority', 'NORMAL'), + 'service_date': request.POST.get('service_date'), + 'service_provider': request.POST.get('service_provider'), + 'service_provider_license': request.POST.get('service_provider_license'), + 'facility_name': request.POST.get('facility_name'), + 'facility_license': request.POST.get('facility_license'), + 'primary_diagnosis_code': request.POST.get('primary_diagnosis_code'), + 'primary_diagnosis_description': request.POST.get('primary_diagnosis_description'), + 'billed_amount': request.POST.get('billed_amount'), + 'saudi_id_number': request.POST.get('saudi_id_number'), + 'insurance_card_number': request.POST.get('insurance_card_number'), + 'authorization_number': request.POST.get('authorization_number'), + 'notes': request.POST.get('notes'), + } + + # Handle JSON fields + secondary_diagnoses = request.POST.get('secondary_diagnosis_codes', '[]') + procedures = request.POST.get('procedure_codes', '[]') + attachments = request.POST.get('attachments', '[]') + + try: + claim_data['secondary_diagnosis_codes'] = json.loads(secondary_diagnoses) + claim_data['procedure_codes'] = json.loads(procedures) + claim_data['attachments'] = json.loads(attachments) + except json.JSONDecodeError: + claim_data['secondary_diagnosis_codes'] = [] + claim_data['procedure_codes'] = [] + claim_data['attachments'] = [] + + if claim: + # Update existing claim + for key, value in claim_data.items(): + setattr(claim, key, value) + claim.save() + + # Create status history entry + ClaimStatusHistory.objects.create( + claim=claim, + from_status=claim.status, + to_status=claim.status, + reason='Claim updated', + changed_by=request.user + ) + + messages.success(request, f'Claim {claim.claim_number} updated successfully.') + else: + # Create new claim + claim_data['created_by'] = request.user + claim = InsuranceClaim.objects.create(**claim_data) + + # Create initial status history + ClaimStatusHistory.objects.create( + claim=claim, + from_status=None, + to_status='DRAFT', + reason='Initial claim creation', + changed_by=request.user + ) + + messages.success(request, f'Claim {claim.claim_number} created successfully.') + + return redirect('patients:insurance_claim_detail', claim_id=claim.id) + + except Exception as e: + messages.error(request, f'Error saving claim: {str(e)}') + + # Get patients and their insurance for form + patients = PatientProfile.objects.filter(tenant=request.user.tenant).order_by('last_name', 'first_name') + + context = { + 'claim': claim, + 'patients': patients, + 'status_choices': InsuranceClaim.STATUS_CHOICES, + 'type_choices': InsuranceClaim.CLAIM_TYPE_CHOICES, + 'priority_choices': InsuranceClaim.PRIORITY_CHOICES, + } + + return render(request, 'patients/claims/insurance_claim_form.html', context) + + +@login_required +def insurance_claim_delete(request, claim_id): + """Delete an insurance claim.""" + claim = get_object_or_404( + InsuranceClaim, + id=claim_id, + patient__tenant=request.user.tenant + ) + + if request.method == 'POST': + claim_number = claim.claim_number + claim.delete() + messages.success(request, f'Claim {claim_number} deleted successfully.') + return redirect('patients:insurance_claims_list') + + context = {'claim': claim} + return render(request, 'patients/claims/insurance_claim_confirm_delete.html', context) + + +@login_required +def update_claim_status(request, claim_id): + """Update claim status via AJAX.""" + if request.method != 'POST': + return JsonResponse({'success': False, 'error': 'Invalid method'}) + + claim = get_object_or_404( + InsuranceClaim, + id=claim_id, + patient__tenant=request.user.tenant + ) + + new_status = request.POST.get('status') + reason = request.POST.get('reason', '') + + if new_status not in dict(InsuranceClaim.STATUS_CHOICES): + return JsonResponse({'success': False, 'error': 'Invalid status'}) + + old_status = claim.status + claim.status = new_status + + # Auto-set dates based on status + if new_status == 'SUBMITTED' and not claim.submitted_date: + claim.submitted_date = timezone.now() + elif new_status in ['APPROVED', 'PARTIALLY_APPROVED', 'DENIED'] and not claim.processed_date: + claim.processed_date = timezone.now() + elif new_status == 'PAID' and not claim.payment_date: + claim.payment_date = timezone.now() + + claim.save() + + # Create status history entry + ClaimStatusHistory.objects.create( + claim=claim, + from_status=old_status, + to_status=new_status, + reason=reason or f'Status changed from {old_status} to {new_status}', + changed_by=request.user + ) + + return JsonResponse({ + 'success': True, + 'message': f'Claim status updated to {new_status}', + 'new_status': new_status, + 'status_display': claim.get_status_display() + }) + + +@login_required +def claims_dashboard(request): + """Dashboard view for insurance claims analytics.""" + claims = InsuranceClaim.objects.filter(patient__tenant=request.user.tenant) + + # Overall statistics + stats = claims.aggregate( + total_claims=Count('id'), + total_billed=Sum('billed_amount'), + total_approved=Sum('approved_amount'), + total_paid=Sum('paid_amount'), + avg_processing_days=Avg('processing_time_days') + ) + + # Status distribution + status_distribution = claims.values('status').annotate( + count=Count('id'), + total_amount=Sum('billed_amount') + ).order_by('status') + + # Claims by type + type_distribution = claims.values('claim_type').annotate( + count=Count('id'), + total_amount=Sum('billed_amount') + ).order_by('-count') + + # Monthly trends (last 12 months) + monthly_trends = claims.filter( + service_date__gte=timezone.now().date() - timedelta(days=365) + ).annotate( + month=TruncMonth('service_date') + ).values('month').annotate( + count=Count('id'), + total_billed=Sum('billed_amount'), + total_approved=Sum('approved_amount') + ).order_by('month') + + # Top providers + top_providers = claims.values('service_provider').annotate( + count=Count('id'), + total_amount=Sum('billed_amount') + ).order_by('-count')[:10] + + # Recent claims + recent_claims = claims.select_related('patient', 'insurance_info').order_by('-created_at')[:10] + + # Pending claims requiring attention + pending_claims = claims.filter( + status__in=['SUBMITTED', 'UNDER_REVIEW'] + ).select_related('patient').order_by('submitted_date')[:10] + + context = { + 'stats': stats, + 'status_distribution': status_distribution, + 'type_distribution': type_distribution, + 'monthly_trends': list(monthly_trends), + 'top_providers': top_providers, + 'recent_claims': recent_claims, + 'pending_claims': pending_claims, + } + + return render(request, 'patients/claims/claims_dashboard.html', context) + + +@login_required +def get_patient_insurance(request, patient_id): + """Get insurance policies for a patient via AJAX.""" + try: + patient = PatientProfile.objects.get( + id=patient_id, + tenant=request.user.tenant + ) + + insurance_policies = patient.insurance_info.all().values( + 'id', 'insurance_company', 'policy_number', 'insurance_type' + ) + + return JsonResponse({ + 'success': True, + 'insurance_policies': list(insurance_policies) + }) + + except PatientProfile.DoesNotExist: + return JsonResponse({ + 'success': False, + 'error': 'Patient not found' + }) + + +@login_required +def bulk_claim_actions(request): + """Handle bulk actions on claims.""" + if request.method != 'POST': + return JsonResponse({'success': False, 'error': 'Invalid method'}) + + action = request.POST.get('action') + claim_ids = request.POST.getlist('claim_ids') + + if not claim_ids: + return JsonResponse({'success': False, 'error': 'No claims selected'}) + + claims = InsuranceClaim.objects.filter( + id__in=claim_ids, + patient__tenant=request.user.tenant + ) + + if action == 'update_status': + new_status = request.POST.get('new_status') + if new_status not in dict(InsuranceClaim.STATUS_CHOICES): + return JsonResponse({'success': False, 'error': 'Invalid status'}) + + updated_count = 0 + for claim in claims: + old_status = claim.status + claim.status = new_status + claim.save() + + # Create status history + ClaimStatusHistory.objects.create( + claim=claim, + from_status=old_status, + to_status=new_status, + reason=f'Bulk status update to {new_status}', + changed_by=request.user + ) + updated_count += 1 + + return JsonResponse({ + 'success': True, + 'message': f'Updated {updated_count} claims to {new_status}' + }) + + elif action == 'export': + # Export claims to CSV + import csv + from django.http import HttpResponse + + response = HttpResponse(content_type='text/csv') + response['Content-Disposition'] = 'attachment; filename="insurance_claims.csv"' + + writer = csv.writer(response) + writer.writerow([ + 'Claim Number', 'Patient Name', 'Service Date', 'Provider', + 'Claim Type', 'Status', 'Billed Amount', 'Approved Amount' + ]) + + for claim in claims.select_related('patient'): + writer.writerow([ + claim.claim_number, + claim.patient.get_full_name(), + claim.service_date, + claim.service_provider, + claim.get_claim_type_display(), + claim.get_status_display(), + claim.billed_amount, + claim.approved_amount + ]) + + return response + + return JsonResponse({'success': False, 'error': 'Invalid action'}) + diff --git a/templates/.DS_Store b/templates/.DS_Store index c7342139..c1b68edb 100644 Binary files a/templates/.DS_Store and b/templates/.DS_Store differ diff --git a/templates/blood_bank/.DS_Store b/templates/blood_bank/.DS_Store new file mode 100644 index 00000000..a1eb34fa Binary files /dev/null and b/templates/blood_bank/.DS_Store differ diff --git a/templates/blood_bank/crossmatch/crossmatch_form.html b/templates/blood_bank/crossmatch/crossmatch_form.html new file mode 100644 index 00000000..4d90afd1 --- /dev/null +++ b/templates/blood_bank/crossmatch/crossmatch_form.html @@ -0,0 +1,839 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Crossmatch Test - {{ blood_unit.unit_number }} & {{ patient.full_name }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content --> + + + + + +

Crossmatch Test compatibility verification

+ + + +
+
+

+ Crossmatch Compatibility Test +

+
+ Unit: {{ blood_unit.unit_number }} + Patient: {{ patient.patient_id }} +
+
+
+
+ {% csrf_token %} + + +
+
Patient Information
+
+
+ + + + + + + + + + + + + + + + + +
Name:{{ patient.full_name }}
Patient ID:{{ patient.patient_id }}
Blood Group: + {{ patient.blood_group.display_name|default:"Unknown" }} +
Age:{{ patient.age }} years
+
+
+ + + + + + + + + + + + + + + + + +
Previous Transfusions:{{ patient.transfusion_history.count }}
Pregnancies:{{ patient.pregnancy_history|default:"N/A" }}
Known Antibodies:{{ patient.known_antibodies|default:"None" }}
Last Crossmatch:{{ patient.last_crossmatch_date|date:"M d, Y"|default:"Never" }}
+
+
+
+ + + +
+
Blood Unit Information
+
+
+ + + + + + + + + + + + + + + + + +
Unit Number:{{ blood_unit.unit_number }}
Blood Group:{{ blood_unit.blood_group.display_name }}
Component:{{ blood_unit.component.get_name_display }}
Volume:{{ blood_unit.volume_ml }} ml
+
+
+ + + + + + + + + + + + + + + + + +
Donor:{{ blood_unit.donor.full_name }}
Collection Date:{{ blood_unit.collection_date|date:"M d, Y" }}
Expiry Date:{{ blood_unit.expiry_date|date:"M d, Y" }}
Test Status: + {% if blood_unit.all_tests_passed %} + All Tests Passed + {% else %} + Tests Pending + {% endif %} +
+
+
+
+ + + +
+
Test Information
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
ABO/Rh Compatibility Check
+
+
+
+
Patient Blood Group
+
+ {{ patient.blood_group.display_name|default:"Unknown" }} + {% if patient.blood_group.display_name == "Unknown" %} + ⚠️ Patient blood group must be confirmed + {% endif %} +
+
+
+
Donor Blood Group
+
+ {{ blood_unit.blood_group.display_name }} +
+ +
+
+
+
+
+
+ + + +
+
Crossmatch Testing
+
+ +
+
Major Crossmatch
+

Patient serum + Donor red cells

+ +
+
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+
+
+
+ + +
+
Minor Crossmatch
+

Donor serum + Patient red cells

+ +
+
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+
+
+
+ + +
+
Control Tests
+

Quality control verification

+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+
+
+
+ + + +
+
Antibody Screening
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
Test Notes & Observations
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
Final Crossmatch Result
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/dashboard.html b/templates/blood_bank/dashboard.html new file mode 100644 index 00000000..a0c68c23 --- /dev/null +++ b/templates/blood_bank/dashboard.html @@ -0,0 +1,364 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Bank Dashboard{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

Blood Bank Dashboard overview of blood bank operations

+ + + +
+ +
+
+
+
+

ACTIVE DONORS

+

{{ total_donors }}

+
+ +
+
+ + + +
+
+
+
+

AVAILABLE UNITS

+

{{ total_units }}

+
+ +
+
+ + + +
+
+
+
+

PENDING REQUESTS

+

{{ pending_requests }}

+
+ +
+
+ + + +
+
+
+
+

EXPIRING SOON

+

{{ expiring_soon }}

+
+ +
+
+ +
+ + + +
+ +
+ +
+
+

Blood Group Distribution

+
+ + + +
+
+
+
+ + + + + + + + + + + {% for stat in blood_group_stats %} + + + + + + + {% empty %} + + + + {% endfor %} + +
Blood GroupAvailable UnitsPercentageStatus
+ + {{ stat.blood_group__abo_type }}{% if stat.blood_group__rh_factor == 'positive' %}+{% else %}-{% endif %} + + {{ stat.count }} + {% widthratio stat.count total_units 100 %}% + + {% if stat.count >= 10 %} + Adequate + {% elif stat.count >= 5 %} + Low + {% else %} + Critical + {% endif %} +
No blood units available
+
+
+
+ +
+ + + +
+ +
+
+

Quick Stats

+
+ + + +
+
+
+
+
+
+ + Recent Donations (7 days) +
+ {{ recent_donations }} +
+
+
+ + Active Transfusions +
+ {{ active_transfusions }} +
+
+
+ + Expiring This Week +
+ {{ expiring_soon }} +
+
+
+
+ +
+ +
+ + + +
+ +
+ +
+
+

Recent Blood Units

+
+ View All +
+
+
+
+ + + + + + + + + + + + {% for unit in recent_units %} + + + + + + + + {% empty %} + + + + {% endfor %} + +
Unit NumberDonorComponentBlood GroupStatus
+ + {{ unit.unit_number }} + + {{ unit.donor.full_name }}{{ unit.component.get_name_display }} + {{ unit.blood_group.display_name }} + + {% if unit.status == 'available' %} + {{ unit.get_status_display }} + {% elif unit.status == 'expired' %} + {{ unit.get_status_display }} + {% else %} + {{ unit.get_status_display }} + {% endif %} +
No recent blood units
+
+
+
+ +
+ + + +
+ +
+
+

Urgent Blood Requests

+
+ View All +
+
+
+
+ + + + + + + + + + + + {% for request in urgent_requests %} + + + + + + + + {% empty %} + + + + {% endfor %} + +
Request #PatientComponentUnitsUrgency
+ + {{ request.request_number }} + + {{ request.patient.full_name }}{{ request.component_requested.get_name_display }}{{ request.units_requested }} + {{ request.get_urgency_display }} +
No urgent requests
+
+
+
+ +
+ +
+ + + +
+ +
+ +{% endblock %} + +{% block extra_js %} + + + + + + +{% endblock %} + diff --git a/templates/blood_bank/donors/donor_confirm_delete.html b/templates/blood_bank/donors/donor_confirm_delete.html new file mode 100644 index 00000000..b09366de --- /dev/null +++ b/templates/blood_bank/donors/donor_confirm_delete.html @@ -0,0 +1,279 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Delete Donor - {{ donor.full_name }}{% endblock %} + +{% block content %} + + + + + +

Delete Donor {{ donor.full_name }}

+ + + +
+
+

+ Confirm Donor Deletion +

+
+
+
+
Warning
+

You are about to permanently delete this donor record. This action cannot be undone.

+
+ + +
+
+
+
+
Donor Information
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Donor ID:{{ donor.donor_id }}
Name:{{ donor.full_name }}
Blood Group: + {{ donor.blood_group.display_name }} +
Phone:{{ donor.phone }}
Registration Date:{{ donor.registration_date|date:"M d, Y" }}
Status: + + {{ donor.get_status_display }} + +
+
+
+
+
+
+
+
Impact Assessment
+
+
+
+
Related Records
+
    +
  • {{ donor.total_donations }} blood unit(s) collected
  • +
  • {{ donor.blood_units.count }} blood unit record(s)
  • + {% if donor.blood_units.filter(status='available').exists %} +
  • + + Has active blood units in inventory +
  • + {% endif %} +
+
+ + {% if donor.blood_units.filter(status='available').exists %} +
+
Active Blood Units
+

This donor has blood units currently available in inventory. + Deleting this donor will affect inventory tracking.

+
+ {% endif %} + + {% if donor.total_donations > 0 %} +
+
Donation History
+

This donor has a donation history. Consider marking as + "inactive" instead of deleting to preserve historical data.

+
+ {% endif %} +
+
+
+
+ + + +
+
+
Deletion Options
+
+
+
+ {% csrf_token %} + +
+ + +
+ +
+ + +
+ +
+
+ + +
Keep anonymized donation records for statistical purposes
+
+
+ +
+
+ + +
+
+ + +
+ + +
+ +
+
+
+ + + +
+
+
Alternative Actions
+
+
+

Consider these alternatives to permanent deletion:

+
+
+ + Preserves historical data while preventing new donations +
+
+ + Correct any data errors without deletion +
+
+
+
+ +
+
+ +{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/blood_bank/donors/donor_detail.html b/templates/blood_bank/donors/donor_detail.html new file mode 100644 index 00000000..78a98b7d --- /dev/null +++ b/templates/blood_bank/donors/donor_detail.html @@ -0,0 +1,330 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Donor Details - {{ donor.full_name }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

+ Donor Details + {{ donor.full_name }} ({{ donor.donor_id }}) +

+ + + +
+ +
+ +
+
+

Donor Information

+ +
+
+
+
+
+ +

{{ donor.full_name }}

+

{{ donor.donor_id }}

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Blood Group: + {{ donor.blood_group.display_name }} +
Age:{{ donor.age }} years
Gender:{{ donor.get_gender_display }}
Weight:{{ donor.weight }} kg
Height:{{ donor.height }} cm
Status: + {% if donor.status == 'active' %} + {{ donor.get_status_display }} + {% elif donor.status == 'deferred' %} + {{ donor.get_status_display }} + {% elif donor.status == 'permanently_deferred' %} + {{ donor.get_status_display }} + {% else %} + {{ donor.get_status_display }} + {% endif %} +
Donor Type:{{ donor.get_donor_type_display }}
+ +
+ +
Contact Information
+ + + + + + + + + + + + + +
Phone:{{ donor.phone }}
Email:{{ donor.email|default:"Not provided" }}
Address:{{ donor.address }}
+ +
+ +
Emergency Contact
+ + + + + + + + + +
Name:{{ donor.emergency_contact_name }}
Phone:{{ donor.emergency_contact_phone }}
+ + {% if donor.notes %} +
+
Notes
+

{{ donor.notes }}

+ {% endif %} +
+
+ +
+ + + +
+ +
+
+

Donation Statistics

+
+
+
+
+
+
+
+

TOTAL DONATIONS

+

{{ donor.total_donations }}

+
+
+
+
+
+
+
+

LAST DONATION

+

+ {% if donor.last_donation_date %} + {{ donor.last_donation_date|date:"M d, Y" }} + {% else %} + Never + {% endif %} +

+
+
+
+
+
+
+
+

NEXT ELIGIBLE

+

{{ donor.next_eligible_date|date:"M d, Y" }}

+
+
+
+
+
+
+ +
+
+

ELIGIBILITY

+

{% if donor.is_eligible_for_donation %}Eligible{% else %}Not Eligible{% endif %}

+
+
+
+
+
+
+ + + +
+
+

Donation History

+
+ {% if donor.is_eligible_for_donation %} + + New Donation + + {% endif %} +
+
+
+ {% if blood_units %} +
+ + + + + + + + + + + + + + + {% for unit in blood_units %} + + + + + + + + + + + {% endfor %} + +
Unit NumberComponentCollection DateVolume (ml)StatusExpiry DateLocationActions
+ + {{ unit.unit_number }} + + {{ unit.component.get_name_display }}{{ unit.collection_date|date:"M d, Y H:i" }}{{ unit.volume_ml }} + {% if unit.status == 'available' %} + {{ unit.get_status_display }} + {% elif unit.status == 'expired' %} + {{ unit.get_status_display }} + {% elif unit.status == 'transfused' %} + {{ unit.get_status_display }} + {% else %} + {{ unit.get_status_display }} + {% endif %} + + {{ unit.expiry_date|date:"M d, Y" }} + {% if unit.days_to_expiry <= 3 and unit.status == 'available' %} + Expiring Soon + {% endif %} + {{ unit.location }} + + + +
+
+ {% else %} +
+ +
No Donation History
+

This donor has not made any donations yet.

+ {% if donor.is_eligible_for_donation %} + + Start First Donation + + {% endif %} +
+ {% endif %} +
+
+ +
+ +
+ + + +
+
+
+ + Back to Donors + +
+ {% if donor.is_eligible_for_donation %} + + Check Eligibility + + {% endif %} + + Edit Donor + + +
+
+
+
+ +{% endblock %} + +{% block extra_js %} + + + + + + +{% endblock %} + diff --git a/templates/blood_bank/donors/donor_eligibility.html b/templates/blood_bank/donors/donor_eligibility.html new file mode 100644 index 00000000..3eb128d6 --- /dev/null +++ b/templates/blood_bank/donors/donor_eligibility.html @@ -0,0 +1,449 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Donor Eligibility Check - {{ donor.full_name }}{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} + + + + + +

+ Donor Eligibility Check + {{ donor.full_name }} ({{ donor.donor_id }}) +

+ + + +
+ +
+ +
+
+

Donor Information

+
+
+
+ +
{{ donor.full_name }}
+

{{ donor.donor_id }}

+
+ + + + + + + + + + + + + + + + + + + + + + +
Blood Group: + {{ donor.blood_group.display_name }} +
Age:{{ donor.age }} years
Weight:{{ donor.weight }} kg
Total Donations:{{ donor.total_donations }}
Last Donation: + {% if donor.last_donation_date %} + {{ donor.last_donation_date|date:"M d, Y" }} + {% else %} + Never + {% endif %} +
+
+
+ + + +
+
+ +

+ {% if is_eligible %} + Eligible for Donation + {% else %} + Not Eligible for Donation + {% endif %} +

+

+ {% if is_eligible %} + This donor meets the basic eligibility criteria. + {% else %} + Next eligible date: {{ next_eligible_date|date:"M d, Y" }} + {% endif %} +

+
+
+ +
+ + + +
+ +
+
+

Eligibility Screening Questionnaire

+
+ Required before donation +
+
+
+
+ {% csrf_token %} + + +
+
+ Basic Health Questions +
+ +
+
+ {{ form.feeling_well }} + +
+ {% if form.feeling_well.errors %} +
{{ form.feeling_well.errors.0 }}
+ {% endif %} +
+ +
+
+ {{ form.adequate_sleep }} + +
+ {% if form.adequate_sleep.errors %} +
{{ form.adequate_sleep.errors.0 }}
+ {% endif %} +
+ +
+
+ {{ form.eaten_today }} + +
+ {% if form.eaten_today.errors %} +
{{ form.eaten_today.errors.0 }}
+ {% endif %} +
+
+ + + +
+
+ Medical History +
+ +
+
+ {{ form.recent_illness }} + +
+ Including cold, flu, fever, or any infection +
+ +
+
+ {{ form.medications }} + +
+ Including prescription and over-the-counter medications +
+ +
+
+ {{ form.recent_travel }} + +
+ Travel to malaria-endemic areas may require deferral +
+
+ + + +
+
+ Risk Factors +
+ +
+
+ {{ form.recent_tattoo }} + +
+ Including permanent makeup and body piercing +
+ +
+
+ {{ form.recent_surgery }} + +
+ Any surgical procedure or dental work +
+
+ + + +
+
+ Additional Information +
+ +
+ + {{ form.notes }} + {% if form.notes.errors %} +
{{ form.notes.errors.0 }}
+ {% endif %} +
+
+ + + +
+ + Back to Donor + +
+ + +
+
+ +
+
+
+ +
+ +
+ +{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/blood_bank/donors/donor_form.html b/templates/blood_bank/donors/donor_form.html new file mode 100644 index 00000000..c4e6f11c --- /dev/null +++ b/templates/blood_bank/donors/donor_form.html @@ -0,0 +1,433 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{{ title }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

{{ title }} donor information management

+ + + +
+
+

{{ title }}

+ +
+
+
+ {% csrf_token %} + + +
+ + Personal Information + + +
+
+ + {{ form.donor_id }} + {% if form.donor_id.errors %} +
{{ form.donor_id.errors.0 }}
+ {% endif %} +
Unique identifier for the donor
+
+
+ + {{ form.blood_group }} + {% if form.blood_group.errors %} +
{{ form.blood_group.errors.0 }}
+ {% endif %} +
+
+ +
+
+ + {{ form.first_name }} + {% if form.first_name.errors %} +
{{ form.first_name.errors.0 }}
+ {% endif %} +
+
+ + {{ form.last_name }} + {% if form.last_name.errors %} +
{{ form.last_name.errors.0 }}
+ {% endif %} +
+
+ +
+
+ + {{ form.date_of_birth }} + {% if form.date_of_birth.errors %} +
{{ form.date_of_birth.errors.0 }}
+ {% endif %} +
Must be 18-65 years old
+
+
+ + {{ form.gender }} + {% if form.gender.errors %} +
{{ form.gender.errors.0 }}
+ {% endif %} +
+
+
+ Age will be calculated +
+
+
+ +
+
+ + {{ form.weight }} + {% if form.weight.errors %} +
{{ form.weight.errors.0 }}
+ {% endif %} +
Minimum 45 kg required for donation
+
+
+ + {{ form.height }} + {% if form.height.errors %} +
{{ form.height.errors.0 }}
+ {% endif %} +
+
+
+ + + +
+ + Contact Information + + +
+
+ + {{ form.phone }} + {% if form.phone.errors %} +
{{ form.phone.errors.0 }}
+ {% endif %} +
+
+ + {{ form.email }} + {% if form.email.errors %} +
{{ form.email.errors.0 }}
+ {% endif %} +
Optional but recommended
+
+
+ +
+
+ + {{ form.address }} + {% if form.address.errors %} +
{{ form.address.errors.0 }}
+ {% endif %} +
+
+
+ + + +
+ + Emergency Contact + + +
+
+ + {{ form.emergency_contact_name }} + {% if form.emergency_contact_name.errors %} +
{{ form.emergency_contact_name.errors.0 }}
+ {% endif %} +
+
+ + {{ form.emergency_contact_phone }} + {% if form.emergency_contact_phone.errors %} +
{{ form.emergency_contact_phone.errors.0 }}
+ {% endif %} +
+
+
+ + + +
+ + Donor Status + + +
+
+ + {{ form.donor_type }} + {% if form.donor_type.errors %} +
{{ form.donor_type.errors.0 }}
+ {% endif %} +
+
+ + {{ form.status }} + {% if form.status.errors %} +
{{ form.status.errors.0 }}
+ {% endif %} +
+
+ +
+
+ + {{ form.notes }} + {% if form.notes.errors %} +
{{ form.notes.errors.0 }}
+ {% endif %} +
Any additional information about the donor
+
+
+
+ + + +
+
+
+
+ + Cancel + +
+ + +
+
+
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + + + +{% endblock %} + diff --git a/templates/blood_bank/donors/donor_list.html b/templates/blood_bank/donors/donor_list.html new file mode 100644 index 00000000..4632c293 --- /dev/null +++ b/templates/blood_bank/donors/donor_list.html @@ -0,0 +1,298 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Donor Management{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

Donor Management manage blood donors

+ + + +
+
+

Blood Donors

+ +
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+ +
+
+
+
+
+ + + +
+ + + + + + + + + + + + + + + + + {% for donor in page_obj %} + + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
Donor IDNameBlood GroupAgePhoneStatusTotal DonationsLast DonationEligibleActions
+ + {{ donor.donor_id }} + + {{ donor.full_name }} + {{ donor.blood_group.display_name }} + {{ donor.age }}{{ donor.phone }} + {% if donor.status == 'active' %} + {{ donor.get_status_display }} + {% elif donor.status == 'deferred' %} + {{ donor.get_status_display }} + {% elif donor.status == 'permanently_deferred' %} + {{ donor.get_status_display }} + {% else %} + {{ donor.get_status_display }} + {% endif %} + {{ donor.total_donations }} + {% if donor.last_donation_date %} + {{ donor.last_donation_date|date:"M d, Y" }} + {% else %} + Never + {% endif %} + + {% if donor.is_eligible_for_donation %} + + Eligible + + {% else %} + + Not Eligible + + {% endif %} + +
+ + + + + + + {% if donor.is_eligible_for_donation %} + + + + {% endif %} +
+
+
+ +
No donors found
+

Try adjusting your search criteria or add a new donor.

+ + Add New Donor + +
+
+
+ + + + {% if page_obj.has_other_pages %} + + {% endif %} + + + +
+
+

+ Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ page_obj.paginator.count }} donors +

+
+
+
+ + +
+
+
+ +
+
+ +{% endblock %} + +{% block extra_js %} + + + + + + +{% endblock %} + diff --git a/templates/blood_bank/inventory/inventory_dashboard.html b/templates/blood_bank/inventory/inventory_dashboard.html new file mode 100644 index 00000000..bdac572b --- /dev/null +++ b/templates/blood_bank/inventory/inventory_dashboard.html @@ -0,0 +1,604 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Bank Inventory Dashboard{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

Blood Bank Inventory real-time inventory monitoring

+ + + +
+
+
+
+
+
+
Total Units
+

{{ total_units }}

+ Available for transfusion +
+
+ +
+
+
+
+
+
+
+
+
+
+
Fresh Units
+

{{ fresh_units }}

+ Less than 7 days old +
+
+ +
+
+
+
+
+
+
+
+
+
+
Expiring Soon
+

{{ expiring_units }}

+ Within 3 days +
+
+ +
+
+
+
+
+
+
+
+
+
+
Critical Low
+

{{ critical_low_count }}

+ Below minimum levels +
+
+ +
+
+
+
+
+
+ + + +
+ +
+ +
+
+

Blood Group Inventory

+
+ +
+
+
+
+ {% for group in blood_groups %} +
+
+
+
+
+
{{ group.display_name }}
+
+
+ Whole Blood +
{{ group.whole_blood_count }}
+
+
+ RBC +
{{ group.rbc_count }}
+
+
+
+
+ Plasma +
{{ group.plasma_count }}
+
+
+ Platelets +
{{ group.platelet_count }}
+
+
+
+
+

{{ group.total_units }}

+ Total Units + {% if group.is_critical_low %} +
Critical + {% elif group.is_low %} +
Low + {% else %} +
Good + {% endif %} +
+
+
+
+
+ {% endfor %} +
+
+
+ + + +
+
+

Inventory Trends

+
+ +
+
+
+
+ +
+
+
+ + + +
+
+

Component Distribution

+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+ + + +
+ +
+
+

Storage Locations

+
+
+ {% for location in storage_locations %} +
+
+
+
+
{{ location.name }}
+ {{ location.location_type }} +
+
+
{{ location.unit_count }}
+ Units +
+
+
+
+ Temperature: + + {{ location.current_temperature }}°C + + +
+
+
+
+ {{ location.capacity_percentage }}% capacity +
+
+
+ {% endfor %} +
+
+ + + +
+
+

Expiry Alerts

+
+ {{ expiring_units }} +
+
+
+ {% for unit in expiring_units_list %} +
+
+ {{ unit.unit_number }}
+ {{ unit.blood_group.display_name }} - {{ unit.component.get_name_display }} +
+
+ {{ unit.days_to_expiry }} days
+ {{ unit.expiry_date|date:"M d" }} +
+
+ {% empty %} +
+ +

No units expiring soon

+
+ {% endfor %} +
+
+ + + +
+
+

Recent Activity

+
+
+
+ {% for activity in recent_activities %} +
+
{{ activity.timestamp|date:"H:i" }}
+
+
+ + {{ activity.description }} +
+
+
+ {% empty %} +
+ +

No recent activity

+
+ {% endfor %} +
+
+
+ + + +
+
+

Quick Actions

+
+ +
+ +
+ +
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/issues/blood_issue_form.html b/templates/blood_bank/issues/blood_issue_form.html new file mode 100644 index 00000000..7167abda --- /dev/null +++ b/templates/blood_bank/issues/blood_issue_form.html @@ -0,0 +1,743 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Issue Blood Unit - Request #{{ blood_request.request_number }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

+ Issue Blood Unit + Request #{{ blood_request.request_number }} + {% if blood_request.urgency == 'emergency' %} + EMERGENCY + {% endif %} +

+ + + +
+
+

+ Blood Unit Issue +

+
+ Request: {{ blood_request.request_number }} +
+
+
+
+ {% csrf_token %} + + +
+
Blood Request Information
+
+
+ + + + + + + + + + + + + + + + + +
Request Number:{{ blood_request.request_number }}
Patient:{{ blood_request.patient.full_name }} ({{ blood_request.patient.patient_id }})
Blood Group:{{ blood_request.patient.blood_group.display_name }}
Component Requested:{{ blood_request.component.get_name_display }}
+
+
+ + + + + + + + + + + + + + + + + +
Quantity:{{ blood_request.quantity_requested }} units
Urgency: + + {{ blood_request.get_urgency_display }} + +
Requested By:{{ blood_request.requested_by.get_full_name }}
Department:{{ blood_request.department.name }}
+
+
+ + {% if blood_request.special_requirements %} +
+
Special Requirements:
+
{{ blood_request.special_requirements }}
+
+ {% endif %} +
+ + + +
+
Available Blood Units
+
+
+

Select compatible blood units for this request. Units are filtered by blood group compatibility and availability.

+ +
+ {% for unit in available_units %} +
+
+
+
{{ unit.unit_number }}
+
+
+ Blood Group:
+ {{ unit.blood_group.display_name }} +
+
+ Component:
+ {{ unit.component.get_name_display }} +
+
+
+
+ Volume:
+ {{ unit.volume_ml }} ml +
+
+ Expiry:
+ {{ unit.expiry_date|date:"M d, Y" }} + {% if unit.days_to_expiry <= 3 %} + Expires Soon + {% endif %} +
+
+
+
+
+ Donor:
+ {{ unit.donor.full_name }}
+ Collection:
+ {{ unit.collection_date|date:"M d, Y" }}
+ Location:
+ {{ unit.location.name }} +
+
+
+ + +
+ {% if unit.is_compatible %} + Compatible + {% else %} + Check Required + {% endif %} +
+ + + {% if unit.crossmatch_status %} +
+ Crossmatch: + + {{ unit.crossmatch_status|title }} + +
+ {% endif %} +
+ {% empty %} +
+ No compatible blood units available for this request. +
Please check inventory or contact blood bank supervisor. +
+ {% endfor %} +
+ + +
+
+
+ + + +
+
Issue Details
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
Transport Information
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ + + +
+
Pre-Issue Verification Checklist
+
+
+
+
Unit Verification
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
Documentation & Testing
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+
+
Emergency Procedures (if applicable)
+
+ + +
+
+ + +
+
+
+
+
+ + + +
+
Special Instructions & Notes
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
Issue Summary
+
+

Select blood units and complete the form to preview issue details

+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/quality_control/quality_control_confirm_delete.html b/templates/blood_bank/quality_control/quality_control_confirm_delete.html new file mode 100644 index 00000000..77525df3 --- /dev/null +++ b/templates/blood_bank/quality_control/quality_control_confirm_delete.html @@ -0,0 +1,542 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Delete QC Record - {{ qc_record.test_name }}{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} + + + + + +

+ Delete QC Record + {{ qc_record.test_name }} + {% if qc_record.result == 'failed' %} + FAILED TEST + {% endif %} +

+ + + +
+
+ WARNING: Deleting QC records may violate regulatory compliance requirements.
+ Consider archiving instead of permanent deletion. +
+ + + +
+
+

+ Delete Quality Control Record +

+
+ CRITICAL ACTION +
+
+
+ +
+
CRITICAL ACTION REQUIRED
+

You are about to permanently delete a quality control record.

+

This action will:

+
    +
  • Permanently remove the QC test record from the system
  • +
  • Delete all associated test results and data
  • +
  • Remove compliance documentation
  • +
  • Impact regulatory audit trails
  • +
  • Potentially violate FDA, AABB, and CAP requirements
  • + {% if qc_record.result == 'failed' %} +
  • Delete critical failure documentation
  • + {% endif %} + {% if qc_record.capa_initiated %} +
  • Affect active CAPA investigations
  • + {% endif %} +
+
+ + + +
+
QC Record Information
+
+
+ + + + + + + + + + + + + + + + + +
Test Name:{{ qc_record.test_name }}
Test Type:{{ qc_record.get_test_type_display }}
Test Date:{{ qc_record.test_date|date:"M d, Y H:i" }}
Tested By:{{ qc_record.tested_by.get_full_name }}
+
+
+ + + + + + + + + + + + + + + + + +
Result: + + {{ qc_record.get_result_display }} + +
Sample ID:{{ qc_record.sample_id|default:"Not specified" }}
Equipment:{{ qc_record.equipment_used|default:"Not specified" }}
Reviewed: + {% if qc_record.reviewed_by %} + Yes - {{ qc_record.reviewed_by.get_full_name }} + {% else %} + Pending Review + {% endif %} +
+
+
+ + {% if qc_record.test_notes %} +
+
Test Notes:
+
{{ qc_record.test_notes }}
+
+ {% endif %} +
+ + + +
+
Regulatory Compliance Impact
+
+
+
Affected Standards
+
    +
  • FDA 21 CFR Part 606: QC record retention requirements
  • +
  • AABB Standards: Quality documentation requirements
  • +
  • ISO 15189: Quality management system records
  • +
  • CAP Requirements: Laboratory quality assurance
  • +
+
+
+
Compliance Risks
+
    +
  • Loss of audit trail integrity
  • +
  • Regulatory inspection findings
  • +
  • Accreditation issues
  • +
  • Legal liability concerns
  • + {% if qc_record.result == 'failed' %} +
  • Loss of failure investigation records
  • + {% endif %} +
+
+
+ + {% if qc_record.result == 'failed' %} +
+ CRITICAL: + This is a failed QC test. Deleting this record may violate regulatory requirements for failure investigation documentation. +
+ {% endif %} + + {% if qc_record.capa_initiated %} +
+ ACTIVE CAPA: + This record is associated with an active CAPA ({{ qc_record.capa_number }}). Deletion may impact the investigation. +
+ {% endif %} +
+ + + +
+
Impact Assessment
+
+
+
Related Records
+
    + {% if qc_record.blood_unit %} +
  • Blood Unit: {{ qc_record.blood_unit.unit_number }}
  • + {% endif %} + {% if qc_record.equipment_used %} +
  • Equipment: {{ qc_record.equipment_used }}
  • + {% endif %} +
  • Test Results: All parameter data will be lost
  • +
  • Trend Data: Historical trending will be affected
  • +
+
+
+
System Impact
+
    +
  • QC statistics and reports will be affected
  • +
  • Trend analysis data will be incomplete
  • +
  • Audit trail will show deletion event
  • +
  • Compliance reports may be impacted
  • + {% if qc_record.result == 'failed' %} +
  • Failure rate calculations will change
  • + {% endif %} +
+
+
+
+ + + +
+ {% csrf_token %} + +
+
Deletion Authorization
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+ +
+
+
+ +
+ + +
+
+ + +
+
+
+
+
+ + +
+
+
+
+ + +
+
Critical Confirmation Checklist
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ {% if qc_record.result == 'failed' %} +
+ + +
+ {% endif %} + {% if qc_record.capa_initiated %} +
+ + +
+ {% endif %} +
+ + + +
+ + Cancel Deletion + +
+ + + +
+
+ +
+ +
+
+ +{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/blood_bank/quality_control/quality_control_detail.html b/templates/blood_bank/quality_control/quality_control_detail.html new file mode 100644 index 00000000..cfdbb10f --- /dev/null +++ b/templates/blood_bank/quality_control/quality_control_detail.html @@ -0,0 +1,612 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Quality Control - {{ qc_record.test_name }}{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} + + + + + +

+ Quality Control Detail + {{ qc_record.test_name }} +

+ + + +
+
+

+ QC Test Results +

+
+ + {{ qc_record.get_result_display }} + +
+
+
+ +
+
Test Information
+
+
+ + + + + + + + + + + + + + + + + +
Test Name:{{ qc_record.test_name }}
Test Type:{{ qc_record.get_test_type_display }}
Test Date:{{ qc_record.test_date|date:"M d, Y H:i" }}
Tested By:{{ qc_record.tested_by.get_full_name }}
+
+
+ + + + + + + + + + + + + + + + + +
Equipment:{{ qc_record.equipment_used|default:"Not specified" }}
Lot Numbers:{{ qc_record.lot_numbers|default:"Not specified" }}
Temperature:{{ qc_record.temperature|default:"Not recorded" }}°C
Result: + + {{ qc_record.get_result_display }} +
+
+
+ + {% if qc_record.sample_id %} +
+
Sample Information:
+
+ Sample ID: {{ qc_record.sample_id }}
+ {% if qc_record.blood_unit %} + Blood Unit: {{ qc_record.blood_unit.unit_number }}
+ {% endif %} + Sample Type: {{ qc_record.get_test_type_display }} +
+
+ {% endif %} +
+ + + +
+
Test Results
+ + {% if qc_record.test_type == 'temperature' %} +
+
+
Temperature Control
+ + + + + + + + + + + + + +
Measured Temperature:{{ qc_record.temperature }}°C
Acceptable Range:2-6°C
Deviation: + {% if qc_record.temperature %} + {% if qc_record.temperature >= 2 and qc_record.temperature <= 6 %} + Within range + {% else %} + {{ qc_record.temperature|floatformat:1 }}°C deviation + {% endif %} + {% else %} + Not recorded + {% endif %} +
+
+
+ {% elif qc_record.test_type == 'ph' %} +
+
+
pH Testing
+ + + + + + + + + + + + + +
Measured pH:{{ qc_record.ph_value|default:"Not recorded" }}
Acceptable Range:6.0-8.0
Buffer Solution:{{ qc_record.buffer_solution|default:"Not specified" }}
+
+
+ {% elif qc_record.test_type == 'sterility' %} +
+
+
Sterility Testing
+ + + + + + + + + + + + + +
Culture Medium:{{ qc_record.culture_medium|default:"Not specified" }}
Incubation Period:{{ qc_record.incubation_period|default:"Standard" }}
Growth Observed: + {% if qc_record.result == 'passed' %} + No growth + {% else %} + Growth detected + {% endif %} +
+
+
+ {% elif qc_record.test_type == 'hemolysis' %} +
+
+
Hemolysis Testing
+ + + + + + + + + + + + + +
Hemolysis Percentage:{{ qc_record.hemolysis_percentage|default:"Not recorded" }}%
Acceptable Limit:< 0.8%
Visual Assessment:{{ qc_record.visual_assessment|default:"Not recorded" }}
+
+
+ {% endif %} + + {% if qc_record.test_notes %} +
+
Test Notes:
+
{{ qc_record.test_notes }}
+
+ {% endif %} +
+ + + +
+
Compliance Information
+
+
+
Regulatory Standards
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
Quality Assurance
+ + + + + + + + + + + + + +
Equipment Calibrated: + {% if qc_record.equipment_calibrated %} + Yes + {% else %} + No + {% endif %} +
SOP Followed: + {% if qc_record.sop_followed %} + Yes + {% else %} + No + {% endif %} +
Controls Passed: + {% if qc_record.controls_passed %} + Yes + {% else %} + No + {% endif %} +
+
+
+
+ + + +
+
Trend Analysis
+
+
Recent QC Results for {{ qc_record.test_name }}
+ +

Last 10 test results showing trend over time

+
+
+ + + {% if qc_record.result == 'failed' %} + +
+
Corrective and Preventive Action (CAPA)
+
+ QC Test Failed - Immediate Action Required +
+ +
+
+
Immediate Actions
+
    +
  • Quarantine affected products
  • +
  • Investigate root cause
  • +
  • Review equipment calibration
  • +
  • Check reagent integrity
  • +
  • Notify quality manager
  • +
+
+
+
Follow-up Required
+
    +
  • Document investigation findings
  • +
  • Implement corrective actions
  • +
  • Verify effectiveness
  • +
  • Update procedures if needed
  • +
  • Schedule follow-up testing
  • +
+
+
+ + {% if qc_record.capa_initiated %} +
+ CAPA Status: {{ qc_record.get_capa_status_display }}
+ CAPA Number: {{ qc_record.capa_number }}
+ Initiated By: {{ qc_record.capa_initiated_by.get_full_name }}
+ Date: {{ qc_record.capa_date|date:"M d, Y H:i" }} +
+ {% else %} + + {% endif %} +
+ + {% endif %} + + +
+
Action Timeline
+ +
+ {{ qc_record.test_date|date:"M d, Y H:i" }}
+ QC test performed by {{ qc_record.tested_by.get_full_name }}
+ Result: {{ qc_record.get_result_display }} +
+ + {% if qc_record.reviewed_by %} +
+ {{ qc_record.review_date|date:"M d, Y H:i" }}
+ Results reviewed by {{ qc_record.reviewed_by.get_full_name }}
+ Review completed +
+ {% endif %} + + {% if qc_record.capa_initiated %} +
+ {{ qc_record.capa_date|date:"M d, Y H:i" }}
+ CAPA initiated by {{ qc_record.capa_initiated_by.get_full_name }}
+ CAPA #{{ qc_record.capa_number }} +
+ {% endif %} +
+ + + +
+ + Back to QC List + +
+ + {% if qc_record.result == 'failed' and not qc_record.capa_initiated %} + + {% endif %} + {% if not qc_record.reviewed_by %} + + {% endif %} +
+
+ +
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/quality_control/quality_control_form.html b/templates/blood_bank/quality_control/quality_control_form.html new file mode 100644 index 00000000..1d75541f --- /dev/null +++ b/templates/blood_bank/quality_control/quality_control_form.html @@ -0,0 +1,658 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{% if form.instance.pk %}Edit QC Record{% else %}New Quality Control Test{% endif %}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

+ {% if form.instance.pk %} + Edit QC Record {{ form.instance.qc_id }} + {% else %} + New Quality Control Test ensure blood safety + {% endif %} +

+ + + +
+
+

+ Quality Control Test Information +

+
+ QC ID: {{ form.instance.qc_id|default:'Auto-generated' }} +
+
+
+
+ {% csrf_token %} + + +
+
Test Identification
+
+
+
+ + + {% if form.test_type.errors %} +
{{ form.test_type.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.test_date.errors %} +
{{ form.test_date.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.tested_by.errors %} +
{{ form.tested_by.errors.0 }}
+ {% endif %} +
+
+
+
+ + + +
+
Sample Information
+
+
+
+ + + {% if form.blood_unit.errors %} +
{{ form.blood_unit.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.sample_id.errors %} +
{{ form.sample_id.errors.0 }}
+ {% endif %} +
+
+
+ +
+
+
+ Select a blood unit or enter sample ID to proceed +
+
+
+
+ + + +
+
Test Parameters
+
+

Select a test type to display relevant parameters

+
+
+ + + +
+
Test Results
+
+
+
+ + + {% if form.result.errors %} +
{{ form.result.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.notes.errors %} +
{{ form.notes.errors.0 }}
+ {% endif %} +
+
+
+ + +
+ +

Test result will be displayed here

+
+
+ + + +
+
Compliance & Standards
+
+
+
+
Regulatory Compliance
+
+ + +
+
+ + +
+
+ + +
+
+
+
Quality Assurance
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/quality_control/quality_control_list.html b/templates/blood_bank/quality_control/quality_control_list.html new file mode 100644 index 00000000..2cd51e57 --- /dev/null +++ b/templates/blood_bank/quality_control/quality_control_list.html @@ -0,0 +1,633 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Quality Control Management{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

Quality Control Management ensure blood safety and compliance

+ + + +
+
+

Quality Control Records

+ +
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+ +
+
+
+
+
+ + + +
+
+
+
+
+
+
Total Tests
+

{{ page_obj.paginator.count }}

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Passed
+

0

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Failed
+

0

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Pending
+

0

+
+
+ +
+
+
+
+
+
+ + + +
+
+
+
+
+ Compliance Overview +
+
+
+
+
+
+ + FDA 21 CFR Part 606 + Compliant +
+
+
+
+ + AABB Standards + Compliant +
+
+
+
+ + ISO 15189 + Review +
+
+
+
+ + CAP Standards + Compliant +
+
+
+
+
+
+
+ + + +
+ + + + + + + + + + + + + + + + + {% for qc in page_obj %} + + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
QC IDTest TypeSample/UnitTest DateTested ByResultValuesComplianceVerifiedActions
+ + {{ qc.qc_id }} + + {{ qc.get_test_type_display }} + {% if qc.blood_unit %} + + {{ qc.blood_unit.unit_number }} + +
{{ qc.blood_unit.blood_group.display_name }} + {% else %} + {{ qc.sample_id }} + {% endif %} +
{{ qc.test_date|date:"M d, Y H:i" }}{{ qc.tested_by.get_full_name }} + {% if qc.result == 'passed' %} + {{ qc.get_result_display }} + {% elif qc.result == 'failed' %} + {{ qc.get_result_display }} + {% else %} + {{ qc.get_result_display }} + {% endif %} + + {% if qc.test_type == 'temperature' %} + {{ qc.temperature_value }}°C + {% if qc.temperature_within_range %} + + {% else %} + + {% endif %} + {% elif qc.test_type == 'ph' %} + pH {{ qc.ph_value }} + {% elif qc.test_type == 'sterility' %} + {{ qc.get_sterility_result_display }} + {% elif qc.test_type == 'hemolysis' %} + {{ qc.hemolysis_percentage }}% + {% else %} + {{ qc.test_value|default:"-" }} + {% endif %} + + {% if qc.is_compliant %} + + Compliant + + {% else %} + + Non-Compliant + + {% endif %} + + {% if qc.verified_by %} + + {{ qc.verified_by.get_full_name }} + +
{{ qc.verified_at|date:"M d, H:i" }} + {% else %} + Pending + {% endif %} +
+
+ + + + {% if not qc.verified_by and qc.result != 'pending' %} + + {% endif %} + {% if qc.result == 'failed' %} + + {% endif %} +
+
+
+ +
No quality control records found
+

Try adjusting your search criteria or create a new QC record.

+ + New QC Record + +
+
+
+ + + + {% if page_obj.has_other_pages %} + + {% endif %} + + + +
+
+

+ Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ page_obj.paginator.count }} QC records +

+
+
+
+ + + +
+
+
+ +
+
+ +{% endblock %} + +{% block extra_js %} + + + + + + +{% endblock %} + diff --git a/templates/blood_bank/reactions/adverse_reaction_form.html b/templates/blood_bank/reactions/adverse_reaction_form.html new file mode 100644 index 00000000..e25fcd0e --- /dev/null +++ b/templates/blood_bank/reactions/adverse_reaction_form.html @@ -0,0 +1,882 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Report Adverse Reaction - {{ transfusion.transfusion_id }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

+ Adverse Reaction Report + {{ transfusion.transfusion_id }} + URGENT +

+ + + +
+
+

+ Adverse Transfusion Reaction Report +

+
+ PRIORITY REPORT +
+
+
+
+ {% csrf_token %} + + +
+
Transfusion Information
+
+
+ + + + + + + + + + + + + + + + + +
Transfusion ID:{{ transfusion.transfusion_id }}
Patient:{{ transfusion.patient.full_name }} ({{ transfusion.patient.patient_id }})
Blood Group:{{ transfusion.patient.blood_group.display_name }}
Blood Unit:{{ transfusion.blood_unit.unit_number }}
+
+
+ + + + + + + + + + + + + + + + + +
Unit Blood Group:{{ transfusion.blood_unit.blood_group.display_name }}
Component:{{ transfusion.blood_unit.component.get_name_display }}
Start Time:{{ transfusion.start_time|date:"M d, Y H:i" }}
Volume Transfused:{{ transfusion.volume_transfused|default:"Calculating..." }} ml
+
+
+
+ + + +
+
Reaction Details
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
Symptoms & Signs
+
+ +
+
Cardiovascular
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Respiratory
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Dermatologic
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Systemic
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Neurologic
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Other
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + +
+
Vital Signs at Time of Reaction
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+
Immediate Actions Taken
+
+ +
+
Basic Interventions
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Medications
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
Supportive Care
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + + +
+
Outcome & Follow-up
+
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + + +
+
Reporting Information
+
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + + +
+
Reaction Summary
+
+

Complete the form to view reaction summary

+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/reports/blood_bank_reports.html b/templates/blood_bank/reports/blood_bank_reports.html new file mode 100644 index 00000000..b9554f4b --- /dev/null +++ b/templates/blood_bank/reports/blood_bank_reports.html @@ -0,0 +1,633 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Bank Reports{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

Blood Bank Reports comprehensive analytics and reporting

+ + + +
+
+
+
+
+
{{ total_donations_month }}
+
Donations This Month
+
+ + +12% vs last month +
+
+
+ +
+
+
+
+
+
+
+
+
{{ total_transfusions_month }}
+
Transfusions This Month
+
+ + +8% vs last month +
+
+
+ +
+
+
+
+
+
+
+
+
{{ inventory_turnover }}%
+
Inventory Turnover
+
+ + Stable +
+
+
+ +
+
+
+
+
+
+
+
+
{{ wastage_rate }}%
+
Wastage Rate
+
+ + -3% vs last month +
+
+
+ +
+
+
+
+
+ + + +
+
+
+
+

Report Categories

+
+
+
+
+
+
+ +
+
Inventory Reports
+

Stock levels, expiry tracking, location analysis

+
+
+
+
+
+ +
+
Donation Reports
+

Donor statistics, collection trends, demographics

+
+
+
+
+
+ +
+
Transfusion Reports
+

Usage patterns, patient outcomes, safety metrics

+
+
+
+
+
+ +
+
Quality Reports
+

QC results, compliance metrics, CAPA tracking

+
+
+
+
+
+
+
+ + + +
+ +
+ +
+
+

Donation Trends

+
+ +
+
+
+
+ +
+
+
+ + + +
+
+

Blood Group Distribution

+
+
+
+
+
Donations
+
+ +
+
+
+
Transfusions
+
+ +
+
+
+
+
+ + + +
+
+

Utilization Metrics

+
+
+
+ +
+
+
+ +
+ + + +
+ +
+
+

Quick Reports

+
+
+
+ + + + + +
+
+
+ + + +
+
+

Top Donors This Month

+
+
+ {% for donor in top_donors %} +
+
+ {{ donor.full_name }} +
{{ donor.donor_id }} +
+
+ {{ donor.donations_this_month }} +
donations +
+
+ {% empty %} +
+ +

No donations this month

+
+ {% endfor %} +
+
+ + + +
+
+

Recent Alerts

+
+
+ {% for alert in recent_alerts %} +
+
+ + {{ alert.message }} +
+ {{ alert.timestamp|date:"H:i" }} +
+ {% empty %} +
+ +

No recent alerts

+
+ {% endfor %} +
+
+ + + +
+
+

Custom Report Builder

+
+
+
+
+ + +
+
+ +
+ + +
+
+
+ +
+ + +
+
+ + +
+
+
+ +
+
+
+
+ +
+ +
+ +{% endblock %} + +{% block extra_js %} + + + + +{% endblock %} + diff --git a/templates/blood_bank/requests/.DS_Store b/templates/blood_bank/requests/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/templates/blood_bank/requests/.DS_Store differ diff --git a/templates/blood_bank/requests/blood_request_confirm_delete.html b/templates/blood_bank/requests/blood_request_confirm_delete.html new file mode 100644 index 00000000..474b83f7 --- /dev/null +++ b/templates/blood_bank/requests/blood_request_confirm_delete.html @@ -0,0 +1,464 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Cancel Blood Request - {{ blood_request.request_number }}{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} + + + + + +

+ Cancel Blood Request + {{ blood_request.request_number }} + {% if blood_request.urgency == 'emergency' %} + EMERGENCY + {% endif %} +

+ + +{% if blood_request.urgency == 'emergency' %} + +
+
+ WARNING: This is an EMERGENCY blood request. Cancellation requires immediate supervisor approval. +
+ +{% endif %} + + +
+
+

+ Cancel Blood Request +

+
+ Cancellation Required +
+
+
+ +
+
CRITICAL ACTION REQUIRED
+

You are about to cancel a blood request.

+

This action will:

+
    +
  • Cancel the blood request permanently
  • +
  • Release any reserved blood units
  • +
  • Notify the requesting physician
  • +
  • Create an audit trail entry
  • + {% if blood_request.urgency == 'emergency' %} +
  • Require supervisor approval for emergency request
  • + {% endif %} +
+
+ + + +
+
Request Information
+
+
+ + + + + + + + + + + + + + + + + +
Request Number:{{ blood_request.request_number }}
Patient:{{ blood_request.patient.full_name }} ({{ blood_request.patient.patient_id }})
Blood Group:{{ blood_request.patient.blood_group.display_name }}
Component:{{ blood_request.component.get_name_display }}
+
+
+ + + + + + + + + + + + + + + + + +
Quantity:{{ blood_request.quantity_requested }} units
Urgency: + + {{ blood_request.get_urgency_display }} + +
Requested By:{{ blood_request.requested_by.get_full_name }}
Department:{{ blood_request.department.name }}
+
+
+ + {% if blood_request.clinical_indication %} +
+
Clinical Indication:
+
{{ blood_request.clinical_indication }}
+
+ {% endif %} +
+ + + +
+
Impact Assessment
+
+
+
Current Status
+
    +
  • Request Status: {{ blood_request.get_status_display }}
  • +
  • Units Reserved: {{ blood_request.reserved_units.count }} units
  • +
  • Units Issued: {{ blood_request.issued_units.count }} units
  • +
  • Crossmatches Done: {{ blood_request.crossmatches.count }}
  • +
+
+
+
Affected Records
+
    + {% if blood_request.reserved_units.exists %} +
  • Reserved blood units will be released
  • + {% endif %} + {% if blood_request.issued_units.exists %} +
  • Issued units require immediate return
  • + {% endif %} + {% if blood_request.crossmatches.exists %} +
  • Crossmatch results will be archived
  • + {% endif %} +
  • Audit trail will be created
  • +
+
+
+ + {% if blood_request.issued_units.exists %} +
+ WARNING: + This request has issued blood units that must be returned immediately before cancellation. +
+ {% endif %} +
+ + + +
+ {% csrf_token %} + +
+
Cancellation Details
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+ + {% if blood_request.urgency == 'emergency' %} +
+
+
+ + +
+
+
+
+ + +
+
+
+ {% endif %} + +
+
+
+ + +
+
+
+ +
+
+
+ +
+ + +
+
+
+
+
+ +
+ + +
+
+
+
+
+ + +
+
Confirmation Checklist
+
+ + +
+
+ + +
+
+ + +
+ {% if blood_request.issued_units.exists %} +
+ + +
+ {% endif %} +
+ + + +
+ + Keep Request Active + +
+ + +
+
+ +
+ +
+
+ +{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/blood_bank/requests/blood_request_detail.html b/templates/blood_bank/requests/blood_request_detail.html new file mode 100644 index 00000000..17a19c6d --- /dev/null +++ b/templates/blood_bank/requests/blood_request_detail.html @@ -0,0 +1,639 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Request Details - {{ blood_request.request_number }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

+ Blood Request Details + {{ blood_request.request_number }} +

+ + + +
+
+
+

{{ blood_request.request_number }}

+

+ {{ blood_request.patient.full_name }} + ({{ blood_request.patient.patient_id }}) +

+
+
+
+ {% if blood_request.urgency == 'emergency' %} + + {{ blood_request.get_urgency_display }} + + {% elif blood_request.urgency == 'urgent' %} + + {{ blood_request.get_urgency_display }} + + {% else %} + {{ blood_request.get_urgency_display }} + {% endif %} +
+
+ {% if blood_request.status == 'pending' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'processing' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'ready' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'issued' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'completed' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'cancelled' %} + {{ blood_request.get_status_display }} + {% endif %} +
+
+
+
+ + + +
+ +
+ +
+
+

Request Information

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Request Number:{{ blood_request.request_number }}
Request Date:{{ blood_request.request_date|date:"M d, Y H:i" }}
Required By: + {{ blood_request.required_by|date:"M d, Y H:i" }} + {% if blood_request.is_overdue %} +
Overdue + {% endif %} +
Department:{{ blood_request.requesting_department.name }}
Requesting Physician:{{ blood_request.requesting_physician.get_full_name }}
Component:{{ blood_request.component_requested.get_name_display }}
Units Requested: + {{ blood_request.units_requested }} +
Patient Blood Group: + {{ blood_request.patient_blood_group.display_name }} +
+ + {% if blood_request.processed_by %} +
+
Processing Information
+ + + + + + + + + +
Processed By:{{ blood_request.processed_by.get_full_name }}
Processed At:{{ blood_request.processed_at|date:"M d, Y H:i" }}
+ {% endif %} +
+
+ + + +
+
+

Patient Information

+
+
+ + + + + + + + + + + + + + + + + + + + + + {% if blood_request.hemoglobin_level %} + + + + + {% endif %} + {% if blood_request.platelet_count %} + + + + + {% endif %} +
Patient ID:{{ blood_request.patient.patient_id }}
Name:{{ blood_request.patient.full_name }}
Age:{{ blood_request.patient.age }} years
Gender:{{ blood_request.patient.get_gender_display }}
Blood Group: + {{ blood_request.patient_blood_group.display_name }} +
Hemoglobin:{{ blood_request.hemoglobin_level }} g/dL
Platelet Count:{{ blood_request.platelet_count }}/μL
+
+
+ + + +
+
+

Clinical Information

+
+
+
Indication for Transfusion
+

{{ blood_request.indication }}

+ + {% if blood_request.special_requirements %} +
Special Requirements
+

{{ blood_request.special_requirements }}

+ {% endif %} + + {% if blood_request.notes %} +
Additional Notes
+

{{ blood_request.notes }}

+ {% endif %} +
+
+ +
+ + + +
+ +
+
+

Blood Compatibility Check

+
+ +
+
+
+
+
+
+
ABO Compatibility
+

Patient: {{ blood_request.patient_blood_group.display_name }}

+

Compatible with: + {% if blood_request.patient_blood_group.abo_type == 'AB' %} + A, B, AB, O + {% elif blood_request.patient_blood_group.abo_type == 'A' %} + A, O + {% elif blood_request.patient_blood_group.abo_type == 'B' %} + B, O + {% else %} + O only + {% endif %} +

+
+
+
Rh Compatibility
+

Patient: {{ blood_request.patient_blood_group.rh_factor|title }}

+

Compatible with: + {% if blood_request.patient_blood_group.rh_factor == 'positive' %} + Positive, Negative + {% else %} + Negative only + {% endif %} +

+
+
+
+ + +
+
+ + + +
+
+

Issued Blood Units

+
+ {% if blood_request.status in 'pending,processing,ready' %} + + Issue Blood Unit + + {% endif %} +
+
+
+ {% if issues %} +
+ + + + + + + + + + + + + + + {% for issue in issues %} + + + + + + + + + + + {% endfor %} + +
Unit NumberBlood GroupComponentIssue DateIssued ToExpiry TimeStatusActions
+ + {{ issue.blood_unit.unit_number }} + + + {{ issue.blood_unit.blood_group.display_name }} + {{ issue.blood_unit.component.get_name_display }}{{ issue.issue_date|date:"M d, Y H:i" }}{{ issue.issued_to.get_full_name }} + {{ issue.expiry_time|date:"M d, Y H:i" }} + {% if issue.is_expired %} +
Expired + {% endif %} +
+ {% if issue.returned %} + Returned + {% elif issue.is_expired %} + Expired + {% else %} + Active + {% endif %} + + {% if not issue.returned and not issue.is_expired %} + + + + {% endif %} +
+
+ {% else %} +
+ +
No Units Issued
+

No blood units have been issued for this request yet.

+ {% if blood_request.status in 'pending,processing,ready' %} + + Issue First Unit + + {% endif %} +
+ {% endif %} +
+
+ + + +
+
+

Request Timeline

+
+
+
+
+
+
+
+ Request Created +
+

+ {{ blood_request.request_date|date:"M d, Y H:i" }}
+ Request submitted by {{ blood_request.requesting_physician.get_full_name }} +

+
+
+
+ + {% if blood_request.status != 'pending' %} +
+
+
+
+ Processing Started +
+

+ {% if blood_request.processed_at %} + {{ blood_request.processed_at|date:"M d, Y H:i" }}
+ {% endif %} + Blood bank staff began processing the request +

+
+
+
+ {% endif %} + + {% if blood_request.status == 'ready' %} +
+
+
+
+ Units Ready +
+

+ Compatible blood units identified and ready for issue +

+
+
+
+ {% endif %} + + {% if blood_request.status == 'issued' %} +
+
+
+
+ Units Issued +
+

+ Blood units issued to clinical staff +

+
+
+
+ {% endif %} + + {% if blood_request.status == 'completed' %} +
+
+
+
+ Request Completed +
+

+ All requested units have been successfully transfused +

+
+
+
+ {% endif %} + + {% if blood_request.status == 'cancelled' %} +
+
+
+
+ Request Cancelled +
+

+ Request was cancelled and no units were issued +

+
+
+
+ {% endif %} +
+
+
+ +
+ +
+ + + +
+
+
+ + Back to Requests + +
+ {% if blood_request.status in 'pending,processing,ready' %} + + Issue Blood Unit + + {% endif %} + {% if blood_request.status == 'pending' %} + + {% endif %} + +
+
+
+
+ +{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/blood_bank/requests/blood_request_form.html b/templates/blood_bank/requests/blood_request_form.html new file mode 100644 index 00000000..b05a8646 --- /dev/null +++ b/templates/blood_bank/requests/blood_request_form.html @@ -0,0 +1,653 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{% if form.instance.pk %}Edit Blood Request{% else %}New Blood Request{% endif %}{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

+ {% if form.instance.pk %} + Edit Blood Request {{ form.instance.request_number }} + {% else %} + New Blood Request patient transfusion request + {% endif %} +

+ + + +
+
+

+ Blood Request Information +

+
+ Request ID: {{ form.instance.request_number|default:'Auto-generated' }} +
+
+
+
+ {% csrf_token %} + + +
+
Patient Information
+
+
+
+ + + {% if form.patient.errors %} +
{{ form.patient.errors.0 }}
+ {% endif %} +
+
+
+
+ +
+ Select a patient to view details +
+
+
+
+
+ + + +
+
Clinical Information
+
+
+
+ + + {% if form.requesting_physician.errors %} +
{{ form.requesting_physician.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.department.errors %} +
{{ form.department.errors.0 }}
+ {% endif %} +
+
+
+ +
+
+
+ + + {% if form.clinical_indication.errors %} +
{{ form.clinical_indication.errors.0 }}
+ {% endif %} +
+
+
+
+ + + +
+
Blood Component Request
+
+
+
+ + + {% if form.component_requested.errors %} +
{{ form.component_requested.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.units_requested.errors %} +
{{ form.units_requested.errors.0 }}
+ {% endif %} +
+
+
+
+ +
+ Select patient and component to check availability +
+
+
+
+
+ + + +
+
Urgency & Timing
+
+
+
+ + + {% if form.urgency.errors %} +
{{ form.urgency.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.required_by.errors %} +
{{ form.required_by.errors.0 }}
+ {% endif %} +
+
+
+
+ +
+ Set required by time +
+
+
+
+
+ + + +
+
Special Requirements
+
+
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + + {% if form.special_instructions.errors %} +
{{ form.special_instructions.errors.0 }}
+ {% endif %} +
+
+
+
+ + + +
+
Compatibility Check
+
+

Select patient and component to perform compatibility check

+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/requests/blood_request_list.html b/templates/blood_bank/requests/blood_request_list.html new file mode 100644 index 00000000..6b79ccc2 --- /dev/null +++ b/templates/blood_bank/requests/blood_request_list.html @@ -0,0 +1,495 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Request Management{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

Blood Request Management manage transfusion requests

+ + + +
+
+

Blood Transfusion Requests

+ +
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+ +
+
+
+
+
+ + + +
+
+
+
+
+
+
Total Requests
+

{{ page_obj.paginator.count }}

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Pending
+

0

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Emergency
+

0

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Completed
+

0

+
+
+ +
+
+
+
+
+
+ + + +
+ + + + + + + + + + + + + + + + + + {% for blood_request in page_obj %} + + + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
Request #PatientDepartmentComponentUnitsBlood GroupUrgencyStatusRequest DateRequired ByActions
+ + {{ blood_request.request_number }} + + + {{ blood_request.patient.full_name }} +
{{ blood_request.patient.patient_id }} +
{{ blood_request.requesting_department.name }}{{ blood_request.component_requested.get_name_display }} + {{ blood_request.units_requested }} + + {{ blood_request.patient_blood_group.display_name }} + + {% if blood_request.urgency == 'emergency' %} + + {{ blood_request.get_urgency_display }} + + {% elif blood_request.urgency == 'urgent' %} + + {{ blood_request.get_urgency_display }} + + {% else %} + {{ blood_request.get_urgency_display }} + {% endif %} + + {% if blood_request.status == 'pending' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'processing' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'ready' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'issued' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'completed' %} + {{ blood_request.get_status_display }} + {% elif blood_request.status == 'cancelled' %} + {{ blood_request.get_status_display }} + {% endif %} + {{ blood_request.request_date|date:"M d, Y H:i" }} + {{ blood_request.required_by|date:"M d, Y H:i" }} + {% if blood_request.is_overdue %} +
Overdue + {% endif %} +
+
+ + + + {% if blood_request.status == 'pending' or blood_request.status == 'processing' %} + + + + {% endif %} + {% if blood_request.status == 'pending' %} + + {% endif %} +
+
+
+ +
No blood requests found
+

Try adjusting your search criteria or create a new request.

+ + Create Request + +
+
+
+ + + + {% if page_obj.has_other_pages %} + + {% endif %} + + + +
+
+

+ Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ page_obj.paginator.count }} requests +

+
+
+
+ + + +
+
+
+ +
+
+ +{% endblock %} + +{% block extra_js %} + + + + + + +{% endblock %} + diff --git a/templates/blood_bank/tests/blood_test_form.html b/templates/blood_bank/tests/blood_test_form.html new file mode 100644 index 00000000..454995cc --- /dev/null +++ b/templates/blood_bank/tests/blood_test_form.html @@ -0,0 +1,644 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Test - {{ blood_unit.unit_number }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

Blood Test {{ blood_unit.unit_number }}

+ + + +
+
+

+ Blood Testing Panel +

+
+ Unit: {{ blood_unit.unit_number }} +
+
+
+
+ {% csrf_token %} + + +
+
Blood Unit Information
+
+
+ + + + + + + + + + + + + + + + + +
Unit Number:{{ blood_unit.unit_number }}
Blood Group:{{ blood_unit.blood_group.display_name }}
Component:{{ blood_unit.component.get_name_display }}
Volume:{{ blood_unit.volume_ml }} ml
+
+
+ + + + + + + + + + + + + + + + + +
Donor:{{ blood_unit.donor.full_name }}
Collection Date:{{ blood_unit.collection_date|date:"M d, Y" }}
Expiry Date:{{ blood_unit.expiry_date|date:"M d, Y" }}
Status: + + {{ blood_unit.get_status_display }} + +
+
+
+
+ + + +
+
Test Information
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
Infectious Disease Testing
+
+ +
+
HIV Testing
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ + +
+
Hepatitis Testing
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ + +
+
Syphilis Testing
+
+ +
+ + +
+
+
+ + +
+
Additional Tests
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+
+ + + +
+
Test Notes & Observations
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + + +
+
Compliance Verification
+
+
+
+
Quality Control
+
+ + +
+
+ + +
+
+ + +
+
+
+
Regulatory Compliance
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + + +
+
Test Summary
+
+

Complete test results to view summary

+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/transfusions/transfusion_detail.html b/templates/blood_bank/transfusions/transfusion_detail.html new file mode 100644 index 00000000..9c2dcda2 --- /dev/null +++ b/templates/blood_bank/transfusions/transfusion_detail.html @@ -0,0 +1,980 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Transfusion Details - {{ transfusion.transfusion_id }}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

Transfusion Details {{ transfusion.transfusion_id }}

+ + + +
+
+
+

+ {{ transfusion.patient.full_name }} + {{ transfusion.patient.patient_id }} +

+
+
+

Blood Unit: {{ transfusion.blood_unit.unit_number }}

+

Component: {{ transfusion.blood_unit.component.get_name_display }}

+

Blood Group: {{ transfusion.blood_unit.blood_group.display_name }}

+
+
+

Started: {{ transfusion.start_time|date:"M d, Y H:i" }}

+ {% if transfusion.end_time %} +

Completed: {{ transfusion.end_time|date:"M d, Y H:i" }}

+

Duration: {{ transfusion.duration_minutes }} minutes

+ {% else %} +

Elapsed: {{ transfusion.elapsed_minutes }} minutes

+

Status: {{ transfusion.get_status_display }}

+ {% endif %} +
+
+
+
+ {% if transfusion.status == 'in_progress' %} +
+ + + +
+
+

{{ transfusion.progress_percentage }}%

+ Complete +
+
+
+ {% endif %} +
+ {% if transfusion.status == 'in_progress' %} + Active Transfusion + {% elif transfusion.status == 'completed' %} + Completed + {% elif transfusion.status == 'stopped' %} + Stopped + {% elif transfusion.status == 'cancelled' %} + Cancelled + {% endif %} +
+
+
+
+ + + +
+ +
+ +
+
+

Vital Signs Monitoring

+
+ {% if transfusion.status == 'in_progress' %} + + {% endif %} +
+
+
+ {% if transfusion.vital_signs.exists %} +
+ +
+ + + {% with latest_vitals=transfusion.vital_signs.first %} + {% if latest_vitals %} +
+
+
+
+ {{ latest_vitals.blood_pressure }} +
+ Blood Pressure +
+
+
+
+
+ {{ latest_vitals.heart_rate }} +
+ Heart Rate +
+
+
+
+
+ {{ latest_vitals.temperature }}°C +
+ Temperature +
+
+
+
+
{{ latest_vitals.oxygen_saturation }}%
+ O2 Saturation +
+
+
+ {% endif %} + {% endwith %} + {% else %} +
+ +
No vital signs recorded
+ {% if transfusion.status == 'in_progress' %} + + {% endif %} +
+ {% endif %} +
+
+ + + +
+
+

Adverse Reactions

+
+ {% if transfusion.status == 'in_progress' %} + + {% endif %} +
+
+
+ {% if transfusion.adverse_reactions.exists %} + {% for reaction in transfusion.adverse_reactions.all %} +
+
+
+
{{ reaction.get_reaction_type_display }}
+

Severity: {{ reaction.get_severity_display }}

+

Symptoms: {{ reaction.symptoms }}

+

Time: {{ reaction.onset_time|date:"H:i" }}

+
+
+ {{ reaction.severity|upper }} +
+
+ {% if reaction.treatment_given %} +
+

Treatment: {{ reaction.treatment_given }}

+ {% endif %} +
+ {% endfor %} + {% else %} +
+ +
No adverse reactions reported
+

Transfusion proceeding without complications

+
+ {% endif %} +
+
+ + + +
+
+

Transfusion Timeline

+
+
+
+ +
+
{{ transfusion.start_time|date:"M d, Y H:i" }}
+
+
+
Transfusion Started
+

Started by {{ transfusion.started_by.get_full_name }}

+
+ Started +
+
+ + + {% for vitals in transfusion.vital_signs.all %} +
+
{{ vitals.recorded_at|date:"H:i" }}
+
+
+
Vital Signs Recorded
+

BP: {{ vitals.blood_pressure }}, HR: {{ vitals.heart_rate }}, Temp: {{ vitals.temperature }}°C

+
+ + {% if vitals.is_normal %}Normal{% else %}Abnormal{% endif %} + +
+
+ {% endfor %} + + + {% for reaction in transfusion.adverse_reactions.all %} +
+
{{ reaction.onset_time|date:"H:i" }}
+
+
+
Adverse Reaction
+

{{ reaction.get_reaction_type_display }} - {{ reaction.get_severity_display }}

+
+ {{ reaction.severity|upper }} +
+
+ {% endfor %} + + + {% if transfusion.end_time %} +
+
{{ transfusion.end_time|date:"M d, Y H:i" }}
+
+
+
+ {% if transfusion.status == 'completed' %} + Transfusion Completed + {% else %} + Transfusion Stopped + {% endif %} +
+

+ Volume transfused: {{ transfusion.volume_transfused }} ml + {% if transfusion.completion_notes %} +
Notes: {{ transfusion.completion_notes }} + {% endif %} +

+
+ + {{ transfusion.get_status_display }} + +
+
+ {% endif %} +
+
+
+ +
+ + + +
+ +
+
+

Transfusion Details

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + {% if transfusion.completed_by %} + + + + + {% endif %} +
Transfusion ID:{{ transfusion.transfusion_id }}
Blood Unit: + + {{ transfusion.blood_unit.unit_number }} + +
Component:{{ transfusion.blood_unit.component.get_name_display }}
Volume:{{ transfusion.blood_unit.volume_ml }} ml
Rate:{{ transfusion.transfusion_rate|default:"Standard" }} ml/hr
Started By:{{ transfusion.started_by.get_full_name }}
Completed By:{{ transfusion.completed_by.get_full_name }}
+
+
+ + + +
+
+

Patient Information

+
+
+ + + + + + + + + + + + + + + + + + + + + +
Name: + + {{ transfusion.patient.full_name }} + +
Patient ID:{{ transfusion.patient.patient_id }}
Blood Group: + {{ transfusion.patient.blood_group.display_name|default:"Unknown" }} +
Age:{{ transfusion.patient.age }} years
Weight:{{ transfusion.patient.weight|default:"Not recorded" }} kg
+
+
+ + + +
+
+

Quick Actions

+
+
+
+ {% if transfusion.status == 'in_progress' %} + + + + + {% endif %} + + + +
+
+
+ + + +
+
+

Related Information

+
+
+
+
Blood Request
+ {% if transfusion.blood_issue.blood_request %} + + View Original Request + + {% else %} + No associated request + {% endif %} +
+ +
+
Crossmatch Results
+ {% if transfusion.blood_unit.crossmatch_results.exists %} + Compatible + {% else %} + Pending + {% endif %} +
+ +
+
Blood Tests
+ {% if transfusion.blood_unit.blood_tests.exists %} + All Tests Passed + {% else %} + Tests Pending + {% endif %} +
+
+
+ +
+ +
+ + + + + + + + + +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/transfusions/transfusion_form.html b/templates/blood_bank/transfusions/transfusion_form.html new file mode 100644 index 00000000..1fe4650a --- /dev/null +++ b/templates/blood_bank/transfusions/transfusion_form.html @@ -0,0 +1,811 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{% if form.instance.pk %}Edit Transfusion{% else %}Start New Transfusion{% endif %}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} + + + + + +

+ {% if form.instance.pk %} + Edit Transfusion {{ form.instance.transfusion_id }} + {% else %} + Start New Transfusion patient blood administration + {% endif %} +

+ + + +
+
+

+ Transfusion Information +

+
+ Transfusion ID: {{ form.instance.transfusion_id|default:'Auto-generated' }} +
+
+
+
+ {% csrf_token %} + + +
+
Patient Information
+
+
+
+ + + {% if form.patient.errors %} +
{{ form.patient.errors.0 }}
+ {% endif %} +
+
+
+
+ +
+ Select a patient to view details +
+
+
+
+
+ + + +
+
Blood Unit Selection
+
+
+
+ + + {% if form.blood_unit.errors %} +
{{ form.blood_unit.errors.0 }}
+ {% endif %} +
+
+
+
+ +
+ Select a blood unit to view details +
+
+
+
+ + +
+
Compatibility Check
+
+

Select patient and blood unit to perform compatibility check

+
+
+
+ + + +
+
Transfusion Parameters
+
+
+
+ + + {% if form.transfusion_rate.errors %} +
{{ form.transfusion_rate.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.start_time.errors %} +
{{ form.start_time.errors.0 }}
+ {% endif %} +
+
+
+
+ + +
+
+
+ + +
+
Rate Calculator
+
+
+ + +
+
+ + +
+
+ +
+ + +
+
+
+
+
+ + + +
+
Baseline Vital Signs
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ + + +
+
Pre-Transfusion Safety Checklist
+
+
+
+
Patient Verification
+
+ + +
+
+ + +
+
+ + +
+
+
+
Blood Unit Verification
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+
+
Clinical Assessment
+
+ + +
+
+ + +
+
+
+
Equipment & Environment
+
+ + +
+
+ + +
+
+
+
+
+ + + +
+
Special Instructions & Notes
+
+
+
+ + + {% if form.notes.errors %} +
{{ form.notes.errors.0 }}
+ {% endif %} +
+
+
+ +
+
+
+ + + {% if form.started_by.errors %} +
{{ form.started_by.errors.0 }}
+ {% endif %} +
+
+
+
+ + +
+
+
+
+ + + +
+
Transfusion Preview
+
+

Complete the form to preview transfusion details

+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/blood_bank/transfusions/transfusion_list.html b/templates/blood_bank/transfusions/transfusion_list.html new file mode 100644 index 00000000..ee753d90 --- /dev/null +++ b/templates/blood_bank/transfusions/transfusion_list.html @@ -0,0 +1,608 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Transfusion Management{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

Transfusion Management monitor blood transfusions

+ + + +
+
+

Blood Transfusions

+ +
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+ +
+
+
+
+
+ + + +
+
+
+
+
+
+
Total Transfusions
+

{{ page_obj.paginator.count }}

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Active
+

0

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Completed
+

0

+
+
+ +
+
+
+
+
+
+
+
+
+
+
With Reactions
+

0

+
+
+ +
+
+
+
+
+
+ + + +
+ + + + + + + + + + + + + + + + + {% for transfusion in page_obj %} + + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
PatientBlood UnitComponentStart TimeDurationVolumeStatusVital SignsReactionsActions
+ + {{ transfusion.patient.full_name }} + +
{{ transfusion.patient.patient_id }} +
+ + {{ transfusion.blood_unit.unit_number }} + +
{{ transfusion.blood_unit.blood_group.display_name }} +
{{ transfusion.blood_unit.component.get_name_display }}{{ transfusion.start_time|date:"M d, Y H:i" }} + {% if transfusion.end_time %} + {{ transfusion.duration_minutes }} min + {% elif transfusion.status == 'in_progress' %} + {{ transfusion.elapsed_minutes }} min + {% else %} + - + {% endif %} + + {{ transfusion.volume_transfused|default:"-" }} / {{ transfusion.blood_unit.volume_ml }} ml + {% if transfusion.status == 'in_progress' %} +
+
+
+ {% endif %} +
+ {% if transfusion.status == 'in_progress' %} + {{ transfusion.get_status_display }} + {% elif transfusion.status == 'completed' %} + {{ transfusion.get_status_display }} + {% elif transfusion.status == 'stopped' %} + {{ transfusion.get_status_display }} + {% elif transfusion.status == 'cancelled' %} + {{ transfusion.get_status_display }} + {% endif %} + + {% if transfusion.latest_vitals %} +
+ BP: {{ transfusion.latest_vitals.blood_pressure }}
+ HR: {{ transfusion.latest_vitals.heart_rate }}
+ Temp: {{ transfusion.latest_vitals.temperature }}°C +
+ {% else %} + No vitals + {% endif %} +
+ {% if transfusion.has_adverse_reactions %} + + {{ transfusion.adverse_reaction_count }} + + {% else %} + None + {% endif %} + +
+ + + + {% if transfusion.status == 'in_progress' %} + + + {% endif %} +
+
+
+ +
No transfusions found
+

Try adjusting your search criteria or start a new transfusion.

+ + Start Transfusion + +
+
+
+ + + + {% if page_obj.has_other_pages %} + + {% endif %} + + + +
+
+

+ Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ page_obj.paginator.count }} transfusions +

+
+
+
+ + + +
+
+
+ +
+
+ + + + + +{% endblock %} + +{% block extra_js %} + + + + + + +{% endblock %} + diff --git a/templates/blood_bank/units/.DS_Store b/templates/blood_bank/units/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/templates/blood_bank/units/.DS_Store differ diff --git a/templates/blood_bank/units/blood_unit_confirm_delete.html b/templates/blood_bank/units/blood_unit_confirm_delete.html new file mode 100644 index 00000000..104a005b --- /dev/null +++ b/templates/blood_bank/units/blood_unit_confirm_delete.html @@ -0,0 +1,591 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Delete Blood Unit - {{ blood_unit.unit_number }}{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} + + + + + +

Delete Blood Unit {{ blood_unit.unit_number }}

+ + + +
+ +

⚠️ CRITICAL ACTION REQUIRED ⚠️

+
You are about to permanently delete this blood unit
+

This action cannot be undone and may have serious implications for patient safety and regulatory compliance.

+
+ + + +
+
Blood Unit Information
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Unit Number:{{ blood_unit.unit_number }}
Blood Group:{{ blood_unit.blood_group.display_name }}
Component:{{ blood_unit.component.get_name_display }}
Volume:{{ blood_unit.volume_ml }} ml
Status: + + {{ blood_unit.get_status_display }} + +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Donor: + + {{ blood_unit.donor.full_name }} + +
Collection Date:{{ blood_unit.collection_date|date:"M d, Y" }}
Expiry Date:{{ blood_unit.expiry_date|date:"M d, Y" }}
Location:{{ blood_unit.location.name }}
Created:{{ blood_unit.created_at|date:"M d, Y H:i" }}
+
+
+
+ + + +
+
Impact Assessment
+
+
+
+
Deletion Impact Analysis
+
    + {% if blood_unit.status == 'issued' %} +
  • CRITICAL: This unit has been issued and may be in use for patient transfusion
  • + {% endif %} + {% if blood_unit.status == 'available' %} +
  • WARNING: This unit is currently available in inventory
  • + {% endif %} + {% if blood_unit.blood_tests.exists %} +
  • Blood test records will be permanently lost
  • + {% endif %} + {% if blood_unit.crossmatch_results.exists %} +
  • Crossmatch results will be permanently deleted
  • + {% endif %} + {% if blood_unit.transfusions.exists %} +
  • CRITICAL: Transfusion records will be affected
  • + {% endif %} +
  • Audit trail and traceability will be compromised
  • +
  • Regulatory compliance may be affected
  • +
+
+
+
+
+ + + + + + + +
+
Deletion Options
+
+ {% csrf_token %} + +
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+ + +
+
+
+
+
+ + + +
+
Alternative Recommendation
+

+ Consider these alternatives instead of permanent deletion: +

+
+
+
Mark as Inactive
+

Preserve all data while removing from active inventory

+ +
+
+
Update Status
+

Change status to reflect current condition

+ +
+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/blood_bank/units/blood_unit_detail copy.html b/templates/blood_bank/units/blood_unit_detail copy.html new file mode 100644 index 00000000..9cc4b10c --- /dev/null +++ b/templates/blood_bank/units/blood_unit_detail copy.html @@ -0,0 +1,613 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Unit Details - {{ blood_unit.unit_number }}{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

+ Blood Unit Details + {{ blood_unit.unit_number }} +

+ + + +
+ +
+ +
+
+

Unit Information

+
+ + {{ blood_unit.get_status_display }} + +
+
+
+
+
+ +

{{ blood_unit.unit_number }}

+

{{ blood_unit.component.get_name_display }}

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Blood Group: + {{ blood_unit.blood_group.display_name }} +
Component:{{ blood_unit.component.get_name_display }}
Volume:{{ blood_unit.volume_ml }} ml
Collection Date:{{ blood_unit.collection_date|date:"M d, Y H:i" }}
Expiry Date: + {{ blood_unit.expiry_date|date:"M d, Y" }} + {% if blood_unit.days_to_expiry <= 3 and blood_unit.status == 'available' %} +
{{ blood_unit.days_to_expiry }} days left + {% elif blood_unit.is_expired %} +
Expired + {% endif %} +
Location:{{ blood_unit.location }}
Bag Type:{{ blood_unit.bag_type }}
Anticoagulant:{{ blood_unit.anticoagulant }}
Collection Site:{{ blood_unit.collection_site }}
Collected By:{{ blood_unit.collected_by.get_full_name }}
+ + {% if blood_unit.notes %} +
+
Notes
+

{{ blood_unit.notes }}

+ {% endif %} +
+
+ + + +
+
+

Donor Information

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Donor ID:{{ blood_unit.donor.donor_id }}
Name:{{ blood_unit.donor.full_name }}
Age:{{ blood_unit.donor.age }} years
Gender:{{ blood_unit.donor.get_gender_display }}
Phone:{{ blood_unit.donor.phone }}
Total Donations:{{ blood_unit.donor.total_donations }}
+
+
+ +
+ + + +
+ +
+
+

Unit Status Timeline

+
+
+
+
+
+
+
+ Blood Collected +
+

+ {{ blood_unit.collection_date|date:"M d, Y H:i" }}
+ Blood unit collected from donor {{ blood_unit.donor.full_name }} +

+
+
+
+ + {% if tests %} +
+
+
+
+ Testing Phase +
+

+ {{ tests.first.test_date|date:"M d, Y H:i" }}
+ Laboratory testing initiated +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'quarantine' %} +
+
+
+
+ Quarantine +
+

+ Unit placed in quarantine pending test results +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'available' %} +
+
+
+
+ Available for Use +
+

+ Unit cleared for transfusion and available in inventory +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'issued' %} +
+
+
+
+ Issued +
+

+ Unit issued for patient transfusion +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'transfused' %} +
+
+
+
+ Transfused +
+

+ Unit successfully transfused to patient +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'expired' or blood_unit.status == 'discarded' %} +
+
+
+
+ {{ blood_unit.get_status_display }} +
+

+ Unit removed from inventory +

+
+
+
+ {% endif %} +
+
+
+ + + +
+
+

Test Results

+
+ {% if blood_unit.status in 'collected,testing,quarantine' %} + + Add Test Result + + {% endif %} +
+
+
+ {% if tests %} +
+ + + + + + + + + + + + + {% for test in tests %} + + + + + + + + + {% endfor %} + +
Test TypeResultTest DateTested ByEquipmentVerified
{{ test.get_test_type_display }} + {% if test.result == 'positive' %} + {{ test.get_result_display }} + {% elif test.result == 'negative' %} + {{ test.get_result_display }} + {% elif test.result == 'indeterminate' %} + {{ test.get_result_display }} + {% else %} + {{ test.get_result_display }} + {% endif %} + {{ test.test_date|date:"M d, Y H:i" }}{{ test.tested_by.get_full_name }}{{ test.equipment_used|default:"-" }} + {% if test.verified_by %} + + {{ test.verified_by.get_full_name }} + +
{{ test.verified_at|date:"M d, Y H:i" }} + {% else %} + Pending + {% endif %} +
+
+ {% else %} +
+ +
No Test Results
+

No laboratory tests have been performed on this unit yet.

+ {% if blood_unit.status in 'collected,testing,quarantine' %} + + Add First Test + + {% endif %} +
+ {% endif %} +
+
+ + + +
+
+

Crossmatch Results

+
+ {% if blood_unit.status == 'available' %} + + {% endif %} +
+
+
+ {% if crossmatches %} +
+ + + + + + + + + + + + + {% for crossmatch in crossmatches %} + + + + + + + + + {% endfor %} + +
PatientTest TypeCompatibilityTest DateTested ByVerified
+ {{ crossmatch.recipient.full_name }} +
{{ crossmatch.recipient.patient_id }} +
{{ crossmatch.get_test_type_display }} + {% if crossmatch.compatibility == 'compatible' %} + {{ crossmatch.get_compatibility_display }} + {% elif crossmatch.compatibility == 'incompatible' %} + {{ crossmatch.get_compatibility_display }} + {% else %} + {{ crossmatch.get_compatibility_display }} + {% endif %} + {{ crossmatch.test_date|date:"M d, Y H:i" }}{{ crossmatch.tested_by.get_full_name }} + {% if crossmatch.verified_by %} + + Verified + + {% else %} + Pending + {% endif %} +
+
+ {% else %} +
+ +
No Crossmatch Results
+

No crossmatch tests have been performed for this unit.

+
+ {% endif %} +
+
+ +
+ +
+ + + +
+
+
+ + Back to Units + +
+ {% if blood_unit.status in 'collected,testing,quarantine' %} + + Add Test + + {% endif %} + {% if blood_unit.status == 'available' %} + + {% endif %} + +
+
+
+
+ +{% endblock %} + +{% block extra_js %} + + + + +{% endblock %} + diff --git a/templates/blood_bank/units/blood_unit_detail.html b/templates/blood_bank/units/blood_unit_detail.html new file mode 100644 index 00000000..9cc4b10c --- /dev/null +++ b/templates/blood_bank/units/blood_unit_detail.html @@ -0,0 +1,613 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Unit Details - {{ blood_unit.unit_number }}{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

+ Blood Unit Details + {{ blood_unit.unit_number }} +

+ + + +
+ +
+ +
+
+

Unit Information

+
+ + {{ blood_unit.get_status_display }} + +
+
+
+
+
+ +

{{ blood_unit.unit_number }}

+

{{ blood_unit.component.get_name_display }}

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Blood Group: + {{ blood_unit.blood_group.display_name }} +
Component:{{ blood_unit.component.get_name_display }}
Volume:{{ blood_unit.volume_ml }} ml
Collection Date:{{ blood_unit.collection_date|date:"M d, Y H:i" }}
Expiry Date: + {{ blood_unit.expiry_date|date:"M d, Y" }} + {% if blood_unit.days_to_expiry <= 3 and blood_unit.status == 'available' %} +
{{ blood_unit.days_to_expiry }} days left + {% elif blood_unit.is_expired %} +
Expired + {% endif %} +
Location:{{ blood_unit.location }}
Bag Type:{{ blood_unit.bag_type }}
Anticoagulant:{{ blood_unit.anticoagulant }}
Collection Site:{{ blood_unit.collection_site }}
Collected By:{{ blood_unit.collected_by.get_full_name }}
+ + {% if blood_unit.notes %} +
+
Notes
+

{{ blood_unit.notes }}

+ {% endif %} +
+
+ + + +
+
+

Donor Information

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Donor ID:{{ blood_unit.donor.donor_id }}
Name:{{ blood_unit.donor.full_name }}
Age:{{ blood_unit.donor.age }} years
Gender:{{ blood_unit.donor.get_gender_display }}
Phone:{{ blood_unit.donor.phone }}
Total Donations:{{ blood_unit.donor.total_donations }}
+
+
+ +
+ + + +
+ +
+
+

Unit Status Timeline

+
+
+
+
+
+
+
+ Blood Collected +
+

+ {{ blood_unit.collection_date|date:"M d, Y H:i" }}
+ Blood unit collected from donor {{ blood_unit.donor.full_name }} +

+
+
+
+ + {% if tests %} +
+
+
+
+ Testing Phase +
+

+ {{ tests.first.test_date|date:"M d, Y H:i" }}
+ Laboratory testing initiated +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'quarantine' %} +
+
+
+
+ Quarantine +
+

+ Unit placed in quarantine pending test results +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'available' %} +
+
+
+
+ Available for Use +
+

+ Unit cleared for transfusion and available in inventory +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'issued' %} +
+
+
+
+ Issued +
+

+ Unit issued for patient transfusion +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'transfused' %} +
+
+
+
+ Transfused +
+

+ Unit successfully transfused to patient +

+
+
+
+ {% endif %} + + {% if blood_unit.status == 'expired' or blood_unit.status == 'discarded' %} +
+
+
+
+ {{ blood_unit.get_status_display }} +
+

+ Unit removed from inventory +

+
+
+
+ {% endif %} +
+
+
+ + + +
+
+

Test Results

+
+ {% if blood_unit.status in 'collected,testing,quarantine' %} + + Add Test Result + + {% endif %} +
+
+
+ {% if tests %} +
+ + + + + + + + + + + + + {% for test in tests %} + + + + + + + + + {% endfor %} + +
Test TypeResultTest DateTested ByEquipmentVerified
{{ test.get_test_type_display }} + {% if test.result == 'positive' %} + {{ test.get_result_display }} + {% elif test.result == 'negative' %} + {{ test.get_result_display }} + {% elif test.result == 'indeterminate' %} + {{ test.get_result_display }} + {% else %} + {{ test.get_result_display }} + {% endif %} + {{ test.test_date|date:"M d, Y H:i" }}{{ test.tested_by.get_full_name }}{{ test.equipment_used|default:"-" }} + {% if test.verified_by %} + + {{ test.verified_by.get_full_name }} + +
{{ test.verified_at|date:"M d, Y H:i" }} + {% else %} + Pending + {% endif %} +
+
+ {% else %} +
+ +
No Test Results
+

No laboratory tests have been performed on this unit yet.

+ {% if blood_unit.status in 'collected,testing,quarantine' %} + + Add First Test + + {% endif %} +
+ {% endif %} +
+
+ + + +
+
+

Crossmatch Results

+
+ {% if blood_unit.status == 'available' %} + + {% endif %} +
+
+
+ {% if crossmatches %} +
+ + + + + + + + + + + + + {% for crossmatch in crossmatches %} + + + + + + + + + {% endfor %} + +
PatientTest TypeCompatibilityTest DateTested ByVerified
+ {{ crossmatch.recipient.full_name }} +
{{ crossmatch.recipient.patient_id }} +
{{ crossmatch.get_test_type_display }} + {% if crossmatch.compatibility == 'compatible' %} + {{ crossmatch.get_compatibility_display }} + {% elif crossmatch.compatibility == 'incompatible' %} + {{ crossmatch.get_compatibility_display }} + {% else %} + {{ crossmatch.get_compatibility_display }} + {% endif %} + {{ crossmatch.test_date|date:"M d, Y H:i" }}{{ crossmatch.tested_by.get_full_name }} + {% if crossmatch.verified_by %} + + Verified + + {% else %} + Pending + {% endif %} +
+
+ {% else %} +
+ +
No Crossmatch Results
+

No crossmatch tests have been performed for this unit.

+
+ {% endif %} +
+
+ +
+ +
+ + + +
+
+
+ + Back to Units + +
+ {% if blood_unit.status in 'collected,testing,quarantine' %} + + Add Test + + {% endif %} + {% if blood_unit.status == 'available' %} + + {% endif %} + +
+
+
+
+ +{% endblock %} + +{% block extra_js %} + + + + +{% endblock %} + diff --git a/templates/blood_bank/units/blood_unit_form.html b/templates/blood_bank/units/blood_unit_form.html new file mode 100644 index 00000000..740b9219 --- /dev/null +++ b/templates/blood_bank/units/blood_unit_form.html @@ -0,0 +1,571 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{% if form.instance.pk %}Edit Blood Unit{% else %}Register Blood Unit{% endif %}{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

+ {% if form.instance.pk %} + Edit Blood Unit {{ form.instance.unit_number }} + {% else %} + Register Blood Unit new collection + {% endif %} +

+ + + +
+
+

+ Blood Unit Information +

+
+ {% if donor %} + Donor: {{ donor.full_name }} + {% endif %} +
+
+
+
+ {% csrf_token %} + + + {% if not donor %} +
+
Donor Selection
+
+
+
+ + + {% if form.donor.errors %} +
{{ form.donor.errors.0 }}
+ {% endif %} +
+
+
+
+ +
+ Select a donor to check eligibility +
+
+
+
+
+ {% else %} + +
+
Donor Information
+
+
+

Name: {{ donor.full_name }}

+

Donor ID: {{ donor.donor_id }}

+

Blood Group: {{ donor.blood_group.display_name }}

+
+
+

Last Donation: {{ donor.last_donation_date|date:"M d, Y"|default:"Never" }}

+

Total Donations: {{ donor.total_donations }}

+

Status: + + {% if donor.is_eligible %}Eligible{% else %}Check Required{% endif %} + +

+
+
+
+ {% endif %} + + + +
+
Collection Details
+
+
+
+ + + {% if form.collection_date.errors %} +
{{ form.collection_date.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.collection_time.errors %} +
{{ form.collection_time.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.collected_by.errors %} +
{{ form.collected_by.errors.0 }}
+ {% endif %} +
+
+
+
+ + + +
+
Component & Volume
+
+
+
+ + + {% if form.component.errors %} +
{{ form.component.errors.0 }}
+ {% endif %} +
+
+
+
+ + + {% if form.volume_ml.errors %} +
{{ form.volume_ml.errors.0 }}
+ {% endif %} +
+
+
+
+ + +
+
+
+
+ + + +
+
Storage Information
+
+
+
+ + + {% if form.location.errors %} +
{{ form.location.errors.0 }}
+ {% endif %} +
+
+
+
+ +
+ Select a location to view capacity +
+
+
+
+
+ + + +
+
Additional Information
+
+
+
+ + + {% if form.notes.errors %} +
{{ form.notes.errors.0 }}
+ {% endif %} +
+
+
+
+ + + +
+
Unit Preview
+
+
+
+

Unit Number: Will be auto-generated

+

Donor: {{ donor.full_name|default:'Not selected' }}

+

Blood Group: {{ donor.blood_group.display_name|default:'Unknown' }}

+

Component: Not selected

+

Volume: 0 ml

+

Collection Date: Not set

+

Expiry Date: Not calculated

+
+
+
+
+
Blood Unit Barcode
+
||||| |||| |||||
+
+
+
+
+ + + +
+ + Cancel + +
+ + +
+
+ +
+
+
+ +{% endblock %} + +{% block extra_js %} + + + + +{% endblock %} + diff --git a/templates/blood_bank/units/blood_unit_list.html b/templates/blood_bank/units/blood_unit_list.html new file mode 100644 index 00000000..4308fe8b --- /dev/null +++ b/templates/blood_bank/units/blood_unit_list.html @@ -0,0 +1,509 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Blood Unit Management{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} + + + + + +

Blood Unit Management track and manage blood inventory

+ + + +
+
+

Blood Unit Inventory

+ +
+
+ +
+
+
+
+ + {{ form.blood_group }} +
+
+
+
+ + {{ form.component }} +
+
+
+
+ + {{ form.status }} +
+
+
+
+ + {{ form.expiry_days }} +
+
+
+
+ +
+ +
+
+
+
+
+ + + +
+
+
+
+
+
+
Available Units
+

{{ page_obj.paginator.count }}

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Fresh Units
+

+ {{ page_obj.object_list|length }} +

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Expiring Soon
+

0

+
+
+ +
+
+
+
+
+
+
+
+
+
+
Expired Units
+

0

+
+
+ +
+
+
+
+
+
+ + + +
+ + + + + + + + + + + + + + + + + + {% for unit in page_obj %} + + + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
Unit NumberDonorBlood GroupComponentCollection DateExpiry DateVolume (ml)StatusLocationDays to ExpiryActions
+ + {{ unit.unit_number }} + + + + {{ unit.donor.full_name }} + +
+ {{ unit.donor.donor_id }} +
+ {{ unit.blood_group.display_name }} + {{ unit.component.get_name_display }}{{ unit.collection_date|date:"M d, Y H:i" }} + {{ unit.expiry_date|date:"M d, Y" }} + {% if unit.days_to_expiry <= 3 and unit.status == 'available' %} +
Expiring Soon + {% elif unit.is_expired %} +
Expired + {% endif %} +
{{ unit.volume_ml }} + {% if unit.status == 'available' %} + {{ unit.get_status_display }} + {% elif unit.status == 'expired' %} + {{ unit.get_status_display }} + {% elif unit.status == 'issued' %} + {{ unit.get_status_display }} + {% elif unit.status == 'transfused' %} + {{ unit.get_status_display }} + {% elif unit.status == 'discarded' %} + {{ unit.get_status_display }} + {% else %} + {{ unit.get_status_display }} + {% endif %} + {{ unit.location }} + {% if unit.is_expired %} + Expired + {% elif unit.days_to_expiry <= 3 %} + {{ unit.days_to_expiry }} days + {% else %} + {{ unit.days_to_expiry }} days + {% endif %} + +
+ + + + {% if unit.status == 'collected' or unit.status == 'testing' %} + + + + {% endif %} + {% if unit.status == 'available' %} + + {% endif %} +
+
+
+ +
No blood units found
+

Try adjusting your search criteria or register a new blood unit.

+ + Register Blood Unit + +
+
+
+ + + + {% if page_obj.has_other_pages %} + + {% endif %} + + + +
+
+

+ Showing {{ page_obj.start_index }} to {{ page_obj.end_index }} of {{ page_obj.paginator.count }} blood units +

+
+
+
+ + + +
+
+
+ +
+
+ + + + + +{% endblock %} + +{% block extra_js %} + + + + + + + +{% endblock %} + diff --git a/templates/operating_theatre/.DS_Store b/templates/operating_theatre/.DS_Store index 304583e9..40e919ab 100644 Binary files a/templates/operating_theatre/.DS_Store and b/templates/operating_theatre/.DS_Store differ diff --git a/templates/operating_theatre/blocks/block_detail.html b/templates/operating_theatre/blocks/block_detail.html index 25fdd6f6..683205f7 100644 --- a/templates/operating_theatre/blocks/block_detail.html +++ b/templates/operating_theatre/blocks/block_detail.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% load static %} -{% block title %}OR Block - {{ block.operating_room.name }}{% endblock %} +{% block title %}OR Block - {{ object.operating_room.room_name }}{% endblock %} {% block css %} +{% endblock %} \ No newline at end of file diff --git a/templates/operating_theatre/dashboard.html b/templates/operating_theatre/dashboard.html index 0fd37b17..59eea5f6 100644 --- a/templates/operating_theatre/dashboard.html +++ b/templates/operating_theatre/dashboard.html @@ -5,519 +5,467 @@ {% block content %}
- -
-
-

- Operating Theatre Dashboard -

- + +
+
+

+ Operating Theatre Dashboard +

+ +
+ +
+ + +
+ +
+
+
+
+
+
{{ rooms_available|default:0 }}
+
Rooms Available
+
+
+
- +
+
+
+
+
+
+
{{ rooms_in_use|default:0 }}
+
Rooms In Use
+
+
+
+
+
+
+
+
+
+
+
{{ rooms_maintenance|default:0 }}
+
Maintenance
+
+
+
+
+
+
+
+
+
+
+
+
{{ total_rooms|default:0 }}
+
Total Rooms
+
+
+
+
+
- -
- -
-
-
-
-
-
{{ rooms_available|default:0 }}
-
Rooms Available
-
-
- -
-
-
-
-
-
-
-
-
-
-
{{ rooms_in_use|default:0 }}
-
Rooms In Use
-
-
- -
-
-
-
-
-
-
-
-
-
-
{{ rooms_maintenance|default:0 }}
-
Maintenance
-
-
- -
-
-
-
-
-
-
-
-
-
-
{{ total_rooms|default:0 }}
-
Total Rooms
-
-
- -
-
-
-
-
- - -
-
-
-
-
-
{{ cases_today|default:0 }}
-
Cases Today
-
-
- -
-
-
-
-
-
-
-
-
-
-
{{ cases_in_progress|default:0 }}
-
Cases In Progress
-
-
- -
-
-
-
-
-
-
-
-
-
-
{{ cases_completed_today|default:0 }}
-
Completed Today
-
-
- -
-
-
-
-
-
-
-
-
-
-
{{ emergency_cases_today|default:0 }}
-
Emergency Cases
-
-
- -
-
-
+ +
+
+
+
+
+
{{ cases_today|default:0 }}
+
Cases Today
+
+
+
+
+
+
+
+
+
{{ cases_in_progress|default:0 }}
+
Cases In Progress
+
+
+
+
+
+
+
+
+
+
+
+
{{ cases_completed_today|default:0 }}
+
Completed Today
+
+
+
+
+
+
+
+
+
+
+
+
{{ emergency_cases_today|default:0 }}
+
Emergency Cases
+
+
+
+
+
+
+
-
- -
-
-
-
- Today's Schedule -
-
- - - View All +
+ +
+
+ +
+ {% if todays_schedule %} +
+ + + + + + + + + + + + + + {% for case in todays_schedule %} + + + + + + + + + + {% endfor %} + +
TimePatientProcedureRoomSurgeonStatusActions
+
{{ case.scheduled_start|date:"H:i" }}
+
{{ case.estimated_duration }} min
+
+
{{ case.patient.get_full_name }}
+
{{ case.patient.mrn }}
+
+
{{ case.primary_procedure|truncatechars:30 }}
+ {% if case.case_type == 'EMERGENCY' %} + Emergency + {% elif case.case_type == 'URGENT' %} + Urgent + {% endif %} +
+ {% if case.operating_room %} + {{ case.operating_room.room_number }} + {% else %} + TBD + {% endif %} + + {% if case.primary_surgeon %} +
{{ case.primary_surgeon.get_full_name }}
+ {% else %} + N/A + {% endif %} +
+ + {{ case.get_status_display }} + + +
+ + -
- -
- {% if todays_schedule %} -
- - - - - - - - - - - - - - {% for case in todays_schedule %} - - - - - - - - - - {% endfor %} - -
TimePatientProcedureRoomSurgeonStatusActions
-
{{ case.scheduled_start_time|date:"H:i" }}
-
{{ case.estimated_duration }} min
-
-
{{ case.patient.get_full_name }}
-
{{ case.patient.mrn }}
-
-
{{ case.primary_procedure|truncatechars:30 }}
- {% if case.case_type == 'EMERGENCY' %} - Emergency - {% elif case.case_type == 'URGENT' %} - Urgent - {% endif %} -
- {% if case.operating_room %} - {{ case.operating_room.room_number }} - {% else %} - TBD - {% endif %} - - {% if case.primary_surgeon %} -
{{ case.primary_surgeon.get_full_name }}
- {% else %} - N/A - {% endif %} -
- - {{ case.get_status_display }} - - -
- - - - {% if case.status == 'SCHEDULED' %} - - {% endif %} -
-
-
- {% else %} -
- -

No cases scheduled for today.

- - Schedule a Case - -
- {% endif %} -
+ {% if case.status == 'SCHEDULED' %} + + {% endif %} + +
-
- - -
-
-
-
- Room Status -
- - Manage - -
-
- {% if room_utilization %} - {% for room in room_utilization %} -
-
-
- -
-
-
-
{{ room.room_number }} - {{ room.room_name }}
-
- {{ room.get_status_display }} - {% if room.current_case %} - - {{ room.current_case.patient.get_full_name }} - {% endif %} -
-
{{ room.cases_today|default:0 }} case{{ room.cases_today|pluralize }} today
-
-
- - - -
-
- {% endfor %} - {% else %} -
- -

No operating rooms configured.

- - Add Room - -
- {% endif %} -
+ {% else %} +
+ +

No cases scheduled for today.

+ + Schedule a Case +
+ {% endif %}
+
-
- -
-
-
-
- Recent Activity -
- - View All - -
-
- {% if recent_cases %} - {% for case in recent_cases %} -
-
- -
-
-
{{ case.patient.get_full_name }}
-
{{ case.primary_procedure|truncatechars:40 }}
-
{{ case.scheduled_start_time|date:"M d, H:i" }}
-
-
- - {{ case.get_status_display }} - -
-
- {% endfor %} - {% else %} -
- -

No recent activity.

-
- {% endif %} -
-
+ +
+
+
+

Room Status

+
+ Manage + +
+
+ {% if room_utilization %} + {% for room in room_utilization %} +
+
+
+ +
+
+
+
{{ room.room_number }} - {{ room.room_name }}
+
+ {{ room.get_status_display }} + {% if room.current_case %} + — {{ room.current_case.patient.get_full_name }} + {% endif %} +
+
{{ room.cases_today|default:0 }} case{{ room.cases_today|pluralize }} today
+
+
+ + + +
+
+ {% endfor %} + {% else %} +
+ +

No operating rooms configured.

+ + Add Room + +
+ {% endif %} +
+
+
+
- -
- +
+ +
+
+
+

Recent Activity

+
+ View All + +
+
+ {% if recent_cases %} + {% for case in recent_cases %} +
+
+ +
+
+
{{ case.patient.get_full_name }}
+
{{ case.primary_procedure|truncatechars:40 }}
+
{{ case.scheduled_start|date:"M d, H:i" }}
+
+
+ + {{ case.get_status_display }} + +
+
+ {% endfor %} + {% else %} +
+ +

No recent activity.

+
+ {% endif %} +
+
- -
-
-
-
-
- Performance Metrics -
-
-
-
-
-
{{ performance_metrics.utilization_rate|default:0 }}%
-
OR Utilization Rate
-
-
-
{{ performance_metrics.on_time_starts|default:0 }}%
-
On-Time Starts
-
-
-
{{ performance_metrics.avg_turnover|default:0 }} min
-
Avg Turnover Time
-
-
-
{{ performance_metrics.cancellation_rate|default:0 }}%
-
Cancellation Rate
-
-
-
-
+ +
+
+
+ + +
+
+
+
+

Performance Metrics

+
+ +
+
+
+
+
+
{{ performance_metrics.utilization_rate|default:0 }}%
+
OR Utilization Rate
+
+
+
{{ performance_metrics.on_time_starts|default:0 }}%
+
On-Time Starts
+
+
+
{{ performance_metrics.avg_turnover|default:0 }} min
+
Avg Turnover Time
+
+
+
{{ performance_metrics.cancellation_rate|default:0 }}%
+
Cancellation Rate
+
+
+
+
+
+
+
-{% endblock %} - +{% endblock %} \ No newline at end of file diff --git a/templates/operating_theatre/notes/operative_note_detail.html b/templates/operating_theatre/notes/operative_note_detail.html index 8ecf34cf..022dd41c 100644 --- a/templates/operating_theatre/notes/operative_note_detail.html +++ b/templates/operating_theatre/notes/operative_note_detail.html @@ -166,7 +166,7 @@

@@ -178,14 +178,14 @@ - + PDF - {% if note.status == 'draft' or note.status == 'pending' %} - - Edit - - {% endif %} +{# {% if note.status == 'draft' or note.status == 'pending' %}#} +{# #} +{# Edit#} +{# #} +{# {% endif %}#}

@@ -585,7 +585,7 @@ function signNote() { if (confirm('Sign this operative note? Once signed, the note cannot be edited without creating an amendment.')) { $.ajax({ - url: '{% url "operating_theatre:operative_note_sign" note.pk %}', + url: '{% url "operating_theatre:sign_note" note.pk %}', method: 'POST', data: { 'csrfmiddlewaretoken': '{{ csrf_token }}' diff --git a/templates/operating_theatre/notes/surgical_note_detail.html b/templates/operating_theatre/notes/surgical_note_detail.html index b51f229c..00d912a8 100644 --- a/templates/operating_theatre/notes/surgical_note_detail.html +++ b/templates/operating_theatre/notes/surgical_note_detail.html @@ -217,9 +217,9 @@ Back to List {% if note.status != 'signed' %} - - Edit - +{# #} +{# Edit#} +{# #} {% endif %} - - - Cancel - -
-
-
- - -
-
-
- Help & Guidelines -
-
-
-
-
-

- -

-
-
-
    -
  • General: Multi-purpose surgical procedures
  • -
  • Cardiac: Heart and vascular surgery
  • -
  • Neuro: Brain and spine surgery
  • -
  • Trauma: Emergency trauma cases
  • -
  • Robotic: Robot-assisted procedures
  • -
-
-
-
-
-

- -

-
-
-
    -
  • Temperature: 18-26°C typical range
  • -
  • Humidity: 30-60% recommended
  • -
  • Air Changes: Minimum 20 per hour
  • -
  • Pressure: Positive pressure preferred
  • -
-
-
-
-
-

- -

-
-
-
    -
  • Turnover: 15-45 minutes typical
  • -
  • Cleaning: 30-60 minutes for deep clean
  • -
  • Staffing: Minimum 2 nurses, 1 tech
  • -
  • Max Duration: 8 hours typical limit
  • -
-
-
-
-
-
-
- - - +
+
+
+
+ + {{ form.room_number }} + {% if form.room_number.errors %}
{{ form.room_number.errors.0 }}
{% endif %} +
Unique identifier for the operating room
+
+
+ + {{ form.room_name }} + {% if form.room_name.errors %}
{{ form.room_name.errors.0 }}
{% endif %} +
Descriptive name for the operating room
+
+
+
+ + {{ form.room_type }} + {% if form.room_type.errors %}
{{ form.room_type.errors.0 }}
{% endif %} +
Primary surgical specialty for this room
+
+
+ + {{ form.status }} + {% if form.status.errors %}
{{ form.status.errors.0 }}
{% endif %} +
Current operational status
+
+
+
- + + +
+
+

Physical Characteristics

+
+ +
+
+
+
+
+ + {{ form.floor_number }} + {% if form.floor_number.errors %}
{{ form.floor_number.errors.0 }}
{% endif %} +
+
+ + {{ form.building }} + {% if form.building.errors %}
{{ form.building.errors.0 }}
{% endif %} +
+
+ + {{ form.wing }} + {% if form.wing.errors %}
{{ form.wing.errors.0 }}
{% endif %} +
+
+
+
+ + {{ form.room_size }} + {% if form.room_size.errors %}
{{ form.room_size.errors.0 }}
{% endif %} +
Room area in square meters
+
+
+ + {{ form.ceiling_height }} + {% if form.ceiling_height.errors %}
{{ form.ceiling_height.errors.0 }}
{% endif %} +
Ceiling height in meters
+
+
+
+
+ + +
+
+

Environmental Controls

+
+ +
+
+
+
+
+ +
+
+ + {{ form.temperature_min }} + {% if form.temperature_min.errors %}
{{ form.temperature_min.errors.0 }}
{% endif %} +
+
+ + {{ form.temperature_max }} + {% if form.temperature_max.errors %}
{{ form.temperature_max.errors.0 }}
{% endif %} +
+
+
+
+ +
+
+ + {{ form.humidity_min }} + {% if form.humidity_min.errors %}
{{ form.humidity_min.errors.0 }}
{% endif %} +
+
+ + {{ form.humidity_max }} + {% if form.humidity_max.errors %}
{{ form.humidity_max.errors.0 }}
{% endif %} +
+
+
+
+
+
+ + {{ form.air_changes_per_hour }} + {% if form.air_changes_per_hour.errors %}
{{ form.air_changes_per_hour.errors.0 }}
{% endif %} +
Recommended: 20+ for operating rooms
+
+
+ +
+ {{ form.positive_pressure }} + +
+
Most ORs should maintain positive pressure
+
+
+
+
+ + +
+
+

Surgical Capabilities

+
+ +
+
+
+
+
+
Surgical Approaches
+
+ {{ form.supports_robotic }} + +
+
+ {{ form.supports_laparoscopic }} + +
+
+ {{ form.supports_microscopy }} + +
+
+ {{ form.supports_laser }} + +
+
+
+
Imaging Capabilities
+
+ {{ form.has_c_arm }} + +
+
+ {{ form.has_ct }} + +
+
+ {{ form.has_mri }} + +
+
+ {{ form.has_ultrasound }} + +
+
+ {{ form.has_neuromonitoring }} + +
+
+
+
+
+ + +
+
+

Scheduling Configuration

+
+ +
+
+
+
+
+ + {{ form.max_case_duration }} + {% if form.max_case_duration.errors %}
{{ form.max_case_duration.errors.0 }}
{% endif %} +
Maximum allowed case duration
+
+
+ + {{ form.turnover_time }} + {% if form.turnover_time.errors %}
{{ form.turnover_time.errors.0 }}
{% endif %} +
Standard time between cases
+
+
+ + {{ form.cleaning_time }} + {% if form.cleaning_time.errors %}
{{ form.cleaning_time.errors.0 }}
{% endif %} +
Time required for deep cleaning
+
+
+
+
+ + {{ form.required_nurses }} + {% if form.required_nurses.errors %}
{{ form.required_nurses.errors.0 }}
{% endif %} +
Minimum nursing staff required
+
+
+ + {{ form.required_techs }} + {% if form.required_techs.errors %}
{{ form.required_techs.errors.0 }}
{% endif %} +
Minimum technical staff required
+
+
+
+
+
+ {{ form.is_active }} + +
+
Available for scheduling
+
+
+
+ {{ form.accepts_emergency }} + +
+
Can be used for emergency procedures
+
+
+
+
+ +
+ + +
+ + +
+
+

Actions

+
+ +
+
+
+
+ + + + Cancel + +
+
+
+ + +
+
+

Help & Guidelines

+
+ +
+
+
+
+
+

+ +

+
+
+
    +
  • General: Multi-purpose surgical procedures
  • +
  • Cardiac: Heart and vascular surgery
  • +
  • Neuro: Brain and spine surgery
  • +
  • Trauma: Emergency trauma cases
  • +
  • Robotic: Robot-assisted procedures
  • +
+
+
+
+
+

+ +

+
+
+
    +
  • Temperature: 18–26°C typical range
  • +
  • Humidity: 30–60% recommended
  • +
  • Air Changes: Minimum 20 per hour
  • +
  • Pressure: Positive pressure preferred
  • +
+
+
+
+
+

+ +

+
+
+
    +
  • Turnover: 15–45 minutes typical
  • +
  • Cleaning: 30–60 minutes for deep clean
  • +
  • Staffing: Minimum 2 nurses, 1 tech
  • +
  • Max Duration: 8 hours typical limit
  • +
+
+
+
+
+
+
+ + + + +
+
+
-{% endblock %} - +{% endblock %} \ No newline at end of file diff --git a/templates/operating_theatre/surgical_case_list.html b/templates/operating_theatre/surgical_case_list.html deleted file mode 100644 index 6f3ff6f5..00000000 --- a/templates/operating_theatre/surgical_case_list.html +++ /dev/null @@ -1,305 +0,0 @@ -{% extends 'base.html' %} -{% load static %} - -{% block title %}Surgical Cases{% endblock %} - -{% block content %} -
-
-
-
-

Surgical Cases

- - New Case - -
-
-
- - -
-
-
-
-
-
- -
-
- -
-
- -
-
- -
-
- - - Clear - -
-
-
-
-
-
- - -
-
-
-
- {% if surgical_cases %} -
- - - - - - - - - - - - - - - {% for case in surgical_cases %} - - - - - - - - - - - {% endfor %} - -
PatientProcedureSurgeonRoomScheduledPriorityStatusActions
- - {{ case.patient.first_name }} {{ case.patient.last_name }} - -
MRN: {{ case.patient.mrn }} -
- {{ case.procedure_name }} - {% if case.procedure_code %} -
{{ case.procedure_code }} - {% endif %} -
- {% if case.primary_surgeon %} - {{ case.primary_surgeon.first_name }} {{ case.primary_surgeon.last_name }} - {% else %} - N/A - {% endif %} - - {% if case.operating_room %} - {{ case.operating_room.room_number }} - {% else %} - TBD - {% endif %} - - {{ case.scheduled_start_time|date:"M d, Y H:i" }} - {% if case.estimated_duration_minutes %} -
Est: {{ case.estimated_duration_minutes }}min - {% endif %} -
- - {{ case.get_priority_display }} - - - - {{ case.get_status_display }} - - -
- - - - {% if case.status in 'SCHEDULED,IN_PROGRESS' %} - - - - {% endif %} - {% if case.status == 'SCHEDULED' %} - - {% elif case.status == 'IN_PROGRESS' %} - - {% endif %} -
-
-
- - - {% if is_paginated %} - - {% endif %} - {% else %} -
- -
No surgical cases found
-

Start by creating your first surgical case.

- - Create First Case - -
- {% endif %} -
-
-
-
-
- - -{% for case in surgical_cases %} -{% if case.status == 'SCHEDULED' %} - -{% endif %} -{% endfor %} - - -{% for case in surgical_cases %} -{% if case.status == 'IN_PROGRESS' %} - -{% endif %} -{% endfor %} -{% endblock %} - diff --git a/templates/patients/.DS_Store b/templates/patients/.DS_Store new file mode 100644 index 00000000..78b0b7b8 Binary files /dev/null and b/templates/patients/.DS_Store differ diff --git a/templates/patients/claims/insurance_claim_detail.html b/templates/patients/claims/insurance_claim_detail.html new file mode 100644 index 00000000..10340748 --- /dev/null +++ b/templates/patients/claims/insurance_claim_detail.html @@ -0,0 +1,684 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Claim {{ claim.claim_number }} - Details{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} +
+ + + + +
+
+
+

+ + Claim {{ claim.claim_number }} +

+
+ {% if claim.status == 'DRAFT' %} + {{ claim.get_status_display }} + {% elif claim.status == 'SUBMITTED' %} + {{ claim.get_status_display }} + {% elif claim.status == 'UNDER_REVIEW' %} + {{ claim.get_status_display }} + {% elif claim.status == 'APPROVED' or claim.status == 'PARTIALLY_APPROVED' %} + {{ claim.get_status_display }} + {% elif claim.status == 'DENIED' %} + {{ claim.get_status_display }} + {% elif claim.status == 'PAID' %} + {{ claim.get_status_display }} + {% else %} + {{ claim.get_status_display }} + {% endif %} + + + {{ claim.get_priority_display }} Priority + + {{ claim.get_claim_type_display }} +
+

+ {{ claim.patient.get_full_name }} ({{ claim.patient.mrn }}) + | + Service Date: {{ claim.service_date|date:"F d, Y" }} +

+
+
+ +
+
+
+ +
+ +
+ +
+
+
+ Patient Information +
+
+
+
+
+
+ +
{{ claim.patient.get_full_name }}
+
+
+ +
{{ claim.patient.mrn }}
+
+
+ +
{{ claim.patient.date_of_birth|date:"F d, Y" }}
+
+
+
+
+ +
{{ claim.saudi_id_number|default:"Not provided" }}
+
+
+ +
{{ claim.patient.phone_number|default:"Not provided" }}
+
+
+ +
{{ claim.patient.email|default:"Not provided" }}
+
+
+
+
+
+ + +
+
+
+ Insurance Information +
+
+
+
+
+
+ +
{{ claim.insurance_info.insurance_company }}
+
+
+ +
{{ claim.insurance_info.policy_number }}
+
+
+ +
{{ claim.insurance_info.get_plan_type_display|default:"Not specified" }}
+
+
+
+
+ +
{{ claim.insurance_card_number|default:"Not provided" }}
+
+
+ +
{{ claim.authorization_number|default:"Not required" }}
+
+
+ +
{{ claim.insurance_info.get_insurance_type_display }}
+
+
+
+
+
+ + +
+
+
+ Service Information +
+
+
+
+
+
+ +
{{ claim.service_provider }}
+
+
+ +
{{ claim.service_provider_license|default:"Not provided" }}
+
+
+ +
{{ claim.service_date|date:"F d, Y" }}
+
+
+
+
+ +
{{ claim.facility_name|default:"Not specified" }}
+
+
+ +
{{ claim.facility_license|default:"Not provided" }}
+
+
+
+
+
+ + +
+
+
+ Medical Information +
+
+
+
+ +
{{ claim.primary_diagnosis_code }}
+
{{ claim.primary_diagnosis_description }}
+
+ + {% if claim.secondary_diagnosis_codes %} +
+ + {% for diagnosis in claim.secondary_diagnosis_codes %} +
+ {{ diagnosis.code }} - {{ diagnosis.description }} +
+ {% endfor %} +
+ {% endif %} + + {% if claim.procedure_codes %} +
+ + {% for procedure in claim.procedure_codes %} +
+ {{ procedure.code }} - {{ procedure.description }} +
+ {% endfor %} +
+ {% endif %} + + {% if claim.notes %} +
+ +
{{ claim.notes|linebreaks }}
+
+ {% endif %} +
+
+ + + {% if documents %} +
+
+
+ Attached Documents ({{ documents.count }}) +
+
+
+ {% for document in documents %} +
+
+
+
+ {% if document.mime_type == 'application/pdf' %} + + {% elif 'image' in document.mime_type %} + + {% elif 'word' in document.mime_type %} + + {% else %} + + {% endif %} +
+
+
{{ document.title }}
+ + {{ document.get_document_type_display }} • + {{ document.file_size|filesizeformat }} • + {{ document.uploaded_at|date:"M d, Y g:i A" }} + + {% if document.description %} +
{{ document.description }}
+ {% endif %} +
+
+
+ + +
+
+
+ {% endfor %} +
+
+ {% endif %} +
+ + +
+ +
+
+ Financial Summary +
+
+
+
{{ claim.billed_amount|floatformat:2 }}
+
Billed Amount (SAR)
+
+
+
{{ claim.approved_amount|floatformat:2 }}
+
Approved Amount (SAR)
+
+
+
+
+
+
{{ claim.paid_amount|floatformat:2 }}
+
Paid Amount (SAR)
+
+
+
{{ claim.patient_responsibility|floatformat:2 }}
+
Patient Responsibility (SAR)
+
+
+ + +
+
+ Approval Rate + {{ approval_percentage|floatformat:1 }}% +
+
+
+
+
+
+ + +
+
+
+ Status History +
+
+
+
+ {% for history in status_history %} +
+
+
+
+ {% if history.from_status %} + {{ history.get_from_status_display }} → {{ history.get_to_status_display }} + {% else %} + {{ history.get_to_status_display }} + {% endif %} +
+ {% if history.reason %} +
{{ history.reason }}
+ {% endif %} + {% if history.changed_by %} +
+ {{ history.changed_by.get_full_name|default:history.changed_by.username }} +
+ {% endif %} +
+ {{ history.changed_at|date:"M d, g:i A" }} +
+
+ {% empty %} +
+ +
No status history available
+
+ {% endfor %} +
+
+
+ + +
+
+
+ Quick Actions +
+
+
+
+ {% if claim.status == 'DRAFT' %} + + {% elif claim.status == 'SUBMITTED' %} + + {% elif claim.status == 'UNDER_REVIEW' %} + + + {% elif claim.status == 'APPROVED' %} + + {% endif %} + + + +
+ + + View Patient + + + + Back to Claims + +
+
+
+
+
+
+ + + +{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/patients/claims/insurance_claim_form.html b/templates/patients/claims/insurance_claim_form.html new file mode 100644 index 00000000..c758a5a5 --- /dev/null +++ b/templates/patients/claims/insurance_claim_form.html @@ -0,0 +1,729 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{% if claim %}Edit Claim {{ claim.claim_number }}{% else %}New Insurance Claim{% endif %}{% endblock %} + +{% block extra_css %} + + +{% endblock %} + +{% block content %} +
+ +
+ +
+ + + + + +
+
+

+ + {% if claim %}Edit Claim {{ claim.claim_number }}{% else %}New Insurance Claim{% endif %} +

+

+ {% if claim %}Update the insurance claim details{% else %}Create a new insurance claim for patient services{% endif %} +

+
+
+ + Cancel + + +
+
+ +
+ {% csrf_token %} + + +
+

+ Basic Information +

+
+
+
+
+ + +
+
Select the patient for this claim
+
+ +
+
+ + +
+
Select the insurance policy to use for this claim
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ + Normal priority claim +
+
+ +
+
+ + +
+
Date when the service was provided
+
+
+
+
+ + +
+

+ Service Provider Information +

+
+
+
+
+ + +
+
Name of the healthcare provider
+
+ +
+
+ + +
+
Saudi Medical License number (optional)
+
+ +
+
+ + +
+
Name of the healthcare facility
+
+ +
+
+ + +
+
MOH facility license number (optional)
+
+
+
+
+ + +
+

+ Medical Information +

+
+
+
+
+ + +
+
ICD-10 diagnosis code
+
+ +
+
+ + +
+
Description of the primary diagnosis
+
+
+ + +
+
+
Secondary Diagnoses
+ +
+
+ {% if claim and claim.secondary_diagnosis_codes %} + {% for diagnosis in claim.secondary_diagnosis_codes %} +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ {% endfor %} + {% endif %} +
+
+ + +
+
+
Procedures
+ +
+
+ {% if claim and claim.procedure_codes %} + {% for procedure in claim.procedure_codes %} +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ {% endfor %} + {% endif %} +
+
+
+
+ + +
+

+ Financial Information +

+
+
+
+
+ + +
+
Total amount billed for services
+
+ +
+
+ + +
+
Required for certain procedures (optional)
+
+
+
+
+ + +
+

+ Saudi-specific Information +

+
+
+
+
+ + +
+
10-digit Saudi National ID or Iqama number
+
+ +
+
+ + +
+
Insurance card number from physical card
+
+
+
+
+ + +
+

+ Additional Information +

+
+
+ + +
+
Additional notes or comments about this claim
+
+
+ + +
+ +
+ + +
+
+
+
+ + + + +{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/patients/claims/insurance_claims_list.html b/templates/patients/claims/insurance_claims_list.html new file mode 100644 index 00000000..8cdc6540 --- /dev/null +++ b/templates/patients/claims/insurance_claims_list.html @@ -0,0 +1,615 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Insurance Claims Management{% endblock %} + +{% block extra_css %} + + + + +{% endblock %} + +{% block content %} +
+ +
+
+ +

Insurance Claims Management

+
+ +
+ + +
+
+
+
+
+ +
+
+
Total Claims
+
{{ stats.total_claims|default:0 }}
+
+
+
+
+
+
+
+
+ +
+
+
Total Billed
+
{{ stats.total_billed|floatformat:0|default:0 }} SAR
+
+
+
+
+
+
+
+
+ +
+
+
Total Approved
+
{{ stats.total_approved|floatformat:0|default:0 }} SAR
+
+
+
+
+
+
+
+
+ +
+
+
Average Claim
+
{{ stats.avg_amount|floatformat:0|default:0 }} SAR
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + +
+
+
+
+ + +
+
+
+ Selected: 0 claims +
+
+ + + + + +
+
+
+ + +
+
+
+ + + + + + + + + + + + + + + + + + {% for claim in claims %} + + + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
+ + Claim NumberPatientTypeStatusPriorityService DateProviderBilled AmountApproved AmountActions
+ + + + {{ claim.claim_number }} + + +
+
+ +
+
+
{{ claim.patient.get_full_name }}
+ {{ claim.patient.mrn }} +
+
+
+ {{ claim.get_claim_type_display }} + + {% if claim.status == 'DRAFT' %} + {{ claim.get_status_display }} + {% elif claim.status == 'SUBMITTED' %} + {{ claim.get_status_display }} + {% elif claim.status == 'UNDER_REVIEW' %} + {{ claim.get_status_display }} + {% elif claim.status == 'APPROVED' or claim.status == 'PARTIALLY_APPROVED' %} + {{ claim.get_status_display }} + {% elif claim.status == 'DENIED' %} + {{ claim.get_status_display }} + {% elif claim.status == 'PAID' %} + {{ claim.get_status_display }} + {% else %} + {{ claim.get_status_display }} + {% endif %} + + + {{ claim.get_priority_display }} + {{ claim.service_date|date:"M d, Y" }} +
+
{{ claim.service_provider|truncatechars:30 }}
+ {{ claim.facility_name|truncatechars:25 }} +
+
+ {{ claim.billed_amount|floatformat:2 }} SAR + + {{ claim.approved_amount|floatformat:2 }} SAR + +
+ + + + + + + + + + +
+
+
+ +
No claims found
+

No insurance claims match your current filters.

+ + Create First Claim + +
+
+
+ + + {% if claims.has_other_pages %} + + {% endif %} +
+
+
+ + + +{% endblock %} + +{% block extra_js %} + + + + + + + +{% endblock %} + diff --git a/templates/patients/consent_management.html b/templates/patients/consent_management.html index e585120a..7c54f30f 100644 --- a/templates/patients/consent_management.html +++ b/templates/patients/consent_management.html @@ -56,7 +56,7 @@ - {% for consent in consent_forms %} + {% for consent in consents %} {{ consent.patient.get_full_name }}
@@ -118,33 +118,7 @@ {% if is_paginated %} - + {% include 'partial/pagination.html' %} {% endif %}
diff --git a/templates/patients/consents/consent_form_detail.html b/templates/patients/consents/consent_form_detail.html index 525802a7..065ce297 100644 --- a/templates/patients/consents/consent_form_detail.html +++ b/templates/patients/consents/consent_form_detail.html @@ -8,7 +8,7 @@ @@ -152,9 +152,9 @@ Archive Form {% endif %} - - Delete Form - +{# #} +{# Delete Form#} +{# #}
@@ -165,67 +165,67 @@ {% block js %} {% endblock %} diff --git a/templates/patients/consents/consent_form_form.html b/templates/patients/consents/consent_form_form.html index 97e4b142..753c1e5a 100644 --- a/templates/patients/consents/consent_form_form.html +++ b/templates/patients/consents/consent_form_form.html @@ -4,7 +4,7 @@ {% block title %}{% if object %}Edit{% else %}Create{% endif %} Consent Form - Patients{% endblock %} {% block css %} - + {% endblock %} {% block content %} @@ -12,7 +12,7 @@
@@ -594,201 +594,201 @@ function updateBulkActions() { } } -function createForm() { - var formData = { - title: $('#form-title').val(), - category: $('#form-category').val(), - description: $('#form-description').val(), - is_required: $('#form-required').is(':checked'), - has_expiration: $('#form-expiration').is(':checked'), - template_source: $('input[name="template-source"]:checked').val() - }; - - if (!formData.title || !formData.category || !formData.description) { - toastr.error('Please fill in all required fields'); - return; - } - - $.ajax({ - url: '{% url "patients:consent_form_create" %}', - method: 'POST', - data: formData, - success: function(response) { - $('#createFormModal').modal('hide'); - toastr.success('Consent form created successfully'); - setTimeout(function() { - window.location.href = response.redirect_url; - }, 1000); - }, - error: function() { - toastr.error('Failed to create consent form'); - } - }); -} +{#function createForm() {#} +{# var formData = {#} +{# title: $('#form-title').val(),#} +{# category: $('#form-category').val(),#} +{# description: $('#form-description').val(),#} +{# is_required: $('#form-required').is(':checked'),#} +{# has_expiration: $('#form-expiration').is(':checked'),#} +{# template_source: $('input[name="template-source"]:checked').val()#} +{# };#} +{# #} +{# if (!formData.title || !formData.category || !formData.description) {#} +{# toastr.error('Please fill in all required fields');#} +{# return;#} +{# }#} +{# #} +{# $.ajax({#} +{# url: '{% url "patients:co" %}',#} +{# method: 'POST',#} +{# data: formData,#} +{# success: function(response) {#} +{# $('#createFormModal').modal('hide');#} +{# toastr.success('Consent form created successfully');#} +{# setTimeout(function() {#} +{# window.location.href = response.redirect_url;#} +{# }, 1000);#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to create consent form');#} +{# }#} +{# });#} +{# }#} -function previewForm(formId) { - $.ajax({ - url: '{% url "patients:consent_form_preview" 0 %}'.replace('0', formId), - method: 'GET', - success: function(response) { - $('#preview-content').html(response.html); - $('#previewModal').modal('show'); - }, - error: function() { - toastr.error('Failed to load form preview'); - } - }); -} +{#function previewForm(formId) {#} +{# $.ajax({#} +{# url: '{% url "patients:consent_form_preview" 0 %}'.replace('0', formId),#} +{# method: 'GET',#} +{# success: function(response) {#} +{# $('#preview-content').html(response.html);#} +{# $('#previewModal').modal('show');#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to load form preview');#} +{# }#} +{# });#} +{# }#} -function activateForm(formId) { - if (confirm('Activate this consent form? It will become available for patient signatures.')) { - $.ajax({ - url: '{% url "patients:consent_form_activate" 0 %}'.replace('0', formId), - method: 'POST', - success: function() { - toastr.success('Form activated successfully'); - refreshData(); - }, - error: function() { - toastr.error('Failed to activate form'); - } - }); - } -} +{#function activateForm(formId) {#} +{# if (confirm('Activate this consent form? It will become available for patient signatures.')) {#} +{# $.ajax({#} +{# url: '{% url "patients:consent_form_activate" 0 %}'.replace('0', formId),#} +{# method: 'POST',#} +{# success: function() {#} +{# toastr.success('Form activated successfully');#} +{# refreshData();#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to activate form');#} +{# }#} +{# });#} +{# }#} +{# }#} -function archiveForm(formId) { - if (confirm('Archive this consent form? It will no longer be available for new signatures.')) { - $.ajax({ - url: '{% url "patients:consent_form_archive" 0 %}'.replace('0', formId), - method: 'POST', - success: function() { - toastr.success('Form archived successfully'); - refreshData(); - }, - error: function() { - toastr.error('Failed to archive form'); - } - }); - } -} +{#function archiveForm(formId) {#} +{# if (confirm('Archive this consent form? It will no longer be available for new signatures.')) {#} +{# $.ajax({#} +{# url: '{% url "patients:consent_form_archive" 0 %}'.replace('0', formId),#} +{# method: 'POST',#} +{# success: function() {#} +{# toastr.success('Form archived successfully');#} +{# refreshData();#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to archive form');#} +{# }#} +{# });#} +{# }#} +{# }#} -function duplicateForm(formId) { - if (confirm('Create a copy of this consent form?')) { - $.ajax({ - url: '{% url "patients:consent_form_duplicate" 0 %}'.replace('0', formId), - method: 'POST', - success: function(response) { - toastr.success('Form duplicated successfully'); - setTimeout(function() { - window.location.href = response.redirect_url; - }, 1000); - }, - error: function() { - toastr.error('Failed to duplicate form'); - } - }); - } -} +{#function duplicateForm(formId) {#} +{# if (confirm('Create a copy of this consent form?')) {#} +{# $.ajax({#} +{# url: '{% url "patients:consent_form_duplicate" 0 %}'.replace('0', formId),#} +{# method: 'POST',#} +{# success: function(response) {#} +{# toastr.success('Form duplicated successfully');#} +{# setTimeout(function() {#} +{# window.location.href = response.redirect_url;#} +{# }, 1000);#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to duplicate form');#} +{# }#} +{# });#} +{# }#} +{# }#} -function exportForm(formId) { - window.open('{% url "patients:consent_form_export" 0 %}'.replace('0', formId), '_blank'); -} - -function exportForms() { - var selectedForms = $('.form-checkbox:checked').map(function() { - return $(this).val(); - }).get(); - - if (selectedForms.length === 0) { - toastr.warning('Please select forms to export'); - return; - } - - var url = '{% url "patients:consent_forms_export" %}?forms=' + selectedForms.join(','); - window.open(url, '_blank'); -} - -function bulkActivate() { - var selectedForms = $('.form-checkbox:checked').map(function() { - return $(this).val(); - }).get(); - - if (selectedForms.length === 0) { - toastr.warning('Please select forms to activate'); - return; - } - - if (confirm('Activate ' + selectedForms.length + ' selected form(s)?')) { - $.ajax({ - url: '{% url "patients:consent_forms_bulk_activate" %}', - method: 'POST', - data: { forms: selectedForms }, - success: function() { - toastr.success('Forms activated successfully'); - refreshData(); - }, - error: function() { - toastr.error('Failed to activate forms'); - } - }); - } -} - -function bulkArchive() { - var selectedForms = $('.form-checkbox:checked').map(function() { - return $(this).val(); - }).get(); - - if (selectedForms.length === 0) { - toastr.warning('Please select forms to archive'); - return; - } - - if (confirm('Archive ' + selectedForms.length + ' selected form(s)?')) { - $.ajax({ - url: '{% url "patients:consent_forms_bulk_archive" %}', - method: 'POST', - data: { forms: selectedForms }, - success: function() { - toastr.success('Forms archived successfully'); - refreshData(); - }, - error: function() { - toastr.error('Failed to archive forms'); - } - }); - } -} - -function bulkExport() { - exportForms(); -} - -function bulkDelete() { - var selectedForms = $('.form-checkbox:checked').map(function() { - return $(this).val(); - }).get(); - - if (selectedForms.length === 0) { - toastr.warning('Please select forms to delete'); - return; - } - - if (confirm('Delete ' + selectedForms.length + ' selected form(s)? This action cannot be undone.')) { - $.ajax({ - url: '{% url "patients:consent_forms_bulk_delete" %}', - method: 'POST', - data: { forms: selectedForms }, - success: function() { - toastr.success('Forms deleted successfully'); - refreshData(); - }, - error: function() { - toastr.error('Failed to delete forms'); - } - }); - } -} +{#function exportForm(formId) {#} +{# window.open('{% url "patients:consent_form_export" 0 %}'.replace('0', formId), '_blank');#} +{# }#} +{##} +{#function exportForms() {#} +{# var selectedForms = $('.form-checkbox:checked').map(function() {#} +{# return $(this).val();#} +{# }).get();#} +{# #} +{# if (selectedForms.length === 0) {#} +{# toastr.warning('Please select forms to export');#} +{# return;#} +{# }#} +{# #} +{# var url = '{% url "patients:consent_forms_export" %}?forms=' + selectedForms.join(',');#} +{# window.open(url, '_blank');#} +{# }#} +{##} +{#function bulkActivate() {#} +{# var selectedForms = $('.form-checkbox:checked').map(function() {#} +{# return $(this).val();#} +{# }).get();#} +{# #} +{# if (selectedForms.length === 0) {#} +{# toastr.warning('Please select forms to activate');#} +{# return;#} +{# }#} +{# #} +{# if (confirm('Activate ' + selectedForms.length + ' selected form(s)?')) {#} +{# $.ajax({#} +{# url: '{% url "patients:consent_forms_bulk_activate" %}',#} +{# method: 'POST',#} +{# data: { forms: selectedForms },#} +{# success: function() {#} +{# toastr.success('Forms activated successfully');#} +{# refreshData();#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to activate forms');#} +{# }#} +{# });#} +{# }#} +{# }#} +{##} +{#function bulkArchive() {#} +{# var selectedForms = $('.form-checkbox:checked').map(function() {#} +{# return $(this).val();#} +{# }).get();#} +{# #} +{# if (selectedForms.length === 0) {#} +{# toastr.warning('Please select forms to archive');#} +{# return;#} +{# }#} +{# #} +{# if (confirm('Archive ' + selectedForms.length + ' selected form(s)?')) {#} +{# $.ajax({#} +{# url: '{% url "patients:consent_forms_bulk_archive" %}',#} +{# method: 'POST',#} +{# data: { forms: selectedForms },#} +{# success: function() {#} +{# toastr.success('Forms archived successfully');#} +{# refreshData();#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to archive forms');#} +{# }#} +{# });#} +{# }#} +{# }#} +{##} +{#function bulkExport() {#} +{# exportForms();#} +{# }#} +{##} +{#function bulkDelete() {#} +{# var selectedForms = $('.form-checkbox:checked').map(function() {#} +{# return $(this).val();#} +{# }).get();#} +{# #} +{# if (selectedForms.length === 0) {#} +{# toastr.warning('Please select forms to delete');#} +{# return;#} +{# }#} +{# #} +{# if (confirm('Delete ' + selectedForms.length + ' selected form(s)? This action cannot be undone.')) {#} +{# $.ajax({#} +{# url: '{% url "patients:consent_forms_bulk_delete" %}',#} +{# method: 'POST',#} +{# data: { forms: selectedForms },#} +{# success: function() {#} +{# toastr.success('Forms deleted successfully');#} +{# refreshData();#} +{# },#} +{# error: function() {#} +{# toastr.error('Failed to delete forms');#} +{# }#} +{# });#} +{# }#} +{# }#} function printPreview() { var printContent = $('#preview-content').html(); diff --git a/templates/patients/consents/consent_template_confirm_delete.html b/templates/patients/consents/consent_template_confirm_delete.html new file mode 100644 index 00000000..73ea6bcc --- /dev/null +++ b/templates/patients/consents/consent_template_confirm_delete.html @@ -0,0 +1,488 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Delete Consent Template - {{ template.name }}{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} +
+ +
+
+ +
+
+ +
+ +
+
+ +
+

Delete Consent Template

+

This action cannot be undone. Please review the impact before proceeding.

+
+ + +
+
+ Template Details +
+
+
+ +
{{ template.name }}
+
+
+ +
{{ template.get_category_display }}
+
+
+ +
{{ template.version|default:"1.0" }}
+
+
+ +
+ {% if template.status == 'active' %} + Active + {% elif template.status == 'draft' %} + Draft + {% elif template.status == 'archived' %} + Archived + {% else %} + {{ template.get_status_display }} + {% endif %} +
+
+
+ +
{{ template.description|default:"No description available" }}
+
+
+
+ + +
+
+
{{ usage_stats.total_usage|default:0 }}
+
Total Uses
+
+
+
{{ usage_stats.active_consents|default:0 }}
+
Active Consents
+
+
+
{{ usage_stats.pending_consents|default:0 }}
+
Pending Consents
+
+
+
{{ usage_stats.last_used|timesince|default:"Never" }}
+
Last Used
+
+
+ + +
+
+ Impact Analysis +
+
+
+
+ +
+
{{ impact.affected_patients|default:0 }} Patients
+ Will lose access to this template +
+
+
+
+
+ +
+
{{ impact.dependent_consents|default:0 }} Consents
+ Currently using this template +
+
+
+
+
+ +
+
{{ impact.scheduled_procedures|default:0 }} Procedures
+ Scheduled with this template +
+
+
+
+
+ +
+
{{ impact.template_references|default:0 }} References
+ From other templates +
+
+
+
+
+ + +
+
+ Consider These Alternatives +
+
+
+
+ +
+
Archive Template
+ Hide from active use but preserve data +
+
+
+
+
+ +
+
Modify Template
+ Update content instead of deleting +
+
+
+
+
+ +
+
Create New Version
+ Duplicate and modify for future use +
+
+
+
+
+ +
+
Export Template
+ Save a backup before deletion +
+
+
+
+ +
+ + +
+
+ Danger Zone +
+

+ Warning: Deleting this template will permanently remove it from the system. + This action affects: +

+
    +
  • All historical records using this template
  • +
  • Audit trails and compliance documentation
  • +
  • Related consent forms and signatures
  • +
  • Template usage analytics and reports
  • +
+
+ + This action cannot be undone! Consider archiving instead of permanent deletion. +
+
+ + +
+
+ Deletion Confirmation Steps +
+ +
+
1
+
+
Review Impact Analysis
+ Understand what will be affected by this deletion +
+
+ +
+
+ +
+
2
+
+
Backup Template (Recommended)
+ Export template before deletion +
+
+ +
+
+ +
+
3
+
+
Type Confirmation
+ Type "DELETE {{ template.name }}" to confirm +
+
+
+ + +
+ {% csrf_token %} +
+ + +
+ This confirmation is case-sensitive and must match exactly. +
+
+ +
+
+ + +
+
+ +
+ + +
+ + +
+ +
+ +
+
+
+
+
+{% endblock %} + +{% block extra_js %} + +{% endblock %} + diff --git a/templates/patients/consents/consent_template_detail.html b/templates/patients/consents/consent_template_detail.html new file mode 100644 index 00000000..2564d361 --- /dev/null +++ b/templates/patients/consents/consent_template_detail.html @@ -0,0 +1,586 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{{ template.name }} - Consent Template{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} +
+ +
+
+ +
+
+ +
+ +
+ +
+
+
+

+ {{ template.name }} +

+

{{ template.description }}

+
+ + Version {{ template.version|default:"1.0" }} + + + {{ template.get_category_display }} + + + {{ template.get_language_display }} + +
+
+
+ {% if template.status == 'active' %} + + Active + + {% elif template.status == 'draft' %} + + Draft + + {% elif template.status == 'archived' %} + + Archived + + {% else %} + + {{ template.get_status_display }} + + {% endif %} +
+
+
+ + +
+
+
+ +
+

{{ template.usage_count|default:0 }}

+ Times Used +
+
+
+ +
+

{{ template.last_used|date:"M d"|default:"Never" }}

+ Last Used +
+
+
+ +
+

{{ template.rating|floatformat:1|default:"N/A" }}

+ Average Rating +
+
+
+ +
+

{{ template.avg_completion_time|default:"N/A" }}

+ Avg. Completion +
+
+ + +
+
+
+ Template Preview +
+
+ + +
+
+ +
+
+

{{ template.name }}

+
+ {{ template.content|safe|default:"

No content available for preview.

" }} +
+
+ + {% if template.variables %} +
+
+ Template Variables +
+

The following variables will be replaced when the template is used:

+ {% for variable in template.variables %} + {{ variable }} + {% endfor %} +
+ {% endif %} +
+ +
+
{{ template.raw_content|default:"No raw content available." }}
+
+
+ + +
+
+ Recent Usage History +
+
+ {% for usage in recent_usage %} +
+
+
+
{{ usage.patient_name }}
+

{{ usage.description }}

+ + {{ usage.created_by }} + {{ usage.created_at|timesince }} ago + +
+ {{ usage.status }} +
+
+ {% empty %} +
+ +
No Usage History
+

This template hasn't been used yet.

+
+ {% endfor %} +
+
+
+ + +
+ +
+
+
+
+ Actions +
+
+
+
+ + Edit Template + + + + +
+ + +
+
+
+
+ + +
+
+
+ Template Information +
+
+
+
+
+
+ +
{{ template.created_by|default:"System" }}
+
+
+ +
{{ template.created_at|date:"M d, Y" }}
+
+
+ +
{{ template.updated_at|date:"M d, Y" }}
+
+
+ +
{{ template.file_size|filesizeformat|default:"N/A" }}
+
+
+ +
{{ template.checksum|truncatechars:8|default:"N/A" }}
+
+ {% if template.tags %} +
+ +
+ {% for tag in template.tags %} + {{ tag }} + {% endfor %} +
+
+ {% endif %} +
+
+
+
+ + +
+
+
+ Usage Analytics +
+
+
+ +
+
+
+
{{ analytics.this_week|default:0 }}
+ This Week +
+
+
{{ analytics.this_month|default:0 }}
+ This Month +
+
+
{{ analytics.total|default:0 }}
+ All Time +
+
+
+
+
+ + + {% if related_templates %} +
+
+
+ Related Templates +
+
+
+ {% for related in related_templates %} +
+
+ +
+ +
+ {{ related.usage_count|default:0 }} +
+
+ {% endfor %} +
+
+ {% endif %} +
+
+
+
+{% endblock %} + +{% block extra_js %} + + + +{% endblock %} + diff --git a/templates/patients/consents/consent_template_form.html b/templates/patients/consents/consent_template_form.html new file mode 100644 index 00000000..78b12f5d --- /dev/null +++ b/templates/patients/consents/consent_template_form.html @@ -0,0 +1,679 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}{% if template %}Edit{% else %}Create{% endif %} Consent Template{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} +
+ +
+
+ +

+ + {% if template %}Edit Template{% else %}Create New Template{% endif %} +

+

{% if template %}Modify the existing consent template{% else %}Create a new consent form template for patient care{% endif %}

+
+
+
+ + + + Cancel + +
+
+
+ + +
+ Saved +
+ +
+ {% csrf_token %} + + + + +
+ +
+
+
+
+ Template Information +
+
+ +
+
+ + +
Enter a descriptive name for this consent template
+
+
+ + +
Template version number
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
Add relevant tags to help organize and search templates
+
+
+
+
+ + +
+
+
+
+ Template Content +
+
+ + +
+
+ Quick Insert +
+ + + + + + + + +
+ +
+
+ + +
Use the rich text editor to create your consent form content. Insert variables using the buttons above.
+
+
+
+
+ + +
+
+
+
+ Template Variables +
+
+ +
+
+
Variable Manager
+ +
+ +
+ +
+ +
+
Available Variables:
+
+ {{patient_name}} + {{patient_id}} + {{date}} + {{doctor_name}} + {{procedure_name}} + {{hospital_name}} + {{signature_date}} + {{witness_name}} +
+
+
+
+
+ + +
+
+
+
+ Template Settings +
+
+ +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
Leave blank for no expiry
+
+
+ + +
Days before expiry to send reminder
+
+
+ + +
+
+
+
+
+ + +
+
+
+
+ Template Preview +
+
+ +
+
+ + + + + + +
+ +
+ +
+
+ +
Template Preview
+

Click "Update Preview" to see how your template will look

+
+
+
+
+
+ + +
+
+
+ + +
+
+ + Cancel + + +
+
+
+
+
+{% endblock %} + +{% block extra_js %} + + + + +{% endblock %} + diff --git a/templates/patients/consents/consent_template_list.html b/templates/patients/consents/consent_template_list.html new file mode 100644 index 00000000..ce641e50 --- /dev/null +++ b/templates/patients/consents/consent_template_list.html @@ -0,0 +1,708 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Consent Templates Management{% endblock %} + +{% block extra_css %} + + + +{% endblock %} + +{% block content %} +
+ +
+
+ +

+ Consent Templates Management +

+

Manage and organize consent form templates for patient care

+
+
+
+ + + New Template + +
+
+
+ + +
+
+
+
+
+ +
+
+
Total Templates
+
{{ stats.total_templates|default:0 }}
+
+
+
+
+
+
+
+
+ +
+
+
Active Templates
+
{{ stats.active_templates|default:0 }}
+
+
+
+
+
+
+
+
+ +
+
+
Total Usage
+
{{ stats.total_usage|default:0 }}
+
+
+
+
+
+
+
+
+ +
+
+
This Week
+
{{ stats.weekly_usage|default:0 }}
+
+
+
+
+
+ + +
+
+
+ +
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+
+
+ + +
+
+ Showing {{ templates.count|default:0 }} templates +
+
+ + + + +
+
+ + +
+ {% for template in templates %} +
+
+ {% if template.status == 'active' %} + Active + {% elif template.status == 'draft' %} + Draft + {% elif template.status == 'archived' %} + Archived + {% else %} + {{ template.get_status_display }} + {% endif %} +
+ +
+
+ + {{ template.name }} +
+
+ {{ template.get_category_display }} + + {{ template.get_language_display }} + +
+
+ +
+
+

{{ template.description|truncatewords:20 }}

+
+ +
+
+
+
{{ template.usage_count|default:0 }}
+ Used +
+
+
{{ template.version|default:"1.0" }}
+ Version +
+
+
{{ template.updated_at|date:"M d" }}
+ Updated +
+
+
+
+ +
+
+
+ + + + + + + +
+
+ + + {% if template.status != 'archived' %} + + {% endif %} +
+
+
+
+ {% empty %} +
+
+ +

No Consent Templates Found

+

Get started by creating your first consent template

+ + Create First Template + +
+
+ {% endfor %} +
+ + +
+
+
+
+ + + + + + + + + + + + + + {% for template in templates %} + + + + + + + + + + {% endfor %} + +
Template NameCategoryLanguageStatusUsage CountLast UpdatedActions
+
+ +
+
{{ template.name }}
+ {{ template.description|truncatewords:8 }} +
+
+
+ {{ template.get_category_display }} + {{ template.get_language_display }} + {% if template.status == 'active' %} + Active + {% elif template.status == 'draft' %} + Draft + {% elif template.status == 'archived' %} + Archived + {% else %} + {{ template.get_status_display }} + {% endif %} + {{ template.usage_count|default:0 }}{{ template.updated_at|date:"M d, Y" }} +
+ + + + + + + +
+
+
+
+
+
+ + + +
+ + + + + + +{% endblock %} + +{% block extra_js %} + + + + +{% endblock %} + diff --git a/templates/patients/insurance/insurance_detail.html b/templates/patients/insurance/insurance_detail.html index df732a47..55da9688 100644 --- a/templates/patients/insurance/insurance_detail.html +++ b/templates/patients/insurance/insurance_detail.html @@ -9,8 +9,8 @@ - - +{# #} + @@ -40,7 +40,7 @@ - + @@ -124,7 +124,7 @@ @@ -285,41 +285,9 @@ - {% if is_paginated %} - - {% endif %} +{# {% if is_paginated %}#} +{# {% include 'partial/pagination.html' %}#} +{# {% endif %}#} @@ -394,10 +362,10 @@ {% endblock %} {% block js %} - - - - + + + + + diff --git a/templates/patients/partials/insurance_claims_history.html b/templates/patients/partials/insurance_claims_history.html new file mode 100644 index 00000000..ac2bc33e --- /dev/null +++ b/templates/patients/partials/insurance_claims_history.html @@ -0,0 +1,483 @@ +{% load static %} + +
+ +
+
+
+
+
+ Claims Summary +
+
+
+
+
+
+
+ +
+
+
{{ summary.total_claims }}
+ Total Claims +
+
+
+ +
+
+
+ +
+
+
ê{{ summary.total_claimed|floatformat:2 }}
+ Total Claimed +
+
+
+ +
+
+
+ +
+
+
ê{{ summary.total_approved|floatformat:2 }}
+ Total Approved +
+
+
+ +
+
+
+ +
+
+
{{ summary.approval_rate }}%
+ Approval Rate +
+
+
+
+ +
+
+
+
{{ summary.approved_claims }}
+ Approved Claims +
+
+
+
+
{{ summary.pending_claims }}
+ Pending Claims +
+
+
+
+
{{ summary.denied_claims }}
+ Denied Claims +
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+ + + + + +
+
+
+
+ + +
+
+
+
+
+
+
+ + +
+
+
+
+
+ Claims History +
+
+ + +
+
+
+ {% if claims %} +
+
Provider:{{ object.insurance_provider }}{{ object.insurance_company }}
Policy Number:Copay: {% if object.copay %} - ${{ object.copay }} + ê{{ object.copay }} {% else %} Not specified {% endif %} @@ -134,7 +134,7 @@ Deductible: {% if object.deductible %} - ${{ object.deductible }} + ê{{ object.deductible }} {% else %} Not specified {% endif %} @@ -323,7 +323,7 @@ @@ -486,7 +486,7 @@ function checkEligibility() { $('#eligibility-results').html('
Failed to check eligibility. Please try again.
'); } }); -} + } function renewInsurance() { if (confirm('Mark this insurance policy for renewal?')) { @@ -505,7 +505,7 @@ function renewInsurance() { } }); } -} + } function printInsurance() { window.print(); diff --git a/templates/patients/insurance/insurance_form.html b/templates/patients/insurance/insurance_form.html index 13224795..241bd77c 100644 --- a/templates/patients/insurance/insurance_form.html +++ b/templates/patients/insurance/insurance_form.html @@ -571,25 +571,25 @@ function verifyWithProvider() { }); } -function checkEligibility() { - var formData = $('#insurance-form').serialize(); - - $.ajax({ - url: '{% url "patients:check_insurance_eligibility" %}', - method: 'POST', - data: formData, - beforeSend: function() { - $('#verification-results').html('

Checking eligibility...
'); - $('#verificationModal').modal('show'); - }, - success: function(response) { - $('#verification-results').html(response.html); - }, - error: function() { - $('#verification-results').html('
Failed to check eligibility. Please try again.
'); - } - }); -} +{#function checkEligibility() {#} +{# var formData = $('#insurance-form').serialize();#} +{# #} +{# $.ajax({#} +{# url: '{% url "patients:check_eligibility" pk %}',#} +{# method: 'POST',#} +{# data: formData,#} +{# beforeSend: function() {#} +{# $('#verification-results').html('

Checking eligibility...
');#} +{# $('#verificationModal').modal('show');#} +{# },#} +{# success: function(response) {#} +{# $('#verification-results').html(response.html);#} +{# },#} +{# error: function() {#} +{# $('#verification-results').html('
Failed to check eligibility. Please try again.
');#} +{# }#} +{# });#} +{# }#} function scanInsuranceCard() { toastr.info('Insurance card scanning feature coming soon!'); diff --git a/templates/patients/insurance/insurance_list.html b/templates/patients/insurance/insurance_list.html index 5607f67f..48dbf451 100644 --- a/templates/patients/insurance/insurance_list.html +++ b/templates/patients/insurance/insurance_list.html @@ -4,8 +4,8 @@ {% block title %}Insurance Information - Patients{% endblock %} {% block css %} - - + + {% endblock %} {% block content %} @@ -32,7 +32,7 @@

Insurance Records

- + Add Insurance
- {% if insurance.expiration_date %} - {{ insurance.expiration_date|date:"M d, Y" }} + {% if insurance.termination_date %} + {{ insurance.termination_date|date:"M d, Y" }} {% if insurance.is_expired %}
Expired @@ -274,7 +274,7 @@
No insurance records found
- + Add First Insurance Record
+ + + + + + + + + + + + + + + {% for claim in claims %} + + + + + + + + + + + + {% endfor %} + +
Claim IDService DateService TypeProviderAmountApprovedPatient Resp.StatusActions
+
{{ claim.claim_id }}
+ Filed: {{ claim.claim_date }} +
+
{{ claim.service_date }}
+ {% if claim.diagnosis_code %} + {{ claim.diagnosis_code }} + {% endif %} +
+
{{ claim.service_type }}
+ {% if claim.procedure_code %} + {{ claim.procedure_code }} + {% endif %} +
+
{{ claim.provider }}
+
+
ê{{ claim.claim_amount|floatformat:'2g' }}
+
+ {% if claim.approved_amount > 0 %} +
ê{{ claim.approved_amount|floatformat:'2g' }}
+ {% else %} + - + {% endif %} +
+ {% if claim.patient_responsibility > 0 %} +
ê{{ claim.patient_responsibility|floatformat:'2g' }}
+ {% else %} + - + {% endif %} +
+ + {{ claim.status|title }} + + {% if claim.processed_date %} +
{{ claim.processed_date }} + {% endif %} +
+
+ + {% if claim.status == 'denied' %} + + {% endif %} + {% if claim.status == 'paid' %} + + {% endif %} +
+
+ + {% else %} +
+ +
No Claims History
+

No insurance claims found for this policy.

+
+ {% endif %} + + + + + + + {% if summary.total_patient_responsibility > 0 %} +
+
+
+
+ +
+
+
Patient Financial Responsibility
+

+ Total patient responsibility for all claims: ê{{ summary.total_patient_responsibility|floatformat:'2g' }} +
This includes copays, deductibles, and non-covered services. +

+
+
+ +
+
+
+
+ {% endif %} + + + + + + + + + diff --git a/templates/patients/partials/provider_verification_results.html b/templates/patients/partials/provider_verification_results.html new file mode 100644 index 00000000..d096ef85 --- /dev/null +++ b/templates/patients/partials/provider_verification_results.html @@ -0,0 +1,547 @@ +{% load static %} + +
+ +
+
+
+
+
+
+ + Provider Verification Results +
+
+ + {{ verification.status|title }} + + {{ verification.response_time }} +
+
+
+
+
+
+ + + + + + + + + + + + + +
Provider:{{ verification.provider }}
Policy Number:{{ verification.policy_number }}
Verification ID:{{ verification.verification_id }}
+
+
+ + + + + + + + + + + + + +
Verification Date:{{ verification.verification_date }}
Response Time:{{ verification.response_time }}
Status: + + {{ verification.status|title }} + +
+
+
+
+
+
+
+ + {% if verification.status == 'verified' %} + +
+
+
+
+
+ Policy Holder Information +
+
+
+ + + + + + + + + + + + + + + + + +
Name:{{ verification.policy_holder.name }}
Date of Birth:{{ verification.policy_holder.dob }}
Member ID:{{ verification.policy_holder.member_id }}
Relationship:{{ verification.policy_holder.relationship|title }}
+
+
+
+ +
+
+
+
+ Coverage Details +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Plan Name:{{ verification.coverage_details.plan_name }}
Plan Type:{{ verification.coverage_details.plan_type }}
Effective Date:{{ verification.coverage_details.effective_date }}
Expiration Date:{{ verification.coverage_details.expiration_date }}
Group Number:{{ verification.coverage_details.group_number }}
Network:{{ verification.coverage_details.network }}
+
+
+
+
+ + +
+
+
+
+
+ Financial Benefits +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Deductible:${{ verification.benefits.deductible|floatformat:0 }}
Out-of-Pocket Max:${{ verification.benefits.out_of_pocket_max|floatformat:0 }}
Primary Care Copay:${{ verification.benefits.copay_primary }}
Specialist Copay:${{ verification.benefits.copay_specialist }}
Coinsurance:{{ verification.benefits.coinsurance }}%
+
+
+
+ +
+
+
+
+ Authorization Requirements +
+
+
+
+
+
+ Prior Authorization Required: + + {% if verification.authorization.prior_auth_required %}Yes{% else %}No{% endif %} + +
+
+
+
+ Referral Required: + + {% if verification.authorization.referral_required %}Yes{% else %}No{% endif %} + +
+
+
+
+ Pre-certification Required: + + {% if verification.authorization.pre_certification_required %}Yes{% else %}No{% endif %} + +
+
+
+ +
+ +
Additional Coverage:
+
+
+ + Prescription: + + +
+
+ + Dental: + + +
+
+ + Vision: + + +
+
+
+
+
+
+ + +
+
+
+
+
+ Provider Contact Information +
+
+
+
+
+
+ +
Customer Service
+

{{ verification.contact_info.customer_service }}

+
+
+
+
+ +
Provider Services
+

{{ verification.contact_info.provider_services }}

+
+
+ +
+
+ +
Claims Address
+

{{ verification.contact_info.claims_address }}

+
+
+
+
+
+
+
+ + {% elif verification.status == 'not_found' %} + +
+
+
+
+ +
+
+
Policy Not Found
+

{{ verification.error_details.message }}

+
+
Suggestions:
+
    + {% for suggestion in verification.error_details.suggestions %} +
  • {{ suggestion }}
  • + {% endfor %} +
+
+
+
+
+ + {% elif verification.status == 'expired' %} + +
+
+
+
+
+ Policy Expired +
+
+
+ + + + + + + + + + + + + + + + + +
Policy Holder:{{ verification.policy_holder.name }}
Member ID:{{ verification.policy_holder.member_id }}
Expired Date:{{ verification.expiration_details.expired_date }}
Days Expired:{{ verification.expiration_details.days_expired }} days
+
+
+
+
+
+
+
+ Renewal Options +
+
+
+
    + {% for option in verification.expiration_details.renewal_options %} +
  • + {{ option }} +
  • + {% endfor %} +
+
+
+
+
+ + {% elif verification.status == 'suspended' %} + +
+
+
+
+ +
+
+
Policy Suspended
+
+
+

Reason: {{ verification.suspension_details.reason }}

+

Suspended Date: {{ verification.suspension_details.suspended_date }}

+
+
+

Reinstatement Required: + {% if verification.suspension_details.reinstatement_required %} + Yes + {% else %} + No + {% endif %} +

+

Contact Provider: + {% if verification.suspension_details.contact_required %} + Required + {% else %} + Not Required + {% endif %} +

+
+
+
+
+
+
+ + {% elif verification.status == 'pending' %} + +
+
+
+
+ +
+
+
Verification Pending
+

Reason: {{ verification.pending_details.reason }}

+

Expected Resolution: {{ verification.pending_details.expected_resolution }}

+

Reference Number: {{ verification.pending_details.reference_number }}

+
+
+
+
+ {% endif %} + + +
+
+
+
+ + +
+
+ {% if verification.status == 'verified' %} + + {% endif %} + +
+
+
+
+
+ + + + + diff --git a/templates/patients/patient_detail.html b/templates/patients/patient_detail.html index 029c926b..69fa1f2f 100644 --- a/templates/patients/patient_detail.html +++ b/templates/patients/patient_detail.html @@ -192,7 +192,7 @@
diff --git a/templates/patients/profiles/patient_detail.html b/templates/patients/profiles/patient_detail.html index 7dff30ee..bb61a0d1 100644 --- a/templates/patients/profiles/patient_detail.html +++ b/templates/patients/profiles/patient_detail.html @@ -15,7 +15,7 @@
- + Edit Profile
- + Schedule Appointment - + New Encounter - + Order Lab Test - + New Prescription
{% endfor %} @@ -318,7 +318,7 @@

No emergency contacts

- + Add Contact
@@ -334,7 +334,7 @@ Insurance Information @@ -352,7 +352,7 @@
{% endfor %} @@ -409,7 +409,7 @@ function addNote() { if (note) { console.log('Adding note:', note); // Redirect to add note page or submit via AJAX - window.location.href = "{% url 'patients:patient_note_form' %}?patient={{ object.pk }}¬e=" + encodeURIComponent(note); + window.location.href = "{% url 'patients:patient_note_create' object.pk %}?patient={{ object.pk }}¬e=" + encodeURIComponent(note); } }