Skip to content

trungkienbkhn/Hotel_recommend_system

Repository files navigation

Hotel metasearch with Django and clickhouse

Requirements

  • Python3
  • Module Django
  • PostgreSQL

Installing

Operating system: Ubuntu

Install PostgreSQL

  • Download PostSQL link
  • Install tutorial link

Clone the remote repository to local

git clone https://github.com/vodinhhung/Hotel_metasearch_backend

Config Database

  • Open pg Admin4 or SQL Shell, enter your password
  • If you use pdAdmin4 Create Database in Object tab pd Admin 4 image
  • If you use SQL Shell, type in command
CREATE DATABASE yourdatabase;
  • Open ./hotel_metasearch/settings.py
  • Change setting configs database config

Install module

pip3 install Django
sudo apt-get install python3-psycopg2

Database setup

python3 manage.py makemigrations
python3 manage.py migrate

Import Data

  • Go to commnands folder
cd hotel\management\commands
  • Change Database connection to your database in import_csv.py
  • Import database
python3 import_csv.py

Run

python3 manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •