# Getting error while working on Django Admin Panel

**URL:** <https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358>\
**Category:** Python\
**Created:** [April 22, 2021, 4:45pm UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358 "2021-04-22T16:45:35Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepank](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Deepank](https://forum.codewithmosh.com/u/Deepank)\
**Post date:** [April 22, 2021, 4:45pm UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/1 "2021-04-22T16:45:35Z")

</div>

![Issue](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/6/6057bcb9aff7faa6e57ec38c08d0d5133ed21be4.png)

Hi,  
I am getting an error while pasting an Image URL in ‘Product’ while creating Product model on Django Admin Panel as instructed. Please help in solving the problem.  
Thanks  
Deepank Gupta

---

<div class="post-metadata">

**Author:** ![Deepank](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Deepank](https://forum.codewithmosh.com/u/Deepank)\
**Post date:** [April 23, 2021, 6:17am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/2 "2021-04-23T06:17:57Z")

</div>

Also, not just image url, I am unable to add products in Django Admin panel.

---

<div class="post-metadata">

**Author:** ![Voozy](https://avatars.discourse-cdn.com/v4/letter/v/c0e974/32.png) [@Voozy](https://forum.codewithmosh.com/u/Voozy)\
**Post date:** [April 28, 2021, 12:12am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/3 "2021-04-28T00:12:24Z")

</div>

I have same issue as well.

---

<div class="post-metadata">

**Author:** ![AzharUddinSheikh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/azharuddinsheikh/32/5561_2.png) [@AzharUddinSheikh](https://forum.codewithmosh.com/u/AzharUddinSheikh)\
**Post date:** [April 28, 2021, 5:17am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/4 "2021-04-28T05:17:40Z")

</div>

Can you share me screenshot of your model

Also

Have you used migration command after creating models?

---

<div class="post-metadata">

**Author:** ![Deepank](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Deepank](https://forum.codewithmosh.com/u/Deepank)\
**Post date:** [April 28, 2021, 6:51am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/5 "2021-04-28T06:51:07Z")

</div>

Yes, first I thought migration was the problem. But I did that too.

 ![model](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/6/6b3d8cf2e085649f3bbb844c6293142673065f32.png)

---

<div class="post-metadata">

**Author:** ![Deepank](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Deepank](https://forum.codewithmosh.com/u/Deepank)\
**Post date:** [April 28, 2021, 6:56am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/6 "2021-04-28T06:56:22Z")

</div>

Also, one more issue. When I navigate to 127.0.0.1:8000/products, it also gives an error every time. It does not get loaded. So, how can I make sure that it doesn’t give an error when it is loaded? Do I have to type the command ‘python manage.py runserver’ on the terminal every single time I want to navigate on that page?

---

<div class="post-metadata">

**Author:** ![Voozy](https://avatars.discourse-cdn.com/v4/letter/v/c0e974/32.png) [@Voozy](https://forum.codewithmosh.com/u/Voozy)\
**Post date:** [April 28, 2021, 2:59pm UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/7 "2021-04-28T14:59:32Z")

</div>

I am having the same issues as Deepank

---

<div class="post-metadata">

**Author:** ![Deepank](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Deepank](https://forum.codewithmosh.com/u/Deepank)\
**Post date:** [April 28, 2021, 4:14pm UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/8 "2021-04-28T16:14:39Z")

</div>

Hey, guys. I think I found the solution to it. Mosh has used Django 2.1 for his project, which is incompatible with db.sqlite. Kindly try your project with the latest version of Django. I think it may help. I am going to try first,though.

---

<div class="post-metadata">

**Author:** ![Deepank](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Deepank](https://forum.codewithmosh.com/u/Deepank)\
**Post date:** [April 28, 2021, 4:18pm UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/9 "2021-04-28T16:18:59Z")

</div>

Anything on this issue?

---

<div class="post-metadata">

**Author:** ![adela](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@adela](https://forum.codewithmosh.com/u/adela)\
**Post date:** [May 28, 2021, 9:15am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/10 "2021-05-28T09:15:02Z")

</div>

I’ve updated django and now 127.0.0.1:800/admin doesn’t work anymore. How can I fix that?

---

<div class="post-metadata">

**Author:** ![William](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@William](https://forum.codewithmosh.com/u/William)\
**Post date:** [May 28, 2021, 11:17am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/11 "2021-05-28T11:17:55Z")

</div>

> [@adela](#):
>
> 127.0.0.1:800/admin

127.0.0.1: **800** /admin

Is this a typo or did you really try 800? It should be 8000.

---

<div class="post-metadata">

**Author:** ![Deepank](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Deepank](https://forum.codewithmosh.com/u/Deepank)\
**Post date:** [May 28, 2021, 6:44pm UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/12 "2021-05-28T18:44:51Z")

</div>

If it is not a typo,it should be 8000.Also,please run the server again to access your admin page(if you have not done).If other problem is showing,please send the screenshot of the issue.

---

<div class="post-metadata">

**Author:** ![DeepakT](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@DeepakT](https://forum.codewithmosh.com/u/DeepakT)\
**Post date:** [May 30, 2021, 1:57pm UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/13 "2021-05-30T13:57:38Z")

</div>

> [@Django error 'no such table' adding 'Comedy' genre (Video 12.9 Complete Python Mastery course)](https://forum.codewithmosh.com/t/django-error-no-such-table-adding-comedy-genre-video-12-9-complete-python-mastery-course/337/2):
>
> Solution: upgrade to latest Django version (at least 3.1.2) Steps to fix: I stopped the django webserver running, Ctrl-C I kept my vidly app project as is according to Chapter 12.1-12.9. I deleted the db.sqlite3 I uninstalled Django 2.1 I installed latest version of Django with “pip install django” which installed version 3.1.2 Issued “python manage.py makemigrations” Issued “python manage.py migrate” Created a superuser with “python manage.py createsuperuser” Issued “python manage.py…

Check the above link! Follow the steps. It worked for me!  
DT

---

<div class="post-metadata">

**Author:** ![UndefineeD](https://avatars.discourse-cdn.com/v4/letter/u/b4bc9f/32.png) [@UndefineeD](https://forum.codewithmosh.com/u/UndefineeD)\
**Post date:** [June 6, 2021, 10:52am UTC](https://forum.codewithmosh.com/t/getting-error-while-working-on-django-admin-panel/4358/14 "2021-06-06T10:52:12Z")

</div>

That version of django has problems. Uninstall the django package and then install the latest django version by typing the command pip install django . This will install the latest version of django, then delete the sqlite database and then make migrations by typing the following in the terminal and then migrating it python manage.py makemigrations , python manage.py mirate. This will solve your problems.  
Peace Out!
