If you have already integrated django registrations on your website, then you do not need to add tastypie only for logging in, logging out, etc.
Check out the documentation for registering django at https://django-registration.readthedocs.org/en/latest/quickstart.html#setting-up-urls . If you follow the steps for the default installation, which should provide you with URLs for logging in, logging out, etc. If the βRequired Templatesβ section doesn't make sense to you, read more about django at http://www.djangobook.com/en/2.0/chapter04.html
Once you have these URLs, you can simply use the AFNetworking library in iOS to create HTTP requests for login / logout, etc.
Typically, a django view for registration will execute GET and POST requests in different ways. If you make a GET request, it will format the registration form and display the HTML page. If you make a POST request, it will first extract the information required for registration from the request and create a new user. This will happen automatically for the Internet.
Using AFNetworking, you can create a view that displays the form locally and then makes the corresponding POST request after the user wants to register. The same procedure is used to enter the system.
e7mac source share