Skip to content

estevopaz/simple_django_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Django example

Credentials

Admin credentials:

  • user: admin
  • pass: admin012

API user credentials:

  • user: api_new
  • pass: admin012

How to test create a new "New":

curl http://127.0.0.1:8000/api/new \
 -X POST \
 -H "Content-Type: application/json" \
 -H "X-CSRFToken: db05Iw8QnloBgv84LnhwTom5NTbFtJnb" \
 -H "Cookie: csrftoken=db05Iw8QnloBgv84LnhwTom5NTbFtJnb" \
 -d '{"user":"api_new","pass":"admin012","title":"Title_001","body":"Body_001","pub_date":"2016-01-01"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published