eCommerce icon indicating copy to clipboard operation
eCommerce copied to clipboard

Unable to run code eCommerce2.

Open yasirahmeds opened this issue 5 years ago • 2 comments

yasirahmeds avatar Mar 27 '19 12:03 yasirahmeds

Hi,

I am unable to run this code using django 2 after relevant migrations.

yasirahmeds avatar Mar 27 '19 12:03 yasirahmeds

After getting the environment (Python, Postgres, etc.) right for your OS, there are some django changes from 1.11 to 2 that you need to make. The 2 I've so far are:

  1. Change from django.core.urlresolvers import reverse to from django.urls import reverse
  2. Getting TypeError: __init__() missing 1 required positional argument: 'on_delete' when trying to add parent table after child table with entries You need to fix the Model code to comply the Django changes.

Google is your friend! ;-)

adavie1 avatar Sep 13 '20 14:09 adavie1