Clone the repository and do the following to get it working
- python manage.py migrate
- python manage.py loaddata fixtures.json
- python manage.py createsuperuser //to create superuser
- Go to localhost:8000/admin //enter superuser credential
- Add the codes
Then it is working:
Initially to get the patterns:
url: localhost:8000/
In response: {'pattern': ''}
To update pattern:
url: localhost:8000/update/pattern/
post with data: {'code':'', 'pattern': ''}
In response: {'status':'success', 'pattern':''} or {'status':'failure', 'pattern':}
I have used the string for the pattern so, create the string from the form element for post and split the string for updating the form element.