How to Start a Django REST Framework project

Lately I’ve been working with Django REST framework.  Here are some notes to get you started:

1. Create a folder for your project:

2. Create a virtualenv to isolate dependencies, and activate it:

3. Install Django and Django REST framework:

4. ‘Start’ (create) your new project:

5. ‘Start’ (create) your initial app:

6. Sync your database:

7. Create a superuser:

That’s it!  Now you can launch your project by invoking the runserver command:

Pull up http://127.0.0.1:8000/ in a browser window to see your project running from your local box.

Leave a Reply

Your email address will not be published. Required fields are marked *