Resources
-Here are some links to help you get started:
- - - - -Next Steps
-What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
diff --git a/.gitignore b/.gitignore index efa2a10..3e04b17 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /backend/webapp/db.sqlite3 /backend/webapp/myvenv /backend/webapp/media +/backend/webapp/*.xml *__pycache__ diff --git a/backend/webapp/prototype/filehandler/forms.py b/backend/webapp/prototype/filehandler/forms.py index bb1a9a1..a8d8888 100644 --- a/backend/webapp/prototype/filehandler/forms.py +++ b/backend/webapp/prototype/filehandler/forms.py @@ -4,5 +4,4 @@ from prototype.filehandler.models import Document class DocumentForm(forms.ModelForm): class Meta: model = Document -# fields = ('description', 'document', ) - fields = ('file', ) + fields = ('description', 'file', ) diff --git a/backend/webapp/prototype/filehandler/functions.py b/backend/webapp/prototype/filehandler/functions.py new file mode 100644 index 0000000..56301b7 --- /dev/null +++ b/backend/webapp/prototype/filehandler/functions.py @@ -0,0 +1,10 @@ +from xml.etree.ElementTree import parse + +def isValidXML(file): + try: + parse(file) + except: + return(False) + return(True) + + diff --git a/backend/webapp/prototype/filehandler/templates/core/home.html b/backend/webapp/prototype/filehandler/templates/core/home.html index 9d273a9..d37bff5 100644 --- a/backend/webapp/prototype/filehandler/templates/core/home.html +++ b/backend/webapp/prototype/filehandler/templates/core/home.html @@ -11,7 +11,7 @@
Here are some links to help you get started:
- - - - -What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build --prod-
Załaduj plik aby rozpocząć
++ Nasza aplikacja pozwala na szczegółowe interpretowanie odpowiedzi z + wątków na forach platform e-learningowych, takich jak Moodle i + Edumatic +
++ System opiera się na przetwarzaniu języka naturalnego, które umożliwia + coś tam +
++ Dzięki ogromnej gamie możliwości wizualizacji danych, użytkownik może + zrobić coś tam +
++ Proin varius accumsan semper. Praesent consequat tincidunt + sagittis. Curabitur egestas sem a ipsum bibendum, sit amet + fringilla orci efficitur. Nam bibendum lectus ut viverra + tristique. Fusce eu pulvinar magna, quis viverra ex. Lorem ipsum + dolor sit amet, consectetur adipiscing elit. Praesent metus + turpis, commodo vel placerat quis, lobortis in ligula. +
+ + ++ Proin varius accumsan semper. Praesent consequat tincidunt + sagittis. Curabitur egestas sem a ipsum bibendum, sit amet + fringilla orci efficitur. Nam bibendum lectus ut viverra + tristique. Fusce eu pulvinar magna, quis viverra ex. Lorem ipsum + dolor sit amet, consectetur adipiscing elit. Praesent metus + turpis, commodo vel placerat quis, lobortis in ligula. +
+ + ++ Proin varius accumsan semper. Praesent consequat tincidunt + sagittis. Curabitur egestas sem a ipsum bibendum, sit amet + fringilla orci efficitur. Nam bibendum lectus ut viverra + tristique. Fusce eu pulvinar magna, quis viverra ex. Lorem ipsum + dolor sit amet, consectetur adipiscing elit. Praesent metus + turpis, commodo vel placerat quis, lobortis in ligula. +
+ + +