Skip to content

Commit eec4472

Browse files
committed
remove password field, edits
1 parent 4e7d5ff commit eec4472

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

source/get-started/connect-mongodb.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ you can create a Django project that connects to MongoDB.
2424

2525
.. code-block:: bash
2626

27-
django-admin startproject quickstart --template https://github.com/mongodb-labs/django-mongodb-project/archive/refs/heads/{+django-version-number+}.x.zip
27+
django-admin startproject quickstart --template https://github.com/mongodb-labs/django-mongodb-project/archive/refs/heads/{+django-version+}.x.zip
2828

2929
.. note:: Project Template
3030

source/get-started/create-admin.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ in the Django documentation.
3737
after each entry:
3838

3939
.. code-block:: bash
40+
:copyable: false
4041

4142
Username: admin
4243
Email address: [email protected]
@@ -106,8 +107,8 @@ in the Django documentation.
106107
:alt: The list of viewers displayed on the admin site.
107108

108109
Then, click on :guilabel:`Abigail Carter` at the top of the list.
109-
The site displays the :guilabel:`Name`, :guilabel:`Email`, and :guilabel:`Password`
110-
of the selected viewer:
110+
The site displays the :guilabel:`Name` and :guilabel:`Email` of
111+
the selected viewer:
111112

112113
.. figure:: /includes/figures/django_admin_edit_viewer.png
113114
:alt: The information of your selected viewer.

source/get-started/create-app.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To learn more about the ``sample_mflix`` database, see :atlas:`Sample Mflix Data
3131

3232
.. code-block:: bash
3333

34-
python manage.py startapp sample_mflix --template https://github.com/mongodb-labs/django-mongodb-app/archive/refs/heads/{+django-version-number+}.x.zip
34+
python manage.py startapp sample_mflix --template https://github.com/mongodb-labs/django-mongodb-app/archive/refs/heads/{+django-version+}.x.zip
3535

3636
.. note:: App Template
3737

@@ -57,7 +57,7 @@ To learn more about the ``sample_mflix`` database, see :atlas:`Sample Mflix Data
5757
represents the embedded document values stored in the ``Movie`` model.
5858

5959
The ``Viewer`` model represents the ``sample_mflix.users`` collection
60-
and stores account credentials for movie viewers.
60+
and stores account information for movie viewers.
6161

6262
.. step:: Create views to display data
6363

source/get-started/write-data.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ and delete functions on your model objects.
5151
:language: python
5252
:copyable:
5353

54-
.. step:: Update your movie object
54+
.. step:: Update your Movie object
5555

5656
The ``Movie`` object created in the previous step has inaccurate data:
5757
the ``runtime`` value is ``217``, but the correct ``runtime`` value is ``117``.
-11.4 KB
Loading
-12.1 KB
Loading

source/includes/get-started/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ class Meta:
2525
def __str__(self):
2626
return self.title
2727

28-
class Viewer(settings.AUTH_USER_MODEL):
28+
class Viewer(models.Model):
2929
name = models.CharField(max_length=100)
3030
email = models.CharField(max_length=200)
31-
password = models.CharField(max_length=100)
3231

3332
class Meta:
3433
db_table = "users"

source/includes/get-started/read-write-data.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
# start-insert-viewer
2525
viewer = Viewer.objects.create(
2626
name="Abigail Carter",
27-
28-
password="secure123"
27+
2928
)
3029
# end-insert-viewer
3130

0 commit comments

Comments
 (0)