NSI web project with Python and the Flask and SQLObject modules
Python https://www.python.org/
Flask documentation https://flask.palletsprojects.com/
SQLObject documentation https://www.sqlobject.org/
You can download the project from here or by cloning the repository with the following command:
git clone https://github.com/Nimblent/NimblentFlask.git
- Open a command prompt in the project directory (downloaded and extracted before)
- Write
py main.py
in the terminal
All necessary modules will be automatically installed at first startup through the requirements.txt
file
You can access the website through 127.0.0.1:8000
You'll first need to create a school by providing a name, a french RNE number and a password.
The login page is accessible directly from the home/index page /
You can login with the school's RNE number as username and the password you provided when creating the school or with any other account you created.
If the user you logged in with is a teacher, or an admin you'll access the admin dashboard.
Click on the "Add user" button to add a new user.
On the form, you can choose the user's role, the user's name, the user's login name, and the user's password. User's login name and password will be used to login to the website.
As admin only (RNE login) you can add a course to the school for specific students.
You can choose multiple teachers and multiple students for the course by clicking on the user while holding the ctrl
key.
There is no direct way to retrieve courses from the admin dashboard, but you can download the current user's courses in a .ics
file by clicking on the "Télécharger l'emplois du temps" button (logged in as a teacher or a student with accounts created before).
You can then import the .ics
file in your calendar application or use this website to preview the schedule