Code Monkey home page Code Monkey logo

an-ai-powered-online-car-sales-platform's Introduction

MetaPluser

1. Introduction

Video Introduction: https://www.dropbox.com/scl/fi/cwmpzyuclz1jubf2xmsi6/Group-Project.mp4?rlkey=z1xco65xqi65dxhbr06s5hh9j&dl=0

An online car booking website with python and flask

2. Development Usage

2.1 Basic Usage

# run server
bash run.sh

2.2 Database Tools

We provide predifined data under app/dev/_dev_data.py for development and testing

# Clear database
$ python dev_tools.py -reset

# Create and insert data
$ python dev_tools.py -reset -insert -a

# ...
...

2.3 MultiLanguage Support

We provide English and Chinese support for our website by using python_bible replacing all the English terms.

To build a new language support:

# 0. Add new language abbreviation (e.g. 'zh') in Config.py
# 1. Extract terms from specified .py and html files into messages.pot
$ pybabel extract -F babel.cfg -k _l -o messages.pot --input-dirs=.

# 2. Initiate language dictionary
$ pybabel init -i messages.pot -d app/translations -l <language-abbrivation>

# 3. Add translations in new created 'app/translations/<language-abbrivation>/LC_MESSAGE/messages.po'

# 4. compile message.po
$ pybabel compile -d app/translations

To update existed translation

# 1. Extract terms from specified .py and html files into messages.pot
$ pybabel extract -F babel.cfg -k _l -o messages.pot --input-dirs=.

# 2. Update dictionary
$ pybabel update -i messages.pot -d app/translations

# 3. Change dictionary in 'app/translations/<language-abbrivation>/LC_MESSAGE/messages.po'

# 4. compile message.po
$ pybabel compile -d app/translations

an-ai-powered-online-car-sales-platform's People

Contributors

rennie-bee avatar yuchencode avatar keviniscaiji avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.