A small local marketplace built with Django. Users can sign up, post listings with a photo, price and contact details, search everything that's for sale, and manage their own listings.
- Accounts: sign up, log in and log out, with duplicate username/email checks
- Listings: create, edit and delete your own listings (title, description, price, image, phone, email)
- Search: keyword search across listing titles and descriptions
- Ownership checks: only the owner can edit or delete a listing; deleting a listing also removes its image from disk
- Responsive UI with Bootstrap 5
TradeLocal/ project settings and root URLs
core/ landing page
user/ signup, login, logout
listings/ Listing model, CRUD views and templates
templates/ shared base layout
Python · Django · django-phonenumber-field · Pillow · SQLite · Bootstrap 5
git clone https://github.com/TomassSaulite/TradeLocal.git
cd TradeLocal
python -m venv venv
source venv/bin/activate # Windows: venv\\Scripts\\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py runserverThen open http://127.0.0.1:8000.
For anything beyond local use, set your own DJANGO_SECRET_KEY first. The project includes a throwaway development fallback only to make first-run setup easy.
Run Django's configuration checks and test suite with:
python manage.py check
python manage.py testBoth checks run automatically in GitHub Actions for pushes and pull requests.
- Categories and price filters
- Pagination on the listings page
- Messaging between buyer and seller