mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-01 14:33:42 +03:00
Documentation fix for django-admin commands (#6232)
* fix django-admin commands on quickstart doc * fix django-admin commands on tutorial/1-serialization doc * fix django-admin command on readme * fix django-admin command on docs/community/project-management.md
This commit is contained in:
parent
b41a6cfa38
commit
18ad3290ef
|
@ -76,7 +76,7 @@ Startup up a new project like so...
|
||||||
|
|
||||||
pip install django
|
pip install django
|
||||||
pip install djangorestframework
|
pip install djangorestframework
|
||||||
django-admin.py startproject example .
|
django-admin startproject example .
|
||||||
./manage.py migrate
|
./manage.py migrate
|
||||||
./manage.py createsuperuser
|
./manage.py createsuperuser
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@ When any user visible strings are changed, they should be uploaded to Transifex
|
||||||
|
|
||||||
# 1. Update the source django.po file, which is the US English version.
|
# 1. Update the source django.po file, which is the US English version.
|
||||||
cd rest_framework
|
cd rest_framework
|
||||||
django-admin.py makemessages -l en_US
|
django-admin makemessages -l en_US
|
||||||
# 2. Push the source django.po file to Transifex.
|
# 2. Push the source django.po file to Transifex.
|
||||||
cd ..
|
cd ..
|
||||||
tx push -s
|
tx push -s
|
||||||
|
@ -173,7 +173,7 @@ When a translator has finished translating their work needs to be downloaded fro
|
||||||
tx pull -a --minimum-perc 10
|
tx pull -a --minimum-perc 10
|
||||||
cd rest_framework
|
cd rest_framework
|
||||||
# 4. Compile the binary .mo files for all supported languages.
|
# 4. Compile the binary .mo files for all supported languages.
|
||||||
django-admin.py compilemessages
|
django-admin compilemessages
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Okay, we're ready to get coding.
|
||||||
To get started, let's create a new project to work with.
|
To get started, let's create a new project to work with.
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
django-admin.py startproject tutorial
|
django-admin startproject tutorial
|
||||||
cd tutorial
|
cd tutorial
|
||||||
|
|
||||||
Once that's done we can create an app that we'll use to create a simple Web API.
|
Once that's done we can create an app that we'll use to create a simple Web API.
|
||||||
|
|
|
@ -19,9 +19,9 @@ Create a new Django project named `tutorial`, then start a new app called `quick
|
||||||
pip install djangorestframework
|
pip install djangorestframework
|
||||||
|
|
||||||
# Set up a new project with a single application
|
# Set up a new project with a single application
|
||||||
django-admin.py startproject tutorial . # Note the trailing '.' character
|
django-admin startproject tutorial . # Note the trailing '.' character
|
||||||
cd tutorial
|
cd tutorial
|
||||||
django-admin.py startapp quickstart
|
django-admin startapp quickstart
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
The project layout should look like:
|
The project layout should look like:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user