Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Django CI

on:
push:
branches: [ "RB" ]
pull_request:
branches: [ "RB" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test
Binary file added ALL CO_SEM_1,3,5.zip
Binary file not shown.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

</head>
<body>
<img src="RESULT ANALYZER SYSTEM/Screenshot (58).png" alt="Screenshot 58">
<img src="RESULT ANALYZER SYSTEM/Screenshot (59).png" alt="Screenshot 59">
<img src="RESULT ANALYZER SYSTEM/Screenshot (60).png" alt="Screenshot 60">
<img src="RESULT ANALYZER SYSTEM/Screenshot (61).png" alt="Screenshot 61">
<img src="RESULT ANALYZER SYSTEM/Screenshot (62).png" alt="Screenshot 62">
<img src="RESULT ANALYZER SYSTEM/Screenshot (63).png" alt="Screenshot 63">
<img src="RESULT ANALYZER SYSTEM/Screenshot (64).png" alt="Screenshot 64">
<img src="RESULT ANALYZER SYSTEM/Screenshot (65).png" alt="Screenshot 65">
<img src="RESULT ANALYZER SYSTEM/Screenshot (66).png" alt="Screenshot 66">
<img src="RESULT ANALYZER SYSTEM/Screenshot (67).png" alt="Screenshot 67">
<img src="RESULT ANALYZER SYSTEM/Screenshot (68).png" alt="Screenshot 68">
<img src="RESULT ANALYZER SYSTEM/Screenshot (69).png" alt="Screenshot 69">
<img src="RESULT ANALYZER SYSTEM/Screenshot (70).png" alt="Screenshot 70">
<img src="RESULT ANALYZER SYSTEM/Screenshot (71).png" alt="Screenshot 71">
<img src="RESULT ANALYZER SYSTEM/Screenshot (72).png" alt="Screenshot 72">
<img src="RESULT ANALYZER SYSTEM/Screenshot (73).png" alt="Screenshot 73">
<img src="RESULT ANALYZER SYSTEM/Screenshot (74).png" alt="Screenshot 74">
<img src="RESULT ANALYZER SYSTEM/Screenshot (75).png" alt="Screenshot 75">
<img src="RESULT ANALYZER SYSTEM/Screenshot (76).png" alt="Screenshot 76">
<img src="RESULT ANALYZER SYSTEM/Screenshot (77).png" alt="Screenshot 77">
<img src="RESULT ANALYZER SYSTEM/Screenshot (78).png" alt="Screenshot 78">
<img src="RESULT ANALYZER SYSTEM/Screenshot (79).png" alt="Screenshot 79">
<img src="RESULT ANALYZER SYSTEM/Screenshot (80).png" alt="Screenshot 80">
<img src="RESULT ANALYZER SYSTEM/Screenshot (81).png" alt="Screenshot 81">
<img src="RESULT ANALYZER SYSTEM/Screenshot (82).png" alt="Screenshot 82">
<img src="RESULT ANALYZER SYSTEM/Screenshot (83).png" alt="Screenshot 83">
<img src="RESULT ANALYZER SYSTEM/Screenshot (84).png" alt="Screenshot 84">
<img src="RESULT ANALYZER SYSTEM/Screenshot (85).png" alt="Screenshot 85">
<img src="RESULT ANALYZER SYSTEM/Screenshot (86).png" alt="Screenshot 86">
<img src="RESULT ANALYZER SYSTEM/Screenshot (87).png" alt="Screenshot 87">
<img src="RESULT ANALYZER SYSTEM/Screenshot (88).png" alt="Screenshot 88">
<img src="RESULT ANALYZER SYSTEM/Screenshot (89).png" alt="Screenshot 89">
</body>
</html>
Binary file added RESULT ANALYZER SYSTEM/Screenshot (58).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (59).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (60).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (61).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (62).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (63).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (64).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (65).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (66).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (67).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (68).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (69).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (70).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (71).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (72).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (73).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (74).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (75).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (76).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (77).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (78).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (79).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (80).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (81).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (82).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RESULT ANALYZER SYSTEM/Screenshot (83).png
Binary file added RESULT ANALYZER SYSTEM/Screenshot (84).png
Binary file added RESULT ANALYZER SYSTEM/Screenshot (85).png
Binary file added RESULT ANALYZER SYSTEM/Screenshot (86).png
Binary file added RESULT ANALYZER SYSTEM/Screenshot (87).png
Binary file added RESULT ANALYZER SYSTEM/Screenshot (88).png
Binary file added RESULT ANALYZER SYSTEM/Screenshot (89).png
1 change: 1 addition & 0 deletions Result_Analyzer_System
Submodule Result_Analyzer_System added at 7cc268
Empty file added django_srms/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions django_srms/asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
ASGI config for django_srms project.

It exposes the ASGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
"""

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_srms.settings')

application = get_asgi_application()
139 changes: 139 additions & 0 deletions django_srms/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
"""
Django settings for django_srms project.

Generated by 'django-admin startproject' using Django 4.0.3.

For more information on this file, see
https://docs.djangoproject.com/en/4.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
"""

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-t5b_ld!b44gip%^24jv8w076iul#09*eiza#^$!n(%y6z=*=58'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['*']


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'srmsApp.apps.srmsAppConfig',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'django_srms.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.media',
],
},
},
]

WSGI_APPLICATION = 'django_srms.wsgi.application'


# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'resultanalyzer',
'USER':'root',
'PASSWORD':'root',
#'HOST':'AutomaticResultAnalysis.mysql.pythonanywhere-services.com',
'PORT':'3306',

}
}
# Password validation
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/4.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Asia/Manila'

USE_I18N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.0/howto/static-files/

STATIC_URL = 'static/'
STATICFILES_DIRS = [
BASE_DIR / "static",
]

#MEDIA
MEDIA_URL = 'media/'
MEDIA_ROOT = BASE_DIR / "media/"

# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/login'
30 changes: 30 additions & 0 deletions django_srms/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""django_srms URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,include
from django.conf import settings
from django.conf.urls.static import static
from django.views.static import serve
# from django.conf.urls import url

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('srmsApp.urls')),
# url(r'^media/(?P<path>.*)$', serve,{'document_root': settings.MEDIA_ROOT}),
# url(r'^static/(?P<path>.*)$', serve,{'document_root': settings.STATIC_ROOT}),
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
16 changes: 16 additions & 0 deletions django_srms/wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
WSGI config for django_srms project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_srms.settings')

application = get_wsgi_application()
22 changes: 22 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_srms.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)


if __name__ == '__main__':
main()
Binary file added media/default/logo.png
30 changes: 30 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
asgiref==3.5.1
backports.zoneinfo==0.2.1
certifi==2021.10.8
cffi==1.15.0
chardet==4.0.0
charset-normalizer==2.0.12
cryptography==37.0.2
Django==4.0.4
docopt==0.6.2
idna==3.3
mysql-connector-python==8.0.29
mysqlclient==2.1.0
numpy==1.22.3
pandas==1.4.2
pdfminer.six==20220319
pdfplumber==0.6.2
Pillow==9.1.0
pipreqs==0.4.11
protobuf==3.20.1
pycparser==2.21
python-dateutil==2.8.2
pytz==2022.1
requests==2.27.1
six==1.16.0
sqlparse==0.4.2
tzdata==2022.1
urllib3==1.26.9
Wand==0.6.7
whitenoise==6.1.0
yarg==0.1.9
Empty file added srmsApp/__init__.py
Empty file.
10 changes: 10 additions & 0 deletions srmsApp/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from django.contrib import admin
from srmsApp import models

# Register your models here.
admin.site.register(models.Class)
admin.site.register(models.Subject)
admin.site.register(models.Student)
admin.site.register(models.Result)
admin.site.register(models.Student_Subject_Result)
admin.site.register(models.user)
6 changes: 6 additions & 0 deletions srmsApp/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class srmsAppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'srmsApp'
Loading
Loading