A Django-based e-commerce platform for selling phone cases. Features user authentication, product catalog, cart, orders, payments, and admin management.
- User registration, login, and profile management
- Product catalog with detail and list views
- Shopping cart functionality
- Order checkout and history
- Payment integration (Razorpay, PayPal-ready)
- Admin dashboard for managing products and orders
accounts/- User authentication and profilecart/- Shopping cart logiccatalog/- Product catalogcore/- Home, dashboard, and shared logicorders/- Order managementpayments/- Payment processingtemplates/- HTML templatesstatic/- Static files (CSS, JS, images)media/- User-uploaded files (excluded from repo)ecommerce/- Project settings and configuration
- Clone the repository
git clone https://github.com/yourusername/phone_case_store.git cd phone_case_store - Create and activate a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Configure environment variables
- Copy
.env.exampleto.envand fill in your secrets.
cp .env.example .env # Edit .env with your keys - Copy
- Apply migrations
python manage.py migrate
- Create a superuser (admin)
python manage.py createsuperuser
- Run the development server
python manage.py runserver
- Access the site at
http://localhost:8000/ - Admin dashboard at
/admin/
See .env.example for required variables (SECRET_KEY, payment keys, etc.). Never commit your real .env file.
MIT
Pull requests are welcome. For major changes, open an issue first to discuss what you would like to change.
For support, contact: admin@yourstore.com