程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Computer graduation design + the Python django movie recommendation system based on collaborative filtering algorithm (source + + mysql database system + Lw document)

編輯:Python

項目介紹

隨著社會的發展,人們生活水平的提高,Watching movies has gradually become one of the main forms of entertainment in people's leisure time.There are also more and more movie theaters,Except for some big chain movie theaters,There are also many community theaters,Small theaters are also increasing.in such movie theaters,Traditional movie ticket sales are manual services,Viewing seats are manually arranged,Unable to reflect human choice,In addition, people's life rhythm is getting faster and faster,The ticket purchase time needs to be shortened accordingly and the management of the cinema staff needs to be facilitated.因此,Make full use of modern information technology、Advantages of the Internet,設計“電影推薦系統”,Improve the efficiency of system construction,Improve the timeliness of information、It is a very necessary and urgent task to reduce the labor intensity of relevant staff at all levels.

功能需求

1.用戶管理的功能包括:注冊、Login and change password,Order movie tickets,評論功能,收藏功能;
2.Movie classification features include:The movie classification module is a detailed classification of the movies in the website,When the user logs in, they will enter the main page,You will see the Movies module,Click on it and you will see the category of movies;
3.Features of movie ranking include:Movie ranking data is ranked on the homepage based on user clicks,The ranking module will show the ranking and rating of the movie,Users can click to enter the details page;
4.Features of Movie Details include:The page has a navigation bar,影片的片名,導演,編劇,主演,類型,country,語言,上映時間,片長,又名,評分,Movie details etc;
5.Movie recommendation features include:Use collaborative filtering algorithms to recommend movies based on user preferences and viewing history;6.The function of order management:Order of movie tickets.
7.to use the dataset

開發環境

計算機畢業設計Python+djangoA movie recommendation system based on collaborative filtering algorithm(源碼+系統+mysql數據庫+Lw文檔)
開發語言:Python
python框架:django
軟件版本:python3.7/python3.8
數據庫:mysql 5.7或更高版本
數據庫工具:Navicat11
開發軟件:PyCharm/vs code
前端框架:vue.js
可開發框架:ssm/Springboot/vue/python/PHP/小程序/安卓均可開發

系統截圖

Users can log in to the movie recommendation system to view movie categories on the home page、熱門電影、最新上映、Top rated content

電影排行榜,Users can view it in the movie ranking page、搜索操作,Click on a movie to see details

熱門電影,User sees directors in top movies page、主演、類型、制片國家、語言、上映日期、片長、movie title, etc,可進行收藏、評價、評論操作,You can also enter the name of popular movies to search according to your needs

核心代碼


# Create your views here.
def homepage(request):
return redirect(reverse('movie:index'))
def import_data(request):
return render(request, 'common/import_data.html')
@require_POST
def import_movies_(request):
start_row = request.POST.get('start_row')
try: start_row = int(request.POST.get('start_row'))
except:return HttpResponse('wrong')
import_movies(start_row)
return redirect(reverse('common:import_data'))
@require_POST
def import_users_(request):
start_row = request.POST.get('start_row')
try: start_row = int(request.POST.get('start_row'))
except:return HttpResponse('wrong')
import_users(start_row)
return redirect(reverse('common:import_data'))
@require_POST
def import_comments_(request):
start_row = request.POST.get('start_row')
try: start_row = int(request.POST.get('start_row'))
except:return HttpResponse('wrong')
import_comments(start_row)
return redirect(reverse('common:import_data'))
@require_POST
def import_ratings_(request):
start_row = request.POST.get('start_row')
try: start_row = int(request.POST.get('start_row'))
except:return HttpResponse('wrong')
import_ratings(start_row)
return redirect(reverse('common:import_data'))
@require_POST
def modify_release_date_(request):
start_row = request.POST.get('start_row')
try:
start_row = int(request.POST.get('start_row'))
except:
return HttpResponse('wrong')
modify_release_date(start_row)
return redirect(reverse('common:import_data'))
@require_POST
def modify_rating_(request):
start_row = request.POST.get('start_row')
try:
start_row = int(request.POST.get('start_row'))
except:
return HttpResponse('wrong')
calculate_rating(start_row)
return redirect(reverse('common:import_data'))
@require_POST
def modify_user_rating_(request):
start_row = request.POST.get('start_row')
try:
start_row = int(request.POST.get('start_row'))
except:
return HttpResponse('wrong')
calculate_user_rating(start_row)
return redirect(reverse('common:import_data'))
@require_POST
def delete_users_(request):
start_row = request.POST.get('start_row')
try:
start_row = int(request.POST.get('start_row'))
except:
return HttpResponse('wrong')
delete_users(start_row)
return redirect(reverse('common:import_data'))

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved