microsoft / PTVS

Python Tools for Visual Studio
https://aka.ms/PTVS
Apache License 2.0
2.53k stars 676 forks source link

No IntelliSense when import a new created django app. #7701

Open linette-zyy opened 1 year ago

linette-zyy commented 1 year ago

Environment image

Steps to Reproduce 1.Create Blank Django Web Project 2.Create virtual environment 3.Right-click BasicProject in SE, select Add > New item > Django 1.9 App, specify the app name "HelloDjango" in the Name field and select OK 4.In the HelloDjango folder, modify views.py to match the code below, which defines a view named "index"

from django.shortcuts import render 
from django.http import HttpResponse 

# Create your views here. 
def index(request): 
    return HttpResponse("Hello, Django!") 

5.In the BasicProject folder, modify urls.py like below:

from django.urls import include, re_path 
import HelloDjango.views 

urlpatterns = [ 
    re_path(r'^$', HelloDjango.views.index, name='index'), 
    re_path(r'^home$', HelloDjango.views.index, name='home'), 
] 

Expected behavior I can get IntelliSense image

Actual behavior I can not get 'HelloDjango' IntelliSense image

linette-zyy commented 11 months ago

On today's latest build: 17.8.0 Preview 3.0 [34126.232.main], Python Package: 17.0.23262.1 I can not get 'django' & 'HelloDjango' IntelliSense django_HelloDjango