Skip to content
Snippets Groups Projects
Commit 158c4e80 authored by Jonathan Weth's avatar Jonathan Weth :keyboard: Committed by root
Browse files

Merge pull request #31 from Katharineum/feature/dbsettings-for-term

Restructure untisconnect (#26)
parents 67dcf5ca d41dcdf5
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -35,11 +35,6 @@ urlpatterns = [
#######
path('aub/', include('aub.urls')),
#################
# UNTIS CONNECT #
#################
path('untis/', include('untisconnect.urls')),
#############
# TIMETABLE #
#############
......@@ -48,7 +43,7 @@ urlpatterns = [
#########
# Admin #
#########
path('settings/', include('dbsettings.urls')),
path('settings/', include('dbsettings.urls')),
path('admin/', admin.site.urls),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
......
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.shortcuts import render
from untisconnect.api import *
from .parse import *
from untisconnect.parse import *
try:
from schoolapps.untisconnect.api import *
......
from django.contrib import admin
# Register your models here.
......@@ -48,12 +48,7 @@ class LessonTime(object):
self.rooms = rooms
from untisconnect.api import *
try:
from schoolapps.untisconnect.api import *
except Exception:
pass
from .api import *
def clean_array(a, conv=None):
......
<h1>UNTIS CONNECTING SYSTEM</h1>
{{ teachers }}
{% for teacher in teachers %}
<p>{{ teacher.first_name }} {{ teacher.name }}</p>
{% endfor %}
\ No newline at end of file
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path('', views.test, name='untisconnect_test')
]
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
# Create your views here.
from .api import get_all_teachers, get_all_classes
@login_required
def test(request):
teachers = get_all_teachers()
classes = get_all_classes()
context = {
'teachers': teachers
}
return render(request, 'untisconnect/test.html', context=context)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment