/shopee_api

This project is shopee api for shopee clone use django

Primary LanguagePython

Shopee Clone

Development

  1. set permission for window with powershell run administrator
# For Window
Set-ExecutionPolicy RemoteSigned
  1. create venv with python 3.12.0
python -m venv venv
  1. activate venv
# MacOs or Linux
source ./venv/bin/activate

# Window <PowerShell, Bash, etc>
./venv/Scripts/active
  1. installing requirements.txt
pip install -r requirements.txt
  1. running app
python manage.py runserver

Tricks Tips

Fix generic migrations in uuid is primary key

* not call function uuid4()
* use uuid4 with primary key, it's auto generate key 128bit unique

Get params with django framework

* in path call params (arg function)
* form post call body or form data (request.data)
* after ? call query (request.GET)