microsoft / microsoft/PTVS

No IntelliSense when import a new created django app.

Open
#7,701 2 comments 0 reactions 1 assignee View on GitHub

@bschnurr is already working on this.

Since Aug 18, 2023.

needs repro
Dominant language
C#
Stars
2.6k
Forks
680
Avg merge
39m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.