Coder Social home page Coder Social logo

shopping_cart's Introduction

JustDjango

The Definitive Django Learning Platform.

*** Deprecation Warning ***

This project is over two years old and is outdated. For e-commerce functionality we recommend taking a look at this repository

Django Shopping Cart

A basic shopping cart for digital products using Stripe payments.

To Start: Create a stripe account and put your stripe publishable key and secret key inside settings.py as well as your publishable key inside checkout.js in the static folder. Follow the tutorial here for working with the shopping cart: https://youtu.be/6aQanCJZx04. Follow this tutorial to see how to setup payments with Braintree:

The password for the admin user is matt1234.


Other places you can find us:

YouTube Twitter

shopping_cart's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shopping_cart's Issues

Remove .pyc files

Hey! Found your tutorial at youtube, its very useful, thanks for it!
But also I've found a lot of .pyc files which is not needed to be placed at this repo. So it would be nice if you could remove those files from sources.

'Product' object has no attribute 'all'

I am having trouble with this line on the shopping cart views.py

def add_to_cart(request, **kwargs):
# get the user profile
user_profile = get_object_or_404(Profile, user=request.user)

I receive this error when I try to run the add_to_cart function:

Exception Value: | 'Product' object has no attribute 'all'

https://stackoverflow.com/questions/51237055/get-object-or-404profile-user-request-user-error/51237177#51237177

Solved:
My ebook was a OnetoOne relationship

License?

Remember the license file, so people know how this code may be used. Otherwise, full Copyright takes effect, meaning people may not reuse, share, or modify this code with out asking you personally. Please make it a habit to add a license to all repositories you create :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.