mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Merge 3d3f09cfdb
into 38a0e3e627
This commit is contained in:
commit
6e87e4d3d5
|
@ -17,8 +17,12 @@ Create a new Django project named `tutorial`, then start a new app called `quick
|
||||||
# Install Django and Django REST framework into the virtualenv
|
# Install Django and Django REST framework into the virtualenv
|
||||||
pip install django
|
pip install django
|
||||||
pip install djangorestframework
|
pip install djangorestframework
|
||||||
|
|
||||||
# Create a new app
|
# Create a new project
|
||||||
|
django-admin.py tutorial
|
||||||
|
|
||||||
|
# Create a new app within the project
|
||||||
|
cd tutorial
|
||||||
python manage.py startapp quickstart
|
python manage.py startapp quickstart
|
||||||
|
|
||||||
Next you'll need to get a database set up and synced. If you just want to use SQLite for now, then you'll want to edit your `tutorial/settings.py` module to include something like this:
|
Next you'll need to get a database set up and synced. If you just want to use SQLite for now, then you'll want to edit your `tutorial/settings.py` module to include something like this:
|
||||||
|
@ -125,6 +129,7 @@ We'd also like to set a few global settings. We'd like to turn on pagination, a
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
...
|
...
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
|
'quickstart',
|
||||||
)
|
)
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
REST_FRAMEWORK = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user