Skip to content

Commit 18ad329

Browse files
Jufebrownlovelydinosaur
authored andcommitted
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
1 parent b41a6cf commit 18ad329

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Startup up a new project like so...
7676

7777
pip install django
7878
pip install djangorestframework
79-
django-admin.py startproject example .
79+
django-admin startproject example .
8080
./manage.py migrate
8181
./manage.py createsuperuser
8282

docs/community/project-management.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ When any user visible strings are changed, they should be uploaded to Transifex
152152

153153
# 1. Update the source django.po file, which is the US English version.
154154
cd rest_framework
155-
django-admin.py makemessages -l en_US
155+
django-admin makemessages -l en_US
156156
# 2. Push the source django.po file to Transifex.
157157
cd ..
158158
tx push -s
@@ -173,7 +173,7 @@ When a translator has finished translating their work needs to be downloaded fro
173173
tx pull -a --minimum-perc 10
174174
cd rest_framework
175175
# 4. Compile the binary .mo files for all supported languages.
176-
django-admin.py compilemessages
176+
django-admin compilemessages
177177

178178
---
179179

docs/tutorial/1-serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Okay, we're ready to get coding.
3333
To get started, let's create a new project to work with.
3434

3535
cd ~
36-
django-admin.py startproject tutorial
36+
django-admin startproject tutorial
3737
cd tutorial
3838

3939
Once that's done we can create an app that we'll use to create a simple Web API.

docs/tutorial/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Create a new Django project named `tutorial`, then start a new app called `quick
1919
pip install djangorestframework
2020

2121
# Set up a new project with a single application
22-
django-admin.py startproject tutorial . # Note the trailing '.' character
22+
django-admin startproject tutorial . # Note the trailing '.' character
2323
cd tutorial
24-
django-admin.py startapp quickstart
24+
django-admin startapp quickstart
2525
cd ..
2626

2727
The project layout should look like:

0 commit comments

Comments
 (0)