You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/python/learn-django-in-visual-studio-step-04-full-django-project-template.md
+24-28Lines changed: 24 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ description: A walkthrough of Django basics in the context of Visual Studio proj
5
5
ms.date: 02/16/2022
6
6
ms.custom: devdivchpfy22
7
7
ms.topic: tutorial
8
-
author: ijoosong
9
-
ms.author: joesong
8
+
author: cwebster-99
9
+
ms.author: cowebster
10
10
manager: jmartens
11
11
ms.technology: vs-python
12
12
@@ -35,7 +35,7 @@ The template also provides basic authentication, which is covered in [Step 5](le
35
35
36
36
1. In Visual Studio, go to **Solution Explorer**, right-click the **LearningDjango** solution created earlier in this tutorial. Then, select **Add** > **New Project**. (If you want to use a new solution, select **File** > **New** > **Project** instead.)
37
37
38
-
1. In the **New Project** dialog, search for and select the **Django Web Project** template. Call the project "DjangoWeb", and then select **OK**.
38
+
1. In the **New Project** dialog, search for and select the **Django Web Project** template. Call the project "DjangoWeb", and then select **Create**.
39
39
40
40
1. As the template includes a *requirements.txt* file, Visual Studio prompts for the location to install the dependencies. When prompted, choose the option, **Install into a virtual environment**, and in the **Add Virtual Environment** dialog select **Create** to accept the defaults.
41
41
@@ -171,34 +171,30 @@ The Django project's *urls.py* file as created by the "Django Web Project" templ
171
171
172
172
```python
173
173
from datetime import datetime
174
-
from django.conf.urls import url
175
-
import django.contrib.auth.views
174
+
from django.urls import path
175
+
from django.contrib import admin
176
+
from django.contrib.auth.views import LoginView, LogoutView
Copy file name to clipboardExpand all lines: docs/python/learn-django-in-visual-studio-step-05-django-authentication.md
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ description: A walkthrough of Django basics in the context of Visual Studio proj
5
5
ms.date: 02/16/2022
6
6
ms.custom: devdivchpfy22
7
7
ms.topic: tutorial
8
-
author: ijoosong
9
-
ms.author: joesong
8
+
author: cwebster-99
9
+
ms.author: cowebster
10
10
manager: jmartens
11
11
ms.technology: vs-python
12
12
@@ -154,18 +154,15 @@ The following steps exercise the authentication flow and describe the parts of t
154
154
155
155
1. Install the docutils Python package into your environment. A great way to install is to add "docutils" to your *requirements.txt* file. Then, go to **Solution Explorer**, expand the project, expand the **Python Environments** node, and then right-click the environment you're using and select **Install from requirements.txt**.
156
156
157
-
1. Open the Django project's *urls.py* file and remove the default comments from the following entries:
157
+
1. Open the Django project's *urls.py* file and add the following:
@@ -178,7 +175,7 @@ The following steps exercise the authentication flow and describe the parts of t
178
175
1. The final part to the authentication flow is logging off. As you can see in *loginpartial.html*, the **Log off** link simply does a POST to the relative URL "/login", which is handled by the built-in view `django.contrib.auth.views.logout`. This view doesn't display any UI and just navigates to the home page (as shown in *urls.py* for the "^logout$" pattern). If you want to display a logoff page, first change the URL pattern as follows to add a "template_name" property and remove the "next_page" property:
Copy file name to clipboardExpand all lines: docs/python/managing-python-environments-in-visual-studio.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
title: Manage Python environments and interpreters
3
3
description: Use the Python Environments window to manage global, virtual, and conda environments. Install Python interpreters and packages and assign environments to Visual Studio projects.
4
-
ms.date: 12/11/2021
4
+
ms.date: 12/12/2022
5
5
ms.customL: devdivchpfy22
6
6
ms.topic: how-to
7
-
author: ijoosong
8
-
ms.author: joesong
7
+
author: cwebster-99
8
+
ms.author: cowebster
9
9
manager: jmartens
10
10
ms.technology: vs-python
11
11
ms.workload:
@@ -296,7 +296,7 @@ To correct an environment you wish to keep, first try using its installer's **Re
296
296
Use the following steps to modify the registry directly. Visual Studio automatically updates the**Python Environments** window when you make changes to the registry.
297
297
298
298
1. Run *regedit.exe*.
299
-
1. Navigate to **HKEY_LOCAL_MACHINE\SOFTWARE\Python** or **HKEY_CURRENT_USER\SOFTWARE\Python**. For IronPython, look for **IronPython** instead.
299
+
1. Navigate to **HKEY_LOCAL_MACHINE\SOFTWARE\Python** or **HKEY_CURRENT_USER\SOFTWARE\Python**. For 32-bit versions of Python, the registry key can under **HKEY_LOCAL_MACHINE\Software\Wow6432Node\Python**. For IronPython, look for **IronPython** instead.
300
300
1. Expand the node that matches the distribution, such as **Python Core** for CPython or **ContinuumAnalytics** for Anaconda. For IronPython, expand the version number node.
301
301
1. Inspect the values under the **InstallPath** node:
0 commit comments