Foodie is a Django-based web application that allows users to share and discover food items. Users can post food items with images, descriptions, and prices, creating a community-driven platform for food enthusiasts.
- User authentication and authorization
- Post food items with images
- View detailed food listings
- Responsive design with Bootstrap
- Image upload and storage
- Price and description management
- Python 3.8 or higher
- pip (Python package installer)
- Virtual environment (recommended)
- Clone the repository:
git clone <repository-url>
cd django-projects
- Create and activate a virtual environment:
# Windows
python -m venv venv
.\venv\Scripts\activate
# Linux/Mac
python3 -m venv venv
source venv/bin/activate
- Install the required dependencies:
pip install django
pip install pillow # for image handling
- Set up the database:
python manage.py makemigrations
python manage.py migrate
- Create a superuser (admin account):
python manage.py createsuperuser
- Start the development server:
python manage.py runserver
- Open your web browser and navigate to:
http://127.0.0.1:8000/
mysite/
- Main project directoryfoodie/
- Main application directorytemplates/
- HTML templatesstatic/
- Static files (CSS, JS, images)
media/
- User-uploaded media filesusers/
- User management appmanage.py
- Django management script
This is a learning repo, the idea behind it is to apply what I've studying.