The fourth assignment of graduation project

1. Completed content in these 2 weeks

This week, start taking screenshots to show the content of your graduation project, and explain the functions, highlights, problems, etc.

 

 

 

 

 

 

order page

collect:

address page

 

1.1 Module name

Brief description of the modules and their functions

settings.py: This file contains all the configuration information about this Django project: TEMPLATE_DIRS , DATABASE_NAME , etc. The most important setting is ROOT_URLCONF, which acts as a URLconf to tell Django which Python modules will be used in this site.

urls.py: It's essentially a mapping table between URL patterns and the view functions to be called for that URL pattern. That's how you tell Django to call this code for this URL and that code for that URL.

wsgi.py: network communication interface

media: media file

migrations: record model changes

static: Front-end static files

templates: front-end html files

admin.py: background data model registration

apps.py: Apps

forms.py: Insert new data into the database, usually through forms, Django's form system

models.py: Writing of data model classes

views.py: functional views

manage.py:

  1. It puts your project's packages in sys.path
  2. It sets the DJANGO_SETTINGS_MODULE environment variable to the location of your project's setting.py file.

 

 

 

1.2 Module screenshot display

1.3 Module code introduction

Screenshots show the main code. View views part of the code, the code has been fully collapsed

 

 

 

code in models

 

 code in urls

 

What technology is used, what library, what are the advantages over traditional technology, or what are the advantages of other languages?

    Using the Django framework of Python eb, many web frameworks are MVC, Django uses a little different, it uses the MTV framework pattern, that is, model M, template T and view V.

Advantages: 1. The code style of Python is concise and easy to understand and maintain, and you can quickly realize your own ideas

          2. There are more libraries available for Python

          3. Lightweight, the memory footprint is much smaller than Java, and the effect can be seen immediately after modifying the code

          

1.4 There are still problems in module design

The function is basically realized. This time, the recommendation of hot-reviewed products and the modification of the front-end main page have been added.

2. Planning for the next 2 weeks

Briefly summarize the content completed in the last two weeks, and plan the design to be done next

 

Next, continue to improve and add test data, etc.

3. Database Design

  Please show. If there is a modification form, please explain why and how to modify it.

1. Add a count to the Goods table for message counting to achieve hot reviews of products.

2. Add a number to the Order table to realize the order number, time string + id.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325117239&siteId=291194637