How to run ?
- Clone project: https://github.com/thanhchuong01/tmdt.git
- Install Django framework
- Follow:
- If use VSCode allow \venv\Scripts\activate
- At milk_tea directory
pip install -r requirements.txt
orpython -m pip install -r requirements.txt
- Config your database in file settings.py at DATABASE
I use Postgres, port 5432, local account
- Delete all file in migrations forlders
- Run the command:
python manage.py makemigrations
for check the change of database model - Next
python manage.py migrate
it will install databse model into database management system setting.py - Next
python manage.py createsuperuser
to create admin account of systems, you use that account to login on Admin side of Django - Finally, run
python manage.py runserver
the server Django will run on localhost and auto open default Web brower, run project! =======