Django app that generates the different possible schedules for the combination of subjects you choose.
The web also has some relevant links that are useful for a ETSIINF's student.
1. Install python 3.7
$ sudo apt install python3.7
2. Install pip
$ sudo apt install python-pip
3. Install virtualenvwrapper
$ sudo apt install virtualenvwrapper
4. Create a virtual environment
$ mkvirtualenv --python=/usr/bin/python3.7 Horarios-ETSIINF
If the virtual environment is not activated, activate it
$ workon Horarios-ETSIINF
5. Install the requirements
$ pip install -r requirements.txt
1. You need to set up the DB. For that I have created a script that creates the DB and loads the subjects in the data.dat into the database.
Note: The subjects in the file are the ones taught in the course 18-19 in the ETSIINF.
$ ./importData.sh
2. Once the DB is created, just run the server
$ ./run.sh
And go to the url: http://127.0.0.1:8000
.
If you want to go to the admin site, you have to create a superuser for the DB. When you run the importData.sh script, it will ask you if you want to create a superuser.
Other way to create a superuser is:
$ python manage.py createsuperuser
or
$ ./manage.py createsuperuser
Once you have your superuser created, got to the admin page: http://127.0.0.1:8000/admin
.
If you want this app to work with your specific data, edit the file data.dat, with the requirements in the README.md in the ImportData directory.
Escuela Técnica Superior de Ingenieros Informáticos