This web application is the source code for the Bangazon e-commerce web site. It is powered by Python and Django.
Students, you are inheriting a basic implementation that provides the following features:
- User registration
- User login
- User logout
- Adding a product
- Listing products
Please consult the backlog of issues and work with your product owner to implement the top priority tickets for your sprints.
- The team lead should clone this repository, then push it to your team's Github repo.
- Alert your manager when this is complete and all backlog issues will be imported into your project.
- Each teammate should clone the repository.
- In the
djangazon
directory that gets created, run the migrations withpython manage.py migrate
Using the requirements above create a model for each resource, and use migrations to ensure your database structure is up to date.
Django, like Angular, has many built-in helper tags and filters when building the site templates. We strongly recommend reading this documentation while building your templates.
When you pull down this repo setup a virtual environment elsewere in your directory not in this repo.
virtualenv [name]
Then activate it with
source [name]/bin/activate
Then cd back into the root of this repo and run
pip install -r requirements.txt
File, directory, function, and variable names should all follow snake case lower case rules.
Class names should follow pascal case rules.
Files that will serve a similar purpose (views, models, etc...) will live in a subdirectory of that name. Classes created within that directory will need to be imported into the init.py file of that directory.
https://www.lucidchart.com/documents/edit/92257110-34ad-4d80-9c33-629ca9384027/0?shared=true&
fields available user: reference to user object payment_type: reference to paymenttype object products: many to many reference to products date_created: date field, date the order was opened date_closed: date field, date the order was closed