Commit graph

30 commits

Author SHA1 Message Date
fa684fb195 Add static/ folder to gitignore 2023-03-11 21:46:44 +08:00
7ca5948e59 Added whitenoise library 2023-03-11 00:14:04 +08:00
62d9009fd7 Change from debug to production 2023-03-11 00:10:19 +08:00
3dfbb6dced Add static root 2023-03-11 00:08:35 +08:00
bb2204427a Configure allowed hosts 2023-03-10 23:24:52 +08:00
c5de71b630 Allow all hosts 2023-03-10 23:21:02 +08:00
c90bd77ff4 Allow all for CORS 2023-03-10 23:11:07 +08:00
2a9a81d88d Move sensitive info to .env file and reset db 2023-03-10 23:09:20 +08:00
0f317ebbf5 Change domain and sitename to github pages url 2023-03-10 21:37:34 +08:00
4dc7f6bb8d Prepare backend for deployment 2023-03-10 12:44:14 +08:00
72130ca09a Revised date formatting for serializers.py 2023-03-09 23:20:36 +08:00
65a95a90af Move user list serializer and view to accounts app and restrict all endpoints to logged in users only 2023-03-07 23:48:52 +08:00
71583894bb Include username in logs endpoint 2023-03-07 22:20:34 +08:00
dd115197f4 Only allow get method in user list endpoint 2023-03-07 20:39:33 +08:00
d2a869b685 Added user list url endpoints 2023-03-07 20:39:16 +08:00
3205880bde Added least stocked product url 2023-03-07 19:28:38 +08:00
78c9a67f07 Sort logs and history in descending order 2023-03-07 18:26:00 +08:00
9c8889df0e Changed history in products url to reflect quantity and date timestamp 2023-03-07 17:47:50 +08:00
17495c960b Added logs url 2023-03-07 17:23:39 +08:00
2ea9d7a1de Added history field to product model 2023-03-07 15:32:05 +08:00
ad866ca05f Installed django simple history and fixed models.py return __str__ 2023-03-07 15:26:44 +08:00
c486b12f33 Add id in serializer 2023-03-06 15:38:47 +08:00
96ab7ed1d4 Added domain for frontend 2023-03-05 22:05:18 +08:00
d98c88482d Added products model 2023-03-05 21:56:48 +08:00
62237c9a3c Added corsheader 2023-02-28 22:40:37 +08:00
dab99b17cf Added accounts 2023-02-28 22:16:45 +08:00
2234100f17 Fixed api/v1 url not working and added initial djoser url 2023-02-28 01:02:43 +08:00
b95f17a358 Fixed config not pointing to itself and added djoser 2023-02-28 00:44:07 +08:00
d050013571 Added api urls 2023-02-28 00:26:48 +08:00
78e776177d Initial commit 2023-02-27 23:59:14 +08:00