This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var message="Function Disabled!"; | |
function clickIE4(){ | |
if (event.button==2){ | |
alert(message); | |
return false; | |
} | |
} | |
function clickNS4(e){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ( |