Giter Club home page Giter Club logo

django-shop's Introduction

A Django ecommerce site for a Star Wars fictional weapons trader.

Heroku app (Some functionality missing on mobile at the moment)

I had minimal experience with Django so a structured tutorial felt like it would be useful as a refresher and to fill in some areas of knowledge that I hadn't covered yet. I've continued with the Star Wars theme used in a previous small project. Following this tutorial has helped me to understand how to better organise a Django app and the deployment process.

What I learned:

Django

  • Using a context processor to access data across all templates.

Testing & Formatting

  • Using the coverage library to help identify where tests are needed.
  • Setting up test data and using the Client object.
  • Fixing import statements using isort.

Basket

  • Working with sessions: saving and retrieving data.
  • Using Ajax to dynamically update the number of items in the basket and the totals on the basket summary page.

Users & Admin

  • Overriding Django's built in user functionality to create a custom user model, forms, and views.
  • Sending an email with a unique token to validate new users or reset passwords.
  • Configuring the admin view display fields and filters.

Payment

  • I watched through the chapter of the tutorial for handling payments through Stripe but I decided not to include a real payment system for my fictional shop.

Deployment

  • Moving secret keys and other private data to environment variables using the Ubuntu .profile file.
  • Set up AWS account with S3 storage for static files and new IAM user.
  • Setting environment variables in Heroku.
  • Using the Heroku Procfile to handle database migration and load data.

Resources

django-shop's People

Contributors

lisas7 avatar

Watchers

 avatar

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.