Skip to content

Commit

Permalink
Documentation fix for django-admin commands (#6232)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Jufebrown authored and tomchristie committed Oct 3, 2018
1 parent b41a6cf commit 18ad329
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Startup up a new project like so...

pip install django
pip install djangorestframework
django-admin.py startproject example .
django-admin startproject example .
./manage.py migrate
./manage.py createsuperuser

Expand Down
4 changes: 2 additions & 2 deletions docs/community/project-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.
cd ..
tx push -s
Expand All @@ -173,7 +173,7 @@ When a translator has finished translating their work needs to be downloaded fro
tx pull -a --minimum-perc 10
cd rest_framework
# 4. Compile the binary .mo files for all supported languages.
django-admin.py compilemessages
django-admin compilemessages

---

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/1-serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Okay, we're ready to get coding.
To get started, let's create a new project to work with.

cd ~
django-admin.py startproject tutorial
django-admin startproject tutorial
cd tutorial

Once that's done we can create an app that we'll use to create a simple Web API.
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Create a new Django project named `tutorial`, then start a new app called `quick
pip install djangorestframework

# 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
django-admin.py startapp quickstart
django-admin startapp quickstart
cd ..

The project layout should look like:
Expand Down

0 comments on commit 18ad329

Please sign in to comment.