This repository contains the source code of Picture Puzzle Website for BUET CSE FEST 2022.
Create a .env
file in the base directory. Add the mentioned variables in the file
DB_HOST = <database host address>
DB_PORT = <database connection port>
DB_USER = <database username>
DB_PASS = <database password>
DB_NAME = <database name>
CREATE DATABASE db_name
CHARACTER SET charset_name
COLLATE collation_name
ALTER DATABASE db_name
CHARACTER SET charset_name
COLLATE collation_name
- Clone this project
- Create a virtual environment in the cloned folder by
python3 -m venv picture_puzzle
in terminal and activate it - Install requirements by
pip install -r requirements.txt
- Make sure you have MySQL installed in your system.
- To create the database, run
python3 manage.py makemigrations
andpython3 manage.py migrate
- Run the server by
python3 manage.py runserver