An app that allows user to see which food are offered at a restaurant by scanning a qr code. The admin side allows editing of food available
Steps when writing the code
- Install virualenv using the command python -m pip install virtualenv
- Create a virtual env using the command python -m virtual venv // name of my virtual env is venv
- Activate the virtual environment by using the command venv\scripts\activate
- Install django using pip install django
- Started a project lizzyFoods on the same directory using django-admin startproject lizzyFoods .
- Start an app called food using the cmd python manage.py startapp food
- Create the apps urls.py file
- Run migrations after updating the models using python manage.py makemigrations
- Make migrations using python manage.py migrate
- Create a simple pizza model and update using the shell
- Create a superuser using manage.py createsuperuser
- update the models for pizza, beverages, dishes and special offers
- Create the html files for the pages required.