Live at
https://serene-tundra-55963.herokuapp.com/
A semantic web application to barter for items online.
What semantic functionality is available?
market
page will rank the items that has the same category as the user's most favourited category.
How does it work?
The functionality can be found on market
view.
most_favourited = statistics.mode(
[item.category for item in Item.objects.filter(favourited_by=request.user)]
)
results \
.extra(select={'match': f'category="{most_favourited}"'}) \
.order_by('-match')
The results are ordered by the category that match the most favourited items first.
https://serene-tundra-55963.herokuapp.com/admin
Following pages are available:
*/market
*/add_item
*/login
*/logout
*/register
*/settings
*/traded_items
*/item/?id=<item-id>
(Replace<item-id>
with actual item id)*/profile
*/admin
Where *
represents the home URL:
https://serene-tundra-55963.herokuapp.com/
Following pages require login
- profile
- traded_items
- add_item
- settings
Following pages are not mobile-friendly ❌📱:
- market
- traded_items
- item
All pages except admin
and index
are defined in market/views.py
and registered in market/urls.py