Go to file
2021-11-03 00:36:55 +00:00
Lengow CRUD fonctionnel 2016-02-14 21:40:28 +01:00
orders CRUD fonctionnel 2016-02-14 21:40:28 +01:00
static Ajout de Bootstrap, du template de base et de l'admin 2016-02-14 11:37:05 +01:00
templates/orders CRUD fonctionnel 2016-02-14 21:40:28 +01:00
.gitignore Dégrossissement du model order, des sous-models sont à venir 2016-02-12 15:03:00 +01:00
manage.py Ajout du site généré par django-admin 2016-02-12 14:02:37 +01:00
README.md Test Gogs qui casse l'affichage du markdown 2016-02-14 22:13:01 +01:00
renovate.json Add renovate.json 2021-11-03 00:36:55 +00:00
requirements.txt API terminée 2016-02-14 17:51:54 +01:00

Lengow

How to run

To run locally, do the usual :

  • Create a virtualenv
  • Install dependencies :
pip install -r requirements.txt
  • Clone the project
  • Inside virtualenv, do theses commands to create the database :
python manage.py makemigrations
python manage.py migrate
  • Finally, run the server :
python manage.py runserver

Grab orders from the API

Run this command insode virtualenv :

python manage.py sync

REST API

The REST API is available on http://localhost:8000/api/orders/

TODO

  • Create some sub-models and their required views to support more of the XML API (like addresses, tracking or cart informations)
  • Be more precise on the max-length, null and blank parameters in the order's model (XML is too flexible for real databases constraints)
  • Enable authentication for altering actions on the REST API