Python Forum
Django Python Vscode Error Please Help - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Django Python Vscode Error Please Help (/thread-18688.html)



Django Python Vscode Error Please Help - Smhbugra - May-27-2019

I get an error when I try to import some Django.


m595h-1



The error message is the following :Unable to import 'django.conf.urls' and 'django.contrib'


RE: Django Python Vscode Error Please Help - buran - May-27-2019

Please, don't post images, copy paste code in python tags.

Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.

Please, post the entire traceback that you get. We need to see the whole thing. Do not just give us the last line.
Take a time to read What to include in a post
Before you post any further, please, read carefully forum rules


RE: Django Python Vscode Error Please Help - m0ntecr1st0 - Jun-28-2019

from django.urls import path

urlpatterns = [
    path('admin/', admin.site.urls),
]



RE: Django Python Vscode Error Please Help - noisefloor - Jun-30-2019

Hi,

@Smhbugra : two possibilities:

1. you installed Django in way that your IDE doesn't find it.
2. The code you use is not compatible for your Django version. On routing, there have been some changes over time. Which Django version are you using?

Regards, noisefloor