mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Fixed a command for initializing the snippets app
I was following the example commands, but after cding into 'tutorials' then trying to run `python manage.py startapp snippets`, python said there was no manage.py to be found. The quickstart guide uses django-admin in the tutorial directory for the startapp command, so I'm adding that here.
This commit is contained in:
parent
5b388e8f83
commit
047322f63c
|
@ -38,7 +38,7 @@ To get started, let's create a new project to work with.
|
|||
|
||||
Once that's done we can create an app that we'll use to create a simple Web API.
|
||||
|
||||
python manage.py startapp snippets
|
||||
django-admin startapp snippets
|
||||
|
||||
We'll need to add our new `snippets` app and the `rest_framework` app to `INSTALLED_APPS`. Let's edit the `tutorial/settings.py` file:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user