Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run code eCommerce2. #11

Open
yasirahmeds opened this issue Mar 27, 2019 · 2 comments
Open

Unable to run code eCommerce2. #11

yasirahmeds opened this issue Mar 27, 2019 · 2 comments

Comments

@yasirahmeds
Copy link

No description provided.

@yasirahmeds
Copy link
Author

Hi,

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

@adavie1
Copy link

adavie1 commented Sep 13, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants