This AI-based application collects, categorizes, visualizes and recommends Sinhalese news articles.
Python greater than 3.11 installed. Anaconda prefererd
-
Create a new anaconda environment.
conda create --name sinhala-news-platform python=3.11
-
Activate anaconda environment.
conda activate sinhala-news-platform
-
Install required python dependencies.
pip install -r requirements.txt
-
Download models from OneDrive location.
- Create a new directory in project root directories with path "temp/models" if not exists.
- Move the downloaded files into "temp/models" folder. (Make sure not to rename any folder in downloaded files)
- At the end, file structure should look like below.
<Project Root Directory> ├─ <Current Project Files> └─ temp └─ models ├─ sinbert-1810 └─ xgboost
-
Start the application.
python manage.py runserver --noreload
-
Start browser and navigate to http://127.0.0.1:8000/users/login_user
-
Use following credentials to log into the system.
- Username: Admin
- Password: 123
This sections is only for development purposes and please ignore if you want to run the application.
python manage.py runserver
Run server without duplicate schedulers
python manage.py runserver --noreload
python manage.py makemigrations
then migrate using
python manage.py migrate
A superuser login is required to login to the django admin portal
python manage.py createsuperuser
Admin portal url: http://localhost:8000/admin
Default credentials
- Username: admin
- Password: 123
python manage.py startapp <appname>