codingforentrepreneurs / eCommerce

We're going to take you step-by-step to build a modern, fully open-source, eCommerce web application using Python, Django, Bootstrap, Javascript, and more.

Home Page:http://www.codingforentrepreneurs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run code eCommerce2.

yasirahmeds opened this issue · comments

Unable to run code eCommerce2.

Hi,

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

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! ;-)