"# Django-coffee-shop" static/img/mycoffee.png
This is a coffee shop website built with Django. It allows users to sign in, sign up, view their profiles, browse products, make orders, and proceed to checkout. The website also features product search and pagination to improve user experience. The project is developed using Django as the backend and Django templates for the frontend in a stateful way.
- Sign Up & Sign In: Users can register and log in to their accounts.
- User Profiles: Users can view and edit their profiles.
- Product Search: Users can search for products based on keywords.
- Pagination: Products are displayed in pages for easy navigation.
- Order Management: Users can create and view orders.
- Checkout System: Users can proceed to checkout and complete their orders.
- Backend: Django (Python)
- Frontend: Django Templates (HTML, CSS, JavaScript)
- Database: PostgreSQL
- Pagination: Django Paginator
Follow these steps to set up and run the project locally:
Clone this repository to your local machine:
git clone <repository-url>Navigate to the project directory and create a virtual environment:
python3 -m venv venvvenv\Scripts\activateInstall the required dependencies from the requirements.txt file:
pip install -r requirements.txtUpdate your PostgreSQL database settings in the settings.py file. In settings.py, configure the DATABASES section to use PostgreSQL:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'your_database_name',
'USER': 'your_database_user',
'PASSWORD': 'your_database_password',
'HOST': 'localhost',
'PORT': '5432',
}
}Apply the database migrations to set up your PostgreSQL database:
python manage.py migrateCreate a superuser account to access the Django admin panel:
python manage.py createsuperuserFollow the prompts to enter the superuser's username, email, and password.
Start the development server:
python manage.py runserverYou can now access the website at http://127.0.0.1:8000.
