Issue
This may be a noob question for some of you to answer, but I'm fairly new to the Anaconda software. I recently downloaded the django REST framework (version 3.1.3) I'm trying to develop a web app with the framework in Spyder IDE but I'm not exactly sure how to start it. I read the framework documentation at http://www.django-rest-framework.org/tutorial/quickstart/ but it's kind of vague. I want to know how exactly I can start the new app "quickstart".
Solution
Django Rest Framework is, in a way, a wrapper over Django that makes building REST services in Django easy.
Regardless of your IDE, it seems like you haven't got a hang of Django
per se.
To start an app quickstart
,
- Install Python and pip
- Install Django using pip:
pip install django
should do the trick. - Setup a database
- Setup your first django app
django-admin.py startproject quickstart
This would install Django and a Django app called quickstart. Your best place to start learning Django would be this excellent tutorial: http://www.tangowithdjango.com/book17/
Also, please look at the Django docs, which are very exhaustive: https://docs.djangoproject.com/en/1.7/
Please note, that both the above links are for Django 1.7.
However, if you do know about Django, then you just need to pip install djangorestframework
, add it to your INSTALLED_APPS
in settings.py
and get started.
Answered By - Newtt
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.