Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Django Python Vscode Error Please Help
#1
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'
Quote
#2
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
Quote
#3
from django.urls import path

urlpatterns = [
    path('admin/', admin.site.urls),
]
Quote
#4
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
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  upload big file in Django with process bar and i get error : MemoryError ma_norouzifar 3 393 Aug-06-2019, 06:57 AM
Last Post: fishhook
  Django Connection Error erfanakbari1 1 348 Mar-21-2019, 08:09 AM
Last Post: Larz60+
  django-geoposition and unknown column error? PrateekG 3 1,106 Jun-26-2018, 11:56 AM
Last Post: PrateekG

Forum Jump:


Users browsing this thread: 1 Guest(s)