Skip to content

Instantly share code, notes, and snippets.

View aimedey19's full-sized avatar
💻
Code, Documentation

Aimé An-Nyong DEGBEY aimedey19

💻
Code, Documentation
View GitHub Profile
@aimedey19
aimedey19 / views.py
Created November 25, 2022 13:35
Reports views
from operator import itemgetter
from django.db.models import Q
from django.http import HttpRequest, HttpResponse
from django.shortcuts import render
from render_block import render_block_to_string
from django.conf import settings
from smarthealth.laboratory.models import MedicalExamItem, Laboratory
from smarthealth.prescriptions.models import (
var message="Function Disabled!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
# Creating and getting the group
teacher_group, created = Group.objects.get_or_create(name='Teacher')
# Setting permissions
# Granting all access on CourseCategory Model
content_type_course_category = ContentType.objects.get_for_model(CourseCategory)
# Granting all access on Course Model
content_type_course = ContentType.objects.get_for_model(Course)
DATABASE_URL=postgres://postgres:root@localhost/up_report
DJANGO_SECRET_KEY=hcwlc7p7+l8=9$ccl=b@gkqnwm_+s6@ih6qaa*42v49%73ixnq
DJANGO_ADMIN_URL=uppp_admin087/
DJANGO_SECURE_SSL_REDIRECT=False
DJANGO_CSRF_TRUSTED_ORIGINS=
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=*