- Install Python 3 (I have used v3.8)
to check the version of installed python type the commnad:
$python3 --version(GNU Linux)
>python -V (Windows)
- Create a virtual environment using the command:
$python3 -m venv virtual_env_name
- Navigate inside the virtual_env_name by using the command:
$cd virtual_env_name
- To activate the virtual_env_name type the command:
$ source bin/activate or cd bin && activate (GNU Linux)
> virtual_env_name\Scripts\activate or cd Scripts && activate (Windows)
- To installed required libraries inside the virtual_env_name type the command:
before installing libraries check the contents of virtual_env_name by using the command:
$pip freeze
$pip install -r requirements.txt
- Now verify the installation by again typing:
$pip freeze
- Unzip the folder and copy the folder GyStaQ inside the virtual_env_name
- To run the project follow the below steps:
$cd GyStaQ
$ls
after executing ls command your file system should be something like this
->accounts
->classify
->GyStaQ
->home
->templates
manage.py
Run the following commands:
$python manage.py makemigrations
$python manage.py migrate
$python manage.py changepassword
It will ask you to change the password (current username and password are admin)
$python manage.py collectstatic
This will create a new folder called assets which will contain all the static files used in the project
$python manage.py runserver
And that's it. If everything went well project will be up and running
- Also change the email settings in settings.py
- Also give the absolute path to the pickled_model.pkl file inside classify app
- To deactivate the virtual_env_name type the command:
$deactivate
- Run the server again and again, keep correcting the errors and have fun using GyStaQ Classifier
-
Notifications
You must be signed in to change notification settings - Fork 1
Machine Learning + Django Final Year Project
License
abs87/GyStaQ-Classifier-Web-App
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Machine Learning + Django Final Year Project
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published