-
Create an environment:
Windows:
python -m venv envMacOS:
python3 -m venv env -
Environment activate:
Windows:
.\env\Scripts\activateMacOS:
source env/bin/activate -
Install Django:
Windows:
pip install djangoMacOS:
pip3 install djangoVerify Django Version:
Windows:
python -m django versionMacOS:
python3 -m django version -
Install Django Rest Framework:
Windows:
pip install djangorestframeworkMacOS:
pip3 install djangorestframework -
Start Project:
django-admin startproject <name> . -
Create APP:
Windows:
python -m django startapp <name>MacOS:
python3 -m django startapp <name>OR
Windows:
python manage.py startapp <name>MacOS:
python3 manage.py startapp <name> -
Run Server:
Windows:
python manage.py runserverMacOS:
python3 manage.py runserver -
Migrations:
python manage.py migrate -
Create Super User
python manage.py createsuperuseradmin Email address: django@python.com Password: 12345678A@
As part of the Meta Backend Developer Professional Certificate on Coursera, I successfully completed the capstone project, which involved building a comprehensive backend system for the Little Lemon restaurant website. This project allowed me to apply and showcase my skills in backend development, including:
Database Management: Designed and implemented a robust database using MySQL to handle restaurant data efficiently.
API Development: Created RESTful APIs using Django and Django REST Framework (DRF) to manage menu items, table bookings, and user authentication.
Optimization: Ensured optimal performance and scalability of the backend system through best practices and efficient coding techniques.
This project provided hands-on experience in tackling real-world challenges and implementing industry best practices. I'm excited to share this achievement and look forward to leveraging these skills in future backend development projects.
cd
pipenv shell
pipenv install
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Navigate to the Book page and Reservations page and perform the form actions required to grade the assessment where required.