gpranav88-zz / clothzy-MVP

Clothzy MVP
0 stars 0 forks source link

Feedback form API (POST data to backend) #25

Open agamdua opened 10 years ago

agamdua commented 10 years ago

Reassigned to Pranav since the feedback form is doing everything through a jQuery XHR POST.

All one needs to do is add the URL of the API on which the data is to be received.

Link to the docs: https://github.com/agamdua/clothzy/blob/dj-ng/clothzy/static/js/jquery.feedback_me.js#L26

and the source where the POST is happening: https://github.com/agamdua/clothzy/blob/dj-ng/clothzy/static/js/jquery.feedback_me.js#L543

agamdua commented 10 years ago

There's a really stable way to add time stamps and other fields to django models that are reused in many packages.

Fun Django package: django-model-utils permalink to TimeStampedModel - just inherit it as another class in the required Django model.