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/porting/port-migrate-and-upgrade-visual-studio-projects.md
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Port, Migrate, and Upgrade Projects
3
3
description: A reference for the support in Visual Studio 2017 for projects created in earlier versions of Visual Studio, and how Visual Studio decides when it needs to migrate a project.
4
-
ms.date: 03/14/2018
4
+
ms.date: 06/19/2018
5
5
ms.prod: visual-studio-dev15
6
6
ms.technology: vs-ide-general
7
7
ms.topic: conceptual
@@ -25,10 +25,9 @@ helpviewer_keywords:
25
25
26
26
Each new version of Visual Studio generally supports most previous types of projects, files, and other assets. You can work with them [as you always have](../ide/solutions-and-projects-in-visual-studio.md), and provided that you don't depend on newer features, Visual Studio generally tries to preserve backwards compatibility with previous versions like Visual Studio 2015, Visual Studio 2013, and Visual Studio 2012. (See the [Release Notes](https://visualstudio.microsoft.com/vs/release-notes/) for which features are specific to which versions.)
27
27
28
-
Support for some project types also changes over time. A newer version of Visual Studio may no longer support certain projects, or requires updating a project such that it's no longer backwards compatible. For current status on migration issues, refer to the [Visual Studio Developer Community site](https://developercommunity.visualstudio.com).
28
+
Support for some project types also changes over time. A newer version of Visual Studio may no longer support certain projects at all, or requires updating a project such that it's no longer backwards compatible. For current status on migration issues, refer to the [Visual Studio Developer Community site](https://developercommunity.visualstudio.com).
29
29
30
-
> [!Important]
31
-
> This present article provides details only for project types in Visual Studio 2017 that involve migration. It does not include supported project types that have no migration issues; that list is found on [Platform Targeting and Compatibility](/visualstudio/productinfo/vs2017-compatibility-vs). Note also that some project types are no longer supported in Visual Studio 2017 at all and therefore cannot be migrated.
30
+
This present article provides details only for project types that Visual Studio 2017 can migrate. The article excludes project types that are no longer supported in Visual Studio 2017 and cannot therefore be migrated. The article also excludes supported project types that have no migration issues; that list is found on [Platform Targeting and Compatibility](https://www.visualstudio.com/productinfo/vs2017-compatibility-vs).
32
31
33
32
> [!Important]
34
33
> Certain project types require installing the appropriate workloads through the Visual Studio installer. If you don't have the workload installed, Visual Studio reports an unknown or incompatible project type. In that case, check your installation options and try again. Again, see the [Platform Targeting and Compatibility](/visualstudio/productinfo/vs2017-compatibility-vs) article for details on project support in Visual Studio 2017.
Copy file name to clipboardExpand all lines: docs/python/interactive-repl-ipython.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: IPython REPL (interactive window)
3
3
description: Using the Visual Studio interactive window in IPython mode for a user-friendly interactive development environment with Interactive Parallel Computing features.
4
-
ms.date: 07/13/2017
4
+
ms.date: 06/19/2018
5
5
ms.prod: visual-studio-dev15
6
6
ms.technology: vs-python
7
7
ms.topic: conceptual
@@ -22,9 +22,9 @@ For this walkthrough you should have the [Anaconda](https://www.continuum.io) en
22
22
> [!Note]
23
23
> IronPython does not support IPython, despite the fact that you can select it on the Interactive Options form. FOr more information see the [feature request](https://github.com/Microsoft/PTVS/issues/84).
24
24
25
-
1. Open Visual Studio, switch to the Python Environments window (**View > Other Windows > Python Environments**), and select the Python environment that appeared when you started IPython.
25
+
1. Open Visual Studio, switch to the Python Environments window (**View > Other Windows > Python Environments**), and select an Anaconda environment.
26
26
27
-
1.Look at the **Packages**(or **pip**) tab and ensure that `IPython` and `matplotlib` are listed. If not, install them here.
27
+
1.Examine the **Packages (Conda)**tab (which may appear as **pip** or **Packages**) for that environment to make sure that `IPython` and `matplotlib` are listed. If not, install them here. (See [Python Environments Windows - Packages tab](python-environments-window-tab-reference.md).)
28
28
29
29
1. Select the **Overview** tab and select **Use IPython interactive mode.** (In Visual Studio 2015, select **Configure interactive options** to open the **Options** dialog, then set **Interactive Mode** to IPython, and select **OK**).
30
30
@@ -44,7 +44,7 @@ For this walkthrough you should have the [Anaconda](https://www.continuum.io) en
44
44
45
45

46
46
47
-
1. Instead of typing in the REPL, you can instead write code in the editor, select it, right-click, and select the **Send to interactive** command (or press Ctrl-Enter). Try pasting the code below into a new file in the editor, selecting it with Ctrl-A, then sending to the interactive window. (Note that Visual Studio sends the code as one unit to avoid giving you intermediate or partial graphs. Also note that if you don't have a Python project open with a different environment selected, Visual Studio opens an interactive window for whatever environment is selected as your default in the **Python Environments** window.)
47
+
1. Instead of typing in the REPL, you can instead write code in the editor, select it, right-click, and select the **Send to interactive** command (or press Ctrl+Enter). Try pasting the code below into a new file in the editor, selecting it with Ctrl-A, then sending to the interactive window. (Visual Studio sends the code as one unit to avoid giving you intermediate or partial graphs. And if you don't have a Python project open with a different environment selected, Visual Studio opens an interactive window for whatever environment is selected as your default in the **Python Environments** window.)
Copy file name to clipboardExpand all lines: docs/python/learn-django-in-visual-studio-step-01-project-and-solution.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.workload:
13
13
- data-science
14
14
---
15
15
16
-
# Tutorial step 1: Get started with the Django web framework in Visual Studio
16
+
# Tutorial: Get started with the Django web framework in Visual Studio
17
17
18
18
[Django](https://www.djangoproject.com/) is a high-level Python framework designed for rapid, secure, and scalable web development. This tutorial explores the Django framework in the context of the project templates that Visual Studio provides to streamline the creation of Django-based web apps.
19
19
@@ -202,7 +202,7 @@ At this point, the basic Django project does not contain any apps. You create an
202
202
> [!div class="nextstepaction"]
203
203
> [Create a Django app with views and page templates](learn-django-in-visual-studio-step-02-create-an-app.md)
204
204
205
-
## Going deeper
205
+
## Go deeper
206
206
207
207
- Django project code: [Writing your first Django app, part 1](https://docs.djangoproject.com/en/2.0/intro/tutorial01/) (docs.djangoproject.com)
208
208
- Administrative utility: [django-admin and manage.py](https://docs.djangoproject.com/en/2.0/ref/django-admin/) (docs.djangoproject.com)
Copy file name to clipboardExpand all lines: docs/python/learn-django-in-visual-studio-step-02-create-an-app.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.workload:
13
13
- data-science
14
14
---
15
15
16
-
# Tutorial step 2: Create a Django app with views and page templates
16
+
# Step 2: Create a Django app with views and page templates
17
17
18
18
**Previous step: [Create a Visual Studio project and solution](learn-django-in-visual-studio-step-01-project-and-solution.md)**
19
19
@@ -267,7 +267,7 @@ Answer: When Django looks for a template referred to in the `render` function, i
267
267
> [!div class="nextstepaction"]
268
268
> [Serve static files, add pages, and use template inheritance](learn-django-in-visual-studio-step-03-serve-static-files-and-add-pages.md)
269
269
270
-
## Going deeper
270
+
## Go deeper
271
271
272
272
- [Writing your first Django app, part 1- views](https://docs.djangoproject.com/en/2.0/intro/tutorial01/#write-your-first-view) (docs.djangoproject.com)
273
273
- For more capabilities of Django templates, such as includes and inheritance, see [The Django template language](https://docs.djangoproject.com/en/2.0/ref/templates/language/) (docs.djangoproject.com)
Copy file name to clipboardExpand all lines: docs/python/learn-django-in-visual-studio-step-03-serve-static-files-and-add-pages.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.workload:
13
13
- data-science
14
14
---
15
15
16
-
# Tutorial step 3: Serve static files, add pages, and use template inheritance
16
+
# Step 3: Serve static files, add pages, and use template inheritance
17
17
18
18
**Previous step: [Create a Django app with views and page templates](learn-django-in-visual-studio-step-02-create-an-app.md)**
19
19
@@ -272,7 +272,7 @@ The following steps demonstrate inheritance:
272
272
> [!div class="nextstepaction"]
273
273
> [Use the full Django Web Project template](learn-django-in-visual-studio-step-04-full-django-project-template.md)
274
274
275
-
## Going deeper
275
+
## Go deeper
276
276
277
277
- [Writing your first Django app, part 3 (views)](https://docs.djangoproject.com/en/2.0/intro/tutorial03/) (docs.djangoproject.com)
278
278
- For more capabilities of Django templates, such as control flow, see [The Django template language](https://docs.djangoproject.com/en/2.0/ref/templates/language/) (docs.djangoproject.com)
Copy file name to clipboardExpand all lines: docs/python/learn-django-in-visual-studio-step-05-django-authentication.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.workload:
13
13
- data-science
14
14
---
15
15
16
-
# Tutorial step 5: Authenticate users in Django
16
+
# Step 5: Authenticate users in Django
17
17
18
18
**Previous step: [Use the full Django Web Project template](learn-django-in-visual-studio-step-04-full-django-project-template.md)**
19
19
@@ -28,7 +28,7 @@ In this step you learn:
28
28
29
29
The following steps exercise the authentication flow and describe the parts of the project that are involved:
30
30
31
-
1. If you have not already followed the instructions in the `readme.html` file in the project root to create a super user (administrator) account, do so now.
31
+
1. If you've not already followed the instructions in the `readme.html` file in the project root to create a super user (administrator) account, do so now.
32
32
33
33
1. Run the app from Visual Studio using **Debug** > **Start Debugging** (F5). When the app appears in the browser, observe that **Log in** appears on the upper right of the nav bar.
34
34
@@ -57,7 +57,7 @@ The following steps exercise the authentication flow and describe the parts of t
57
57
{% endif %}
58
58
```
59
59
60
-
1. Because no user is authenticated when you first start the app, this template code renders only the "Log in" link to the relative path "login". As specified in `urls.py` as shown in the previous section, that route is mapped to the `django.contrib.auth.views.login` view that is given the following data:
60
+
1. Because no user is authenticated when you first start the app, this template code renders only the "Log in" link to the relative path "login". As specified in `urls.py` (as shown in the previous section), that route is mapped to the `django.contrib.auth.views.login` view. That view receives the following data:
61
61
62
62
```python
63
63
{
@@ -90,7 +90,7 @@ The following steps exercise the authentication flow and describe the parts of t
90
90
'placeholder':'Password'}))
91
91
```
92
92
93
-
As you can see, this form class derives from `AuthenticationForm` and specifically overrides the username and password fields to add placeholder text. The Visual Studio template includes this explicit code on the assumption that you'll likely want to customize the form, such as adding password strength validation.
93
+
As you can see, this form class derives from `AuthenticationForm` and specifically overrides the username and password fields to add placeholder text. The Visual Studio template includes this explicit code on the assumption that you likely want to customize the form, such as adding password strength validation.
94
94
95
95
1. When you navigate to the login page, then, the app renders the `login.html` template. The variables `{{ form.username }}` and `{{ form.password }}` render the `CharField` forms from `BootstrapAuthenticationForm`. There's also a built-in section to show validation errors, and a ready-made element for social logins if you choose to add those services.
96
96
@@ -139,13 +139,13 @@ The following steps exercise the authentication flow and describe the parts of t
139
139
{% endblock %}
140
140
```
141
141
142
-
1. When you submit the form, Django attempts to authenticate the credentials you provide (such as the super user's credentials). If authentication fails, you remain on the same page but `form.errors` set to true. If authentication is successful, Django navigates to the relative URL in the "next" field, `<inputtype="hidden"name="next"value="/" />`, which in this case is the home page (`/`).
142
+
1. When you submit the form, Django attempts to authenticate your credentials (such as the super user's credentials). If authentication fails, you remain on the current page but `form.errors` set to true. If authentication is successful, Django navigates to the relative URL in the "next" field, `<inputtype="hidden"name="next"value="/" />`, which in this case is the home page (`/`).
143
143
144
144
1. Now, when the home page is rendered again, the `user.is_authenticated` property is true when the `loginpartial.html` template is rendered. As a result, you see a "Hello (username)" message and "Log off". You can use `user.is_authenticated` in other parts of the app to check authentication.
145
145
146
146

147
147
148
-
1. To check whether the authenticated user is authorized to access specific resources, you'll need to retrieve user-specific permissions from your database for that user. For more details, see [Using the Django authentication system](https://docs.djangoproject.com/en/2.0/topics/auth/default/#permissions-and-authorization) (Django docs).
148
+
1. To check whether the authenticated user is authorized to access specific resources, you need to retrieve user-specific permissions from your database. For more information, see [Using the Django authentication system](https://docs.djangoproject.com/en/2.0/topics/auth/default/#permissions-and-authorization) (Django docs).
149
149
150
150
1. The super user or administrator, in particular, is authorized to access the built-in Django administrator interfaces using the relative URLs "/admin/" and "/admin/doc/". To enable these interfaces, open the Django project's `urls.py` and remove the comments from the following entries:
151
151
@@ -195,14 +195,14 @@ The following steps exercise the authentication flow and describe the parts of t
195
195
196
196
### Question: what is the purpose of the {% crsf_token %} tag that appears in the \<form\> elements?
197
197
198
-
Answer: The `{% crsf_token %}` tag includes Django's built-in [cross-site request forgery (crsf) protection](https://docs.djangoproject.com/en/2.0/ref/csrf/) (Django docs). You typically add this tag to any element that involves POST, PUT, or DELETE request methods, such as a form, and the template rendering function (`render`) inserts the necessary protection.
198
+
Answer: The `{% crsf_token %}` tag includes Django's built-in [cross-site request forgery (crsf) protection](https://docs.djangoproject.com/en/2.0/ref/csrf/) (Django docs). You typically add this tag to any element that involves POST, PUT, or DELETE request methods, such as a form. The template rendering function (`render`) then inserts the necessary protection.
199
199
200
200
## Next steps
201
201
202
202
> [!div class="nextstepaction"]
203
203
> [Use the Polls Django Web Project template](learn-django-in-visual-studio-step-06-polls-django-web-project-template.md)
204
204
205
-
## Going deeper
205
+
## Go deeper
206
206
207
207
- [User authentication in Django](https://docs.djangoproject.com/en/2.0/topics/auth/) (docs.djangoproject.com)
208
208
- Tutorial source code on GitHub: [Microsoft/python-sample-vs-learning-django](https://github.com/Microsoft/python-sample-vs-learning-django)
Copy file name to clipboardExpand all lines: docs/python/learn-flask-visual-studio-step-03-serve-static-files-add-pages.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.workload:
13
13
- data-science
14
14
---
15
15
16
-
# Tutorial step 3: Serve static files, add pages, and use template inheritance
16
+
# Step 3: Serve static files, add pages, and use template inheritance
17
17
18
18
**Previous step: [Create a Flask app with views and page templates](learn-flask-visual-studio-step-02-create-app.md)**
19
19
@@ -278,7 +278,7 @@ The following steps demonstrate inheritance:
278
278
> [!div class="nextstepaction"]
279
279
> [Use the full Flask Web Project template](learn-flask-visual-studio-step-04-full-flask-project-template.md)
280
280
281
-
## Going deeper
281
+
## Go deeper
282
282
283
283
- For more capabilities of Jinja templates, such as control flow, see [Jinja Template Designer Documentation](http://jinja.pocoo.org/docs/2.10/templates) (jinja.pocoo.org)
284
284
- For details on using `url_for`, see [url_for](http://flask.pocoo.org/docs/1.0/api/?highlight=url_for#flask.url_for) within the Flask Application object documentation (flask.pocoo.org)
0 commit comments