在线在线教育平台
博客里面有这个项目的详细教程
点此进入我的博客
python: 3.6.4
Django: 2.0.2
如果想播放视频,格式一定要正确,我给一个视频链接做测试用吧!
http://p96dsgm7r.bkt.clouddn.com/%E7%AC%AC%E4%B8%80%E7%AB%A0~2.mp4
把上面链接复制到视频--“访问地址” 里面就可以播放了。
Django+xadmin打造在线教育平台
Home Page: http://139.199.131.146/
在线在线教育平台
博客里面有这个项目的详细教程
点此进入我的博客
python: 3.6.4
Django: 2.0.2
如果想播放视频,格式一定要正确,我给一个视频链接做测试用吧!
http://p96dsgm7r.bkt.clouddn.com/%E7%AC%AC%E4%B8%80%E7%AB%A0~2.mp4
把上面链接复制到视频--“访问地址” 里面就可以播放了。
能不能搞个小店的视频文件
thx
Hi, In MxOnline, inappropriate dependency versioning constraints can cause risks.
Below are the dependencies and version constraints that the project is using
diff-match-patch==20121119
Django==2.0.2
django-crispy-forms==1.7.0
django-formtools==2.1
django-import-export==0.6.1
django-pure-pagination==0.3.0
django-ranged-response==0.2.0
django-reversion==2.0.12
django-simple-captcha==0.5.6
et-xmlfile==1.0.1
future==0.16.0
httplib2==0.9.2
jdcal==1.3
mysqlclient==1.3.12
odfpy==1.3.6
openpyxl==2.4.9
Pillow==5.0.0
pytz==2017.3
PyYAML==3.12
six==1.11.0
tablib==0.12.1
unicodecsv==0.14.1
xlrd==1.1.0
xlwt==1.3.0
The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict.
The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.
After further analysis, in this project,
The version constraint of dependency django-import-export can be changed to >=0.2.0,<=3.0.0b4.
The version constraint of dependency django-pure-pagination can be changed to >=0.2,<=0.3.0.
The version constraint of dependency django-reversion can be changed to >=2.0.0,<=5.0.1.
The version constraint of dependency django-simple-captcha can be changed to >=0.3.3,<=0.3.7.
The version constraint of dependency django-simple-captcha can be changed to >=0.5.4,<=0.5.17.
The version constraint of dependency xlwt can be changed to >=1.0.0,<=1.3.0.
The above modification suggestions can reduce the dependency conflicts as much as possible,
and introduce the latest version as much as possible without calling Error in the projects.
The invocation of the current project includes all the following methods.
import_export.resources.modelresource_factory import_export.forms.ExportForm
pure_pagination.Paginator.page pure_pagination.Paginator
reversion.revisions.set_user reversion.revisions.create_revision reversion.revisions.register reversion.revisions.is_registered
captcha.fields.CaptchaField
xlwt.Workbook.add_sheet xlwt.Workbook xlwt.easyxf xlwt.Workbook.save
cmds.append functools.wraps self.get_paginator book.add_sheet.write xadmin.sites.site.register_settings self.ListAdminView.super.get_media self.attrs.copy self.widget.value_from_datadict self.save_order django.utils.html.format_html.append organization.views.AddUserAskView.as_view xadmin.models.UserWidget.objects.get.set_value self.get_tmp_storage_class.remove xlwt.Workbook forms.UserInfoForm.save self.used_params.copy.pop map self.ModelAdminView.super.get_context self.NestedObjects.super.__init__ cs.fields.extend super long join.append django.urls.re_path self.post_response import_export.forms.ExportForm.is_valid self.ListFieldFilter.super.get_context self.admin_view.model_admin_url self.recalc_path self.save_related self.get_model wizard.get_cleaned_data_for_step RegistrationError self.opts.verbose_name.replace users.views.LogoutView.as_view self.Col.super.__init__ self.request.user.has_perm operation.models.UserCourse.objects.filter self.convert self.global_models_icon.get django.core.exceptions.FieldError export_format.int.formats.export_data self.get_model_icon form.save xadmin.layout.FormHelper datas.copy self.message_user self.get_ordering django.utils.xmlutils.SimplerXMLGenerator.startDocument os.makedirs request.get_host defaults.update portal_col.append self.db.self.rel.to._default_manager.using.get size.lstrip util.reverse_field_path self.set_cached_choices users.views.RegisterView.as_view forms.LoginForm.is_valid f.value self.SelectMultipleTransfer.super.__init__ views.OrgCourseView.as_view self.make_get_request IncorrectLookupParameters users.views.IndexView.as_view self.add_view.model_admin_url opts.object_name.lower django.db.models.DateField fk_name.inline_model._meta.get_field.remote_field.get_accessor_name self._get_aggregate_row self.model.ListAdminView.self.get_view_class xadmin.plugins.register_builtin_plugins enumerate self.dashboard.vendor xadmin.models.Log.save self.DeleteAdminView.super.get_context.update self.get_revision form.is_valid id django.utils.text.Truncator django.template.loader.render_to_string f.save_form_data self.ueditor_settings.update self.get_form_layout xadmin.views.base.ModelAdminView.get_context AlreadyRegistered self.admin_view.request.model_admin.has_view_permission django.utils.translation.ugettext.append xadmin.models.Bookmark.objects.all django.db.migrations.AddField xadmin.util.vendor django.template.loader.get_template self._widgets.values pure_pagination.Paginator.page django.core.cache.caches.get self.login_view.self.create_admin_view xadmin.layout.Layout.get_field_names xlwt.Workbook.close self.UserWidgetAdmin.super.get_list_display self._field_list_filters.append normalize_name self.get_export_data self.relate_obj.get_brand_name get_files.extend get_path_format_vars django.utils.html.format_html join models.Teacher.objects.all dict.items WidgetManager self.form_obj.save cls.get_site_menu item.wraps.insert django.template.Library list.values self.items import_file.chunks users.models.EmailVerifyRecord context.get users.models.EmailVerifyRecord.save copy.copy.save self.password_reset_form django.contrib.auth.models.Permission.objects.create xadmin.models.UserSettings.objects.get get_first_field.append list_display.insert self.DeleteAdminView.super.get_context self.get_form_list.keys django.conf.settings.getattr.copy self.prepare_value readonly_field.self.getattr field_names.extend ResultField lookup.split self.to_model._default_manager.get_queryset.filter fk_name.inline_model._meta.get_field.remote_field.is_hidden xadmin.models.UserWidget.objects.get.delete i.datas.append self._get_form_prefix size.lstrip.upper import_export.signals.post_import.send pure_pagination.Paginator views.CommentsView.as_view p.rpartition django.utils.encoding.smart_text.get self.request.POST.get self.admin_view.admin_site._registry.get parent._meta.get_field UEditorUploadSettings.update self.get_export_resource_class formset.style.get_attrs self.relate_obj.filter.filter self.create_model_admin_view self.prepare_form xadmin.layout.Row self.make_result_list os.environ.setdefault django.utils.safestring.mark_safe django.forms.ChoiceField search_models.append self.get_plugins django.db.models.GenericIPAddressField self.result_row self._registry_avs.get tuple self.opts.get_field.startswith xadmin.util.lookup_field django.forms.CheckboxInput cls.init_plugin new_params.items self.obj.pk.self.model.Version.objects.get_for_object_reference.select_related follow.append self.admin_view.list_queryset._clone.aggregate os.path.isdir list_view.make_result_list forms.ForgetPwdForm readonly_field.inst.getattr field_path.self.admin_view.queryset.exclude.values_list all_orgs.order_by.order_by model._meta.get_all_field_names p queryset.filter.filter self._get_input av.list_queryset.filter.count sys.getdefaultencoding inspect.getfullargspec self.admin_site.get_view_class col.split django.forms.models.inlineformset_factory block_func self.paginator_class django.contrib.auth.models.UserManager future.utils.iteritems self.DateFieldListFilter.super.get_context self.get_widget self.get_tmp_storage_class.save obj.Truncator.words django.utils.translation.ugettext bool self.admin_view.get_query_string form_class lookup_field xadmin.site.register_plugin queryset.order_by.order_by inline_fields.append django.contrib.formtools.wizard.views.StepsHelper django.apps.apps.get_model self.ForeignKeySelectWidget.super.build_attrs.update django.db.models.FileField request.GET.items django.forms.CharField f.remote_field.field.remote_field.is_hidden xlwt.Workbook.save django.http.QueryDict.items self.NestedObjects.super.related_objects xadmin.util.sortkeypicker getattr.lower t.replace.replace.replace self.field.form.fields.widget.attrs.get self.ModelAdminView.super.get_breadcrumb.append os.listdir list_filter_class context.update xadmin.plugins.utils.get_context_dict.update sys.setdefaultencoding copy.deepcopy tag.split attr django.utils.xmlutils.SimplerXMLGenerator.startElement self.form_obj.is_valid self.module.autodiscover cls.queryset self.has_perm models.CourseOrg.objects.get django.utils.xmlutils.SimplerXMLGenerator.endDocument course_org.save self.storage.set_step_data errors.extend cls.get_model_icon form_class.save re.sub data.items list_view.result_headers self.form_obj.errors.values cls.get_view container.append django.conf.urls.defaults.url django.contrib.auth.validators.UnicodeUsernameValidator p.codename.split name.split self.storage.get_step_files queryset.filter.values_list obj.delete self.get_step_form_obj self.UserAdmin.super.get_field_attrs self.storage.set_step_files xadmin.util.json.loads django.utils.translation.get_language.replace self.revision_context_manager.set_comment self.inputs.append self.admin_view.model self.queryset self.queryset.get os.path.getsize current_tz.normalize.astimezone InlineFormset.pop bk.items io.BytesIO.seek django.contrib.admin.utils.lookup_needs_distinct self.ModelAdminView.super.get_context.get inline_class.InlineModelAdmin.GenericInlineModelAdmin.inline_class.getattr.self.admin_view.get_view.init.has_add_permission self._format_value.insert view_class.mro self.InlineDiffField.super.render self.get_export_filename self.BookmarkAdmin.super.get_list_display self.valid_forms list_display.remove self.usercourse_set.all xadmin.models.UserSettings RelatedFieldWidgetWrapper self.get_result_list cls.get_model_perm models.UserProfile.objects.get.save self.init get_path_format_vars.update course_org.course_set.all self.used_params.keys pymysql.install_as_MySQLdb self.request.GET.items.dict.copy forms.UserInfoForm self.upload_settings.update xadmin.layout.render_field portal_pos.value.split django.utils.timezone.get_current_timezone.normalize xadmin.models.UserWidget reversion.models.Version.objects.get_deleted self.request.GET.get xadmin.models.UserSettings.objects.get.split os.path.dirname self.FieldFilter.super.__init__ get_files self.form.is_valid ForeignKeySelectWidget.ForeignKeySearchWidget.style boolean_icon xadmin.models.Bookmark.objects.filter self.model_admin_url import_export.signals.post_export.send functools.update_wrapper xadmin.site.register dir httplib2.Http.request get_output_path model._meta.pk.to_python self.get_model_url plugin_class.__name__.replace django.forms.models.modelform_factory self.get_view re.sub.lower setattr django.forms.IntegerField self.static django.db.models.sql.query.LOOKUP_SEP.join objects.append self._get_datas option.update datetime.timedelta request.GET.get.split NotRegistered type lookup_path.split self.revision_context_manager.set_user model_or_label.lower django.core.cache.caches.set self.choices views.OrgTeacherView.as_view self._order_version_queryset cls self.password_reset_form.save django.apps.apps.get_app_configs operation.models.UserFavorite.objects.filter.delete django.template.TemplateSyntaxError self.get_actions ws.append self.get_form_list.keys.index django.shortcuts.get_object_or_404 random_str models.UserProfile.save django.contrib.auth.views.logout item.menus.extend request.FILES.get django.utils.translation.get_language self.get_init_widget django.contrib.messages.warning pks.f.rel.to._default_manager.get_query_set.filter.all self._registry_views.append users.views.ResetView.as_view attrs.copy.pop list klass.self.formfield_overrides.copy path.startswith self.admin_view.__class__.mro initial.append forms.ModifyPwdForm self.UserWidgetAdmin.super.queryset event_codes.append self.get_tmp_storage_class.read django.db.models.ImageField self.errors.as_text org_list.append self.convert_field reversion.revisions.register _register_model os.path.basename range inspect.isclass myatoi self.course_set.all queryset.count self.UpdateAdminView.super.post all_orgs.order_by.filter xadmin.models.UserWidget.objects.get.get_value xadmin.models.Bookmark self._portal_key users.views.LoginView.as_view model._meta.get_field issubclass self.form_obj.fields.keys list.index related_version.content_type_id.ContentType.objects.get_for_id.model_class self.do_view f.rel.to._default_manager.get_query_set.filter base64.decodestring course_ids.Course.objects.filter.order_by self.RecoverView.super.get_context self.get_ordering_field self.ChartsView.super.get_ordering format_callback django.core.cache.caches InlineStyleManager.get_style random.Random self.ModelBaseWidget.super.setup django.utils.html.escape django.forms.formsets.DELETION_FIELD_NAME.helper.wrap course_list.append had_urls.append django.forms.CheckboxInput.render self.WidgetDataError.super.__init__ roots.extend self._get_detail_formset_instance self.UEditorField.super.__init__ self.queryset.update k.helper.wrap xadmin.views.register_builtin_views request.method.lower self.AdminSelectMultiple.super.__init__ list.update self.RevisionView.super.get_form_helper.filter form.cleaned_data.int.import_formats self.AdminDateWidget.super.__init__ ModelChoiceField rows.append self.UserAdmin.super.get_model_form inline_instances.append django.contrib.contenttypes.models.ContentType.objects.get_for_model self.opts._get_fields opts.option_class.view_class.self.admin_site.get_view_class self.get_import_resource_class.get_user_visible_fields f.can_import self.LoginRequiredMixin.super.dispatch xadmin.layout.Fieldset inline_class.InlineModelAdmin.GenericInlineModelAdmin.inline_class.getattr.self.admin_view.get_view.init.has_delete_permission widget_manager.get_widgets.append os.path.exists self.get_urls ModelChoiceIterator forms.UploadImageForm django.contrib.auth.models.Permission.objects.filter self.storage.reset cls.get_admin_url xadmin.util.label_for_field kwargs.get.append django.utils.http.urlencode django.http.HttpResponseRedirect self.admin_view.get_admin_url operation.models.UserCourse open.close self._create_plugin self.form.save file_field_list.append self.style.self.max_num.style_manager.get_style io.StringIO.append self.rel.to._default_manager.using field.rel.get_related_field param.update self.url_for_result self.get_resource_class self.ModelFormAdminView.super.__init__ InlineFormset.non_form_errors queryset.self.admin_view.queryset.filter.order_by widgets.url_params_from_lookup_dict self.ListAdminView.super.get_ordering confirm_form.cleaned_data.int.import_formats.create_dataset getattr ordering_field_columns.get self.SelectMultipleDropdown.super.render version_data.get django.forms.utils.ErrorList utils.email_send.send_register_eamil operation.models.CourseComments.save self.onExecuteAjaxCommand self.FieldFilter.super.get_context inst._meta.get_all_field_names teacher_list.append xadmin.widgets.AdminRadioSelect models.UserProfile.objects.filter django.http.HttpResponse replace_field_to_value self.FormAdminView.super.get_breadcrumb models.Course.objects.filter django.db.router.db_for_write self.request.GET.keys self.render_option xlwt.easyxf django.db.models.CharField self.get_form_helper.add_layout django.forms.Media self.ResultHeader.super.__init__ us.save self.filter_specs.append self._reversion_order_version_queryset field.get_choices attrs.update save_upload_file self.get_form_list o.timetuple importlib.import_module.upload errors_in_inline_form.values self.NestedObjects.super.collect self.ImportView.super.get_media self.create_admin_view self.RevisionListView.super.get_context params.update locals self.get_ordering_field_columns self.post_result_list self.relate_obj.filter django.contrib.auth.logout cls.get_model_url self.delete_models django.apps.apps.get_app_config clz_or_func self.BannerCourseAdmin.super.queryset self.get_factory.post django.forms.utils.flatatt.append name.replace self.user.has_perm url.find django.urls.path self.get_related_versions.values self.log django.forms.forms.DeclarativeFieldsMetaclass django.http.Http404 django.utils.timezone.get_current_timezone forms.ForgetPwdForm.is_valid self.DeleteField.super.render django.forms.utils.ErrorList.extend nodes.insert self.admin_view.style_fields.values obj_version.m2m_data.items self.EditablePlugin.super.__init__ self.prepare_value.lower InlineStyleManager.register_style south.modelsinspector.add_introspection_rules organization.models.Teacher.objects.get self.FormAdminView.super.get_context self.get_error_list django.views.i18n.set_language av.list_queryset.filter item.classes.extend xadmin.util.json.dumps models.EmailVerifyRecord.objects.filter self.DeleteAdminView.super.get_breadcrumb.append version.revision.version_set.all rel.get_related_field JsonErrorDict self.get_redirect_url is_order_changed self.UserWidgetAdmin.super.get_list_display.remove views.UploadImageView.as_view self.ResetPasswordSendView.super.get_context callable xadmin.site._registry.items django.contrib.admin.utils.get_fields_from_path t.replace.replace o.text.str.startswith model_or_label.lower.split db_field.__class__.mro cls.get_nav_menu WidgetManager.get_widgets self.tag models.Video.objects.get self.AdminCommaSeparatedIntegerFieldWidget.super.__init__ django.db.models.DateTimeField self.get_form_helper django.template.Template.render available_output.append django.forms.ValidationError o_list_remove.append check_menu_permission self.admin_view.has_change_permission self.get_field_attrs self.admin_view.get_template_list django.forms.ModelChoiceField django.db.migrations.AlterField all_courses.order_by.order_by js.extend bytes self.new_obj.save self.protected.update self.update_dashboard django.http.QueryDict django.core.wsgi.get_wsgi_application request.user.save course.models.Course.objects.all request.POST.get self.check_dependencies request.POST.getlist attrs.get.replace WidgetTypeSelect self.request.is_ajax get_fields_from_path self.get_model_form views.MyFavCourseView.as_view collections.OrderedDict.extend cacheable.view.self.admin_view self.get_widgets UEditorSettings.update detail_a.get_field_result self.get_context self.formset.fields.keys queryset.distinct field.helper.wrap self.onSelect self.ModelAdminView.super.get_breadcrumb import_export.forms.ConfirmImportForm.is_valid print str self.widget_with_perm.super.context request.get_full_path lookup.split.pop output.append tag.startswith is_related_field rel.get_accessor_name request.GET.get.reponseAction django.forms.Field.__init__ self.render_opt getattr.all self.CreateAdminView.super.get_context itertools.chain util.prepare_lookup_value self.get_context.update set views.CourseListView.as_view views.UserinfoView.as_view wrap crispy_forms.utils.render_field fm l.widgets.url_params_from_lookup_dict.items initial.get __ xadmin.views.dashboard.BaseWidget.setup django.db.models.Q children.extend models.Banner.objects.all.order_by self.render_ajax_command queryset.filter.exclude ordering_field_columns.keys self.opts.get_field django.views.decorators.cache.never_cache self.BaseRevisionView.super.get_media self._get_all_related_objects admin_view.admin_site._registry.get xadmin.plugins.ajax.JsonErrorDict self.to_model._default_manager.get_queryset django.template.response.SimpleTemplateResponse form.readonly_fields.append self.admin_view.has_model_perm admin_site._registry.items django.forms.widgets.Media django.db.models.BooleanField detail_b.get_field_result self.view_form cls.has_change_permission open opts.get_field model_admin.get_admin_url self.RelatedFieldSearchFilter.super.get_context.update confirm_form.cleaned_data.int.import_formats.get_read_mode self.get_list_queryset self.get_initial_data self._get_default_ordering.append set.add self.admin_view.request.user.has_perm self.update_params django.utils.text.capfirst self.request.method.lower views.AddFavView.as_view self.DetailAdminView.super.get_breadcrumb QuickFilterMultiSelectFieldListFilter.has_output re.compile self._get_url self.lookup_formats.items datetime.datetime.now.strftime self.DetailAdminView.super.get_media self.add_view.instance_forms parser.delete_first_token self.RelatedFieldSearchFilter.super.__init__ diffs.append datetime.datetime.now xlwt.Workbook.add_worksheet site.register_modelview self.get_form_layout.get_field_names self.ShowField.super.__init__ self.get_field_style resource_class field.flatchoices.dict.get self.formset.fields.items self.get_factory total_form_count_hack field.remote_field.get_related_field InlineFormset self.ChangeAccountPasswordView.super.get_context nodes.append handler django.contrib.admin.utils.get_deleted_objects self.RelatedFieldSearchFilter.super.get_context organization.models.CourseOrg.objects.get operation.models.CourseComments self.rel.get_related_field django.utils.six.moves.urllib.request.urlopen self.password_reset_form.is_valid self.DateFieldListFilter.super.__init__ self.get_action_choices queryset.order_by.select_related xadmin.layout.flatatt choices.append self.template_response xadmin.sites.site.register_modelview self.get_cached_choices self.get_form_list.get level.messages.getattr done_message self.get_portal_key self.Fieldset.super.__init__ importlib.import_module django.contrib.contenttypes.models.ContentType.objects.get_for_id list_view.results int self.get_change_form self.formsets.append get_first_field xadmin.models.UserSettings.objects.get.save self.ListWidget.super.setup self.render_command self._to_xml o_file.o_path.os.path.join.replace course.models.Course.objects.get replace_inline_objects o_list_asc.insert self.AdminImageWidget.super.__init__ self.result_item self.opts.verbose_name.encode self.get_import_resource_class.import_data self.RecoverListView.super.get_context list_filter_class.test django.test.client.RequestFactory django.conf.settings.AUTH_USER_MODEL.lower xadmin.util.is_related_field2 self.field.form.fields.widget.attrs.get.replace self.BaseWidget.super.__init__ self.process_import_resource self.get_list_display_links self.teacher_set.all logging.error qs.filter.filter self.admin_view.request.model_admin.has_change_permission all_courses.order_by.filter check_selected self.get_form_helper.filter f.can_export self.content_type.get_object_for_this_type round ORDER_VAR.self.params.split self.get_export_queryset widgets.UEditorWidget QuickFilterMultiSelectFieldListFilter.do_filte django.core.mail.send_mail self.UEditorWidget.super.__init__ self.RevisionView.super.get_form_helper self.paginator.page django.db.models.constants.LOOKUP_SEP.join admin_view_class.mro FORMFIELD_FOR_DBFIELD_DEFAULTS.copy forms.RegisterForm self.UserWidgetAdmin.super.delete_models django.utils.timezone.now now.date.replace django.core.exceptions.SuspiciousOperation django.template.Context chart.model_admin.data_charts.get instance.fields.keys formset self.get_initial_data.update imp.reload self.delete_model parent._meta.get_field.related_query_name self.get_query_string SelectMultipleTransfer django.utils.six.moves.urllib.request.urlopen.read datas.update request.self.get_export_resource_kwargs.resource_class.export self.get_revision.update functools.partial form._meta.model._meta.get_parent_list json.loads model_format_dict zip COL_LIST_VAR.self.request.GET.split RelateObject self.render_options self.UEditorField.super.formfield formset.fk.rel.get_related_field course.models.Course.objects.get.save forms.ModifyPwdForm.is_valid o.strftime field.name.model_form.__getitem__.field.widget.recalc_path os.path.getmtime widgets.UEditorWidget.update admin_view_class.self._registry_plugins.setdefault.append ord Exception f django.contrib.auth.authenticate views.OrgHomeView.as_view remove_trailing_data_field.append views.MyFavOrgView.as_view wizard.get_cleaned_data_for_step.pop self._get_default_ordering course.models.Course.objects.filter self.GroupAdmin.super.get_field_attrs self.JSONEncoder.super.default inspect.ismethod models.Banner.objects.all self.get_object_url xadmin.sites.site.copy_registry django.forms.formsets.all_valid list.sort item.root_path.cur_path.os.path.relpath.os.path.join.replace models.CourseOrg.objects.get.save xadmin.util.quote UserSettings.objects.get django.template.Library.tag self.CommentsAdmin.super.get_actions current_tz.normalize.date get_files.append views.VideoPlayView.as_view django.utils.translation.ugettext_lazy item.btns.append xrange self._get_theme size.lstrip.upper.replace django.shortcuts.render self.admin_view.params.items django.forms.Field.__deepcopy__ self._hack_inline_formset_initial operation.models.UserCourse.save self.InlineModelAdmin.super.queryset self.get_readonly_fields self.lesson_set.all xadmin.util.model_ngettext cls.get_media self.render_response change_fields.self.get_change_form th_classes.append xadmin.util.unquote cls.has_view_permission obj.count cls.has_delete_permission self.get_resource_kwargs content.decode.decode bookmark.content_type.model_class self.get_response models.UserProfile.objects.get.check_password util.get_limit_choices_to_from_path self.AdminTextareaWidget.super.__init__ xstatic django.db.models.signals.post_migrate.connect django.utils.translation.ugettext.extend self.UEditorModelForm.super.__init__ xadmin.models.UserWidget.objects.filter django.utils.timezone.localtime self.request.GET.get.split FileSize self.FormAdminView.super.get_media smart_str self.ChangeAccountPasswordView.super.get_context.update xadmin.util.display_for_field django.db.models.TextField django.utils.itercompat.is_iterable os.path.splitext self.model._default_manager.get_queryset get_context_dict models.CourseResource.objects.filter portal.col.col.w.w.id.str.join.join.self.get_page_id.self.user.UserSettings.save str.update form xadmin.util.is_related_field export_format.int.formats.get_extension list.extend views.UpdateEmailView.as_view organization.views.OrgView.as_view models.CityDict.objects.all self.admin_view.queryset.filter self.UserWidgetAdmin.super.delete_model self.inline_styles.get ChangeFieldWidgetWrapper uSettings.get self.dashboard.static parent_model._default_manager.all ImportError django.urls.reverse type.__new__ self.data_charts.items django.utils.encoding.smart_text os.path.split attrs.value.name.self.AdminSplitDateTime.super.render.split chosen_output.append operation.models.UserFavorite.objects.filter FileSize.Format all_teachers.order_by.order_by FieldFilterManager django.views.i18n.JavaScriptCatalog.as_view django.contrib.formtools.wizard.forms.ManagementForm.is_valid uSettings.update k.smart_str.startswith opts.get_field.value_from_object self.ModelDetailPlugin.super.__init__ self.get mychr functools.reduce s.split queryset.none.none self.UpdateAdminView.super.get_context self.has_delete_permission obj._get_pk_val django.template.Library.simple_tag self.lesson_set.all.count cls.model_admin_url django.utils.translation.ungettext layout.get_field_names construct_search self.ChartWidget.super.setup self.ModelFormAdminView.super.get_breadcrumb self.get_plugins.extend context.update.update django.forms.BooleanField self.request.GET.items.dict.copy.init_request reversion.models.Version.objects.get_for_object_reference self.instance_forms self.lookup_allowed xadmin.models.UserWidget.objects.get.save action.listpath.USettings.gSettings.MEDIA_ROOT.os.path.join.replace plugins.append self.edges.get self.get_export_resource_kwargs self.get_tmp_storage_class self.request.GET.items.dict.copy.items xadmin.util.boolean_icon form_class.is_valid all_orgs.order_by.count django.db.models.URLField widget_with_perm self.get_version_object self.InputGroup.super.__init__ self.NestedObjects.super.related_objects.select_related self.AdminURLFieldWidget.super.__init__ WidgetManager.get formset._construct_form queryset.filter.distinct copy.copy file_type.self.getattr attrs.copy django.contrib.formtools.wizard.forms.ManagementForm reversed_path.insert self.get_related_versions btns.append merges.append self.widget.render self.get_admin_url callback.str.self.admin_view.getattr methods.append model_info.content_type.Bookmark.objects.filter.filter self.admin_view self.JsonErrorDict.super.__init__ func self.command.render self.DeleteAdminView.super.get_breadcrumb users.views.ActiveUserView.as_view self.FormAdminView.super.get_breadcrumb.append django.utils.formats.number_format self.get_import_resource_kwargs Fieldset self.UserWidget.super.save self.AdminTimeWidget.super.render self.save_forms output.extend captcha.fields.CaptchaField self._get_relate_params save_scrawl_file self.model.objects.get OutputPath field.strip self.RevisionView.super.get_context xadmin.models.UserWidget.objects.get import_export.forms.ConfirmImportForm self.build_attrs io.StringIO self.admin_view.get_view current_tz.normalize.replace action django.contrib.admin.models.LogEntry.objects.log_action self.detail.get_field_result sys.path.insert ResultRow self.get_model_view.init_action self.get_chart_url b.get get_gallery_modal util.vendor self.form_obj.save_m2m self.storage.update_response self.change_models field_list_filter_class.has_output self.AdminIntegerFieldWidget.super.__init__ o_list_desc.insert self.ModelFormAdminView.super.get_context self.MultiSelectFieldListFilter.super.__init__ model_admin self.request.META.find self.get_related_versions.pop self.get_import_resource_class admin_view_class.self.get_view_class.as_view self.CourseAdmin.super.queryset xadmin.util.static bookmarks.append django.core.cache.cache.get.extend self._get_merge_attrs admin_view_class.__name__.lower.endswith IncorrectPluginArg models.UserProfile self.UserWidgetAdmin.super.formfield_for_dbfield self.PrependedText.super.__init__ widgets.AdminUEditorWidget item.classes.append self._field_list_filters.insert MergeAdminMetaclass django.contrib.comments.get_model data.pop f.rel.get_related_field django.http.HttpResponseNotFound xadmin.models.UserWidget.objects.get.media ac forms.LoginForm ShowField export_format.int.formats detail.get_field_result site.set_loginview self.has_change_permission inline_model._meta.get_field forms.UserAskForm portal.append django.utils.xmlutils.SimplerXMLGenerator.characters xadmin.widgets.AdminCheckboxSelect self._get_objects django.utils.html.conditional_escape get_url django.utils.text.get_text_list django.contrib.auth.views.login self.AddFormWidget.super.setup self.Dashboard.super.get_context open.write self.admin_site._registry.keys inline.instance_form.save field.name.queryset.distinct.order_by.values_list views.MyFavTeacherView.as_view source.self.edges.setdefault.append course_org.Course.objects.filter.count forms.RegisterForm.is_valid key.replace.replace django.urls.base.reverse self.AdminUEditorWidget.super.__init__ filter_chain site.register_view xadmin.layout.Layout xadmin.views.list.ResultItem xadmin.models.Log django.core.cache.cache.get django.http.HttpResponse.write self.get_items self.has_view_permission httplib2.Http parser.parse django.urls.include django.template.loader.select_template import_export.forms.ImportForm models.Teacher.objects.get.save xadmin.layout.Col self._registry_plugins.get field_path.field_path.self.admin_view.queryset.exclude.values_list.distinct django.core.management.execute_from_command_line self.add_edge stream.getvalue.split model_form.__getitem__ io.StringIO.getvalue fs.extend self.video_set.all users.views.ModifyPwdView.as_view self.ShowField.super.render self.change_password_form self.get_all_cleaned_data calendar.timegm itertools.chain.from_iterable field_name.ordering_field_columns.get.lower self.get_step_form self.get_formset self.get_export_formats myappend crispy_forms.layout.Field django.utils.xmlutils.SimplerXMLGenerator import_export.resources.modelresource_factory models.Teacher.objects.get views.TeacherListView.as_view self.chart.get self.attrs.get confirm_form.cleaned_data.int.import_formats models.Teacher.objects.all.order_by self.setup self.get_model_view.get_field_result property opts.get_field.startswith views.TeacherDetailView.as_view re.compile.match self.XadminUEditorWidget.super.__init__ UsernameSearch django.contrib.messages.success self.model_form self.admin_view.queryset loader.render_to_string django.db.models.ManyToManyField reversion.revisions.set_user av.list_queryset.filter.delete collections.OrderedDict path_format_var.USettings.UEditorSettings.path_format.request.GET.get.replace kwargs.pop av.list_queryset._clone self.request.GET.split self.get_title self.get_form_list.items django.core.cache.cache.set self.storage.get_step_data self.AdminImageWidget.super.render base.inclusion_tag option_class.admin_view_class.self.get_view_class.as_view os.path.relpath self.list_queryset._clone self.has_permission views.OrgDescView.as_view django.db.migrations.swappable_dependency o_list_asc.append xlwt.Workbook.add_sheet xadmin.plugins.utils.get_context_dict self.dashboard.has_model_perm links.append token.contents.split django.db.models.PositiveSmallIntegerField other_model._default_manager.get self.attrs.pop self.upload_settings.copy operation.models.CourseComments.objects.all django.db.models.EmailField f.rel.to._default_manager.get_query_set UpdateUploadPath tags.util_vendor.render self.setup_forms xadmin.models.UserSettings.objects.filter ResultHeader self.nodelist.render calc_path django.contrib.auth.get_user_model _related_acts.append LOOKUP_SEP.join self.ResetPasswordComfirmView.super.get_context DjangoUeditor.models.UEditorField models.Course.objects.all.order_by resource.import_data.has_errors self.ModelBaseWidget.super.__init__ self.admin_view.get_field_result self.get_object self._registry_plugins.setdefault self.Dashboard.super.get_media django.forms.utils.flatatt self.onClick make_qs_param self.admin_view.get_response inst._meta.get_field request.is_secure inline_class.InlineModelAdmin.GenericInlineModelAdmin.inline_class.getattr.self.admin_view.get_view.init.has_view_permission views.CourseDetailView.as_view self.ueditor_settings.copy key.endswith len results.append UpdateUserSettings locals.copy django.conf.settings.AUTH_USER_MODEL.lower.replace views.AddCommentsView.as_view sorted av.results self.RelatedFieldListFilter.super.__init__ self.result_header users.views.ForgetPwdView.as_view django.contrib.auth.login get_model_from_relation self.request.GET.items self._registry_modelviews.append SuspiciousOperation xlwt.Workbook.add_format callback self.BatchChangeAction.super.get_media self.context_params.items it.str.strip _inner_method self.get_model_method_fields os.path.abspath django.forms.models.model_to_dict self.ResetPasswordComfirmView.super.get_media add_models.append self.UEditorButtonCommand.super.__init__ django.contrib.contenttypes.models.ContentType.objects.all field_list_filter_class.do_filte xadmin.layout.Layout.extend operation.models.UserFavorite self.label_for_value django.utils.xmlutils.SimplerXMLGenerator.endElement get_layout_objects xadmin.sites.site.restore_registry self.teacher_set.all.count xadmin.layout.Side do_create_revision self.course_set.all.count related_fields.append request.POST.keys self.get_all_cleaned_data.update self.cleaned_data.get self.get_import_formats xadmin.models.UserSettings.objects.get_or_create self.ModelFormAdminView.super.get_breadcrumb.append math.ceil forms.UploadImageForm.is_valid utils.FileSize view container.fields.append self.query_string dict.update getattr.split xadmin.layout.Container self.Inline.super.__init__ django.contrib.auth.get_permission_codename self.ForeignKeySearchWidget.super.build_attrs dict.get self.obj.delete request.GET.split self.get_step_form_obj.is_valid field_name.startswith range.extend User.objects.get.check_password self.get_layout xadmin.util.get_model_from_relation forms.UserInfoForm.is_valid get fs_map.pop django.db.models.AutoField filter_item os.path.join reversion.revisions.create_revision self.onExecuteCommand cls.get_breadcrumb xadmin.widgets.url_params_from_lookup_dict self.request.get_full_path self.WidgetTypeSelect.super.__init__ self.ForeignKeySelectWidget.super.build_attrs i.startswith inline_class.InlineModelAdmin.GenericInlineModelAdmin.inline_class.getattr.self.admin_view.get_view.init.instance_form self.get_skip_admin_log views.MyMessageView.as_view self.get_factory.get pattern.match.groups self.render_ui django.utils.encoding.force_text o_list_toggle.append io.BytesIO.getvalue filter field_list_filter_class self.ModelAdminView.super.__init__ get_permission_name self.ChartWidget.super.filte_choices_model django.utils.encoding.force_unicode xadmin.sites.site.register_plugin forms.UserAskForm.is_valid self.ResetPasswordCompleteView.super.get_context xlsxwriter.Workbook request.POST.copy self.save_models app_key.nav_menu.append TDField self.ChangePasswordView.super.get_media django.utils.encoding.smart_str merge_opts.append self.context list_filter self.get_page_id self.UEditorComboCommand.super.__init__ django.contrib.auth.decorators.login_required field_names.append db_field.formfield self.admin_view.message_user self.CommentsAdmin.super.get_actions.pop self.AdminTextInputWidget.super.__init__ random.Random.randint queryset.filter.count remove_trailing_data_field self.result_headers isinstance attrs.get self.event_handler.render django.templatetags.static.static self.style.self.max_num.style_manager.get_style.update_layout av.message_user fields.insert db_field.get_choices self.dashboard.get_model_icon django.template.Template k.startswith self.AppendedText.super.__init__ views.CourseInfoView.as_view all_teachers.order_by.count django.utils.formats.localize self._done self.cache_config.update queryset.distinct.order_by models.Course.objects.get self._get_settings_class import_export.forms.ExportForm django.db.migrations.CreateModel self.AdminTimeWidget.super.__init__ self.admin_site._registry.items params.pop.copy cmd.render self.batch_fields.self.get_change_form self.model.CreateAdminView.self.get_model_view.post views.MyCourseView.as_view get_content_type_for_model __.update django.contrib.auth.views.password_reset_confirm AdminSite self.ImportView.super.get_context item.pop self.edges.setdefault menu.sort self._test_mobile self.get_new_field_html django.contrib.contenttypes.forms.generic_inlineformset_factory self.BaseRevisionView.super.get_context cls.has_add_permission model._meta.parents.items util.get_model_from_relation xadmin.sites.site.register_view self.new_obj._get_pk_val self._format_value xadmin.util.model_format_dict views.SendEmailCodeView.as_view self.BookmarkAdmin.super.get_list_display.remove user.has_perm hasattr self.DetailAdminView.super.get_breadcrumb.append ResultItem self.used_params.copy.items User.objects.get self.charts.items self.ListAdminView.super.get_context form.form.errors.JsonErrorDict.as_json XadminUEditorWidget django.forms.models.modelform_defines_fields self.get_view_class self.model.CreateAdminView.self.get_view_class self.get_model_view app_label.title all_teachers.order_by.filter format django.utils.http.urlquote USettings.UEditorUploadSettings.get Main io.BytesIO action.has_perm export_format.int.formats.get_content_type item.cur_path.root_path.os.path.join.replace self._bulk_flag operation.models.UserMessage.objects.filter self.onExecuteQueryvalueCommand django.template.context_processors.csrf xadmin.layout.Main django.shortcuts.render_to_response self.form_params django.db.models.ForeignKey self.admin_site._registry.get self.get_model_view.formfield_for_dbfield list_view.get_model_perms event.self.getattr name.find django.utils.module_loading.module_has_submodule self.ChangePasswordView.super.get_context self.request.GET.items.dict.copy.keys self.RevisionListView.super.get_media xadmin.sites.site.register self.import_export_args.get self.UserAdmin.super.get_form_layout self.admin_view.queryset.exclude is_rel_field WidgetDataError django.contrib.auth.hashers.make_password self.widget.id_for_label k.initial.split inline_class.InlineModelAdmin.GenericInlineModelAdmin.inline_class.getattr.self.admin_view.get_view.init.has_change_permission self.request.POST.getlist random.randrange self.admin_view.get_form_params self._nested django.utils.decorators.method_decorator self.has_model_perm models.UserProfile.objects.get django.contrib.formtools.wizard.storage.get_storage self.ForeignKeySearchWidget.super.__init__ confirm_form.cleaned_data.int.import_formats.is_binary self.used_params.copy operation.models.UserFavorite.save method.AGGREGATE_METHODS django.forms.ModelChoiceField.save merge_opts.extend dict model.ListAdminView.self.get_view_class admin_view_class.__name__.lower self.admin_view.setup_forms django.template.loader.get_template.render Dashboard.get_context Side self.widget.build_attrs self.get_action self.vendor self.change_message float value.self.rel_name.to_qs.filter.all admin_view.model self.AdminSplitDateTime.super.render cls.init_request list_display.append bases.insert site.register_plugin self.CommAdminView.super.get_context app_label.lower catcher_infos.append self.ModelFormAdminView.super.get_media action.replace self.results django.conf.urls.defaults.patterns obj.save self.AdminDateWidget.super.render models.Course.objects.all self.Row.super.__init__ AdminRadioInput item.wraps.append xadmin.views.list.ResultRow self.response_action range.append cls_str.helper.filter.wrap FakeMethodField django.core.exceptions.ImproperlyConfigured InlineStyleManager v.split self.AllValuesFieldListFilter.super.__init__ diff_fields.items av.result_headers django.forms.MultiWidget.__init__ float.find request.GET.get self.actions.values QuickFilterMultiSelectFieldListFilter reversion.revisions.is_registered inline_class.InlineModelAdmin.GenericInlineModelAdmin.inline_class.getattr.self.admin_view.get_view.init json.dumps menu.find self.admin_view.model.save django.db.models.IntegerField AdminSite.register models.Course.objects.get.save django.utils.six.moves.urllib.parse.urljoin fs_map.values PostFile.chunks FORMFIELD_FOR_DBFIELD_DEFAULTS.copy.update self.get_list_display path.split self.ModelAdminView.super.get_context.update self.get_template_list need_perm course_org.teacher_set.all forms.UserAskForm.save self.admin_view.list_queryset._clone ordering_field_columns.items django.template.engine.Engine.get_default Dashboard.get_context.update self.get_model_view.do_action i.layout_cs.split context.flatten self.get_related_list self.aggregate_fields.items cls.has_model_perm self.is_valid self.has_add_permission new.lower.strip format_callback.append UserSettings.objects.get.save xadmin.layout.FormHelper.add_layout django.views.decorators.debug.sensitive_post_parameters kwargs.get self.get_form_datas self.setup_request django.forms.EmailField self._get_field_aggregate file_type.file_name.encode self.model.objects.get.save views.UpdatePwdView.as_view BlockcaptureNode _autoregister self.ReadOnlyField.super.__init__ django.template.response.TemplateResponse self.get_check_field_url models.CourseOrg.objects.all admin_view_class.__name__.lower.lower self.PrependedAppendedText.super.__init__ self.DetailAdminView.super.get_context fields.append o_list_desc.append Media value.lower.split
@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.
可以麻烦大佬再上传一下前端页面吗
是这个 https://coding.imooc.com/class/368.html 这个项目吗
if forget_form.is_valid(): email = request.POST.get('email', None) 🌝if UserProfile.objects.filter(email=email):🌝 send_register_mail(email, 'forget') return render(request, 'send_success.html')
如果不加判断,可能导致垃圾邮件成灾
你好, ,能重新发份MX教育网站的初始静态文件吗, 谢谢大哥了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.