Python Forum
Django Python Vscode Error Please Help
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'
Reply
#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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
from django.urls import path

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python django view error ZeeKolachi 1 233 Mar-18-2024, 03:14 PM
Last Post: Sowmya
Photo After using models.Model on my class Im getting 'ImproperlyConfigured' error Django khavro 1 2,150 Apr-05-2021, 03:11 PM
Last Post: SheeppOSU
  Error - ManyToMany Fields in Django rob25111 0 1,504 Jan-17-2021, 04:58 PM
Last Post: rob25111
  upload big file in Django with process bar and i get error : MemoryError ma_norouzifar 3 4,338 Aug-06-2019, 06:57 AM
Last Post: fishhook
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,246 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django Connection Error erfanakbari1 1 2,543 Mar-21-2019, 08:09 AM
Last Post: Larz60+
  django-geoposition and unknown column error? PrateekG 3 3,834 Jun-26-2018, 11:56 AM
Last Post: PrateekG

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020