Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python django view error
#1
Hi, Dear Members,
I am a new learner of Python, and during the Django library, the error has occurred while importing the views command, so, no (python manage.py makemigrations[ModuleNotFoundError: No module named 'a.urls']) does not work.
buran write Mar-01-2024, 06:34 AM:
Please, post all code and errors as text, using proper BBCode tags

Attached Files

Thumbnail(s)
           
Reply
#2
Hi
Open cmd and type
step - 1: python manage.py makemigrations (click enter)
step - 2: python manage.py migrate (click enter)
step -3 : python manage.py runserver

In files you should do the above operation when you create DB table in models.py file

I hope this will help you!
Happy learning!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  view option in Django Sowmya 1 329 Mar-29-2024, 12:41 PM
Last Post: SULMAN
  Django: View is unable to find attributes of database model pythonpaul32 0 536 Dec-07-2023, 06:38 PM
Last Post: pythonpaul32
Photo After using models.Model on my class Im getting 'ImproperlyConfigured' error Django khavro 1 2,200 Apr-05-2021, 03:11 PM
Last Post: SheeppOSU
  Error - ManyToMany Fields in Django rob25111 0 1,544 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,430 Aug-06-2019, 06:57 AM
Last Post: fishhook
  Django Python Vscode Error Please Help Smhbugra 3 2,735 Jun-30-2019, 10:54 AM
Last Post: noisefloor
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,337 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django Connection Error erfanakbari1 1 2,604 Mar-21-2019, 08:09 AM
Last Post: Larz60+
  [Flask] Create new project for add user,edit,delete,view users in python with mysql connector chandranmanikandan 0 7,372 Oct-30-2018, 10:19 AM
Last Post: chandranmanikandan
  django-geoposition and unknown column error? PrateekG 3 3,906 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