DLLpastebin
pastebin 时间:2021-04-04 阅读:(
)
397FedericoMarani2019F.
Marani,PracticalDjango2andChannels2,https://doi.
org/10.
1007/978-1-4842-4099-1IndexAAboutuspage,DjangoBootstrap,35contextprocessors,36creation,37HTML,34HTTPmethod,36include()function,37reverse()function,38templateinheritance,33test,38URL,37,38Addressmodel,checkoutsystem,135–136Addview,238AmazonS3APIaccess,383AWS,383boto3,383IAM,384Minio,384PaaS,383twelve-factorapp,383AmazonWebServices(AWS),383APIclientlibraryauth()method,339chatcomponent,339HTTPrequests,339JavaScriptclass,335–339AppConfigsubclass,14Applistview,238AsgiHandler,310AsyncConsumerclass,283AsynchronousServerGatewayInterface(ASGI),310AsyncHttpConsumer,309AsyncJsonWebsocketConsumer,295authenticate()function,122,132AuthenticationMiddleware,17AuthMiddlewareStack,326autocomplete_fieldssetting,88Automatedtesting,22auto_now_addattribute,166auto_nowattribute,166BBasketLinemodel,146,164basket_middleware,147Basket/shoppingcartadd_to_basketview,153basket_id,147BasketLinemodels,146function-basedview,148–149,153–154398GETrequests,154httprequests,147inlineformset_factory()function,152mergebaskets,logintime,155–158middleware,146POSTrequest,154productdetailtemplate,150quantityfield,146template,154test,150–151widget(seeWidget,basketquantities)BookTimeproject,221Bootstrap,24CCairo,270Centralofficeemployees,240Changelistview,238Changemodelpage,117Changeview,238CharField,57Chatbootstrappage,290Chatdashboardautomatedtesting,311–312,314code,304HTTProutes,309–310SSE,303URL,305URLRouter,310chat_message()handler,296Chatpageautomatedtestingblocking,302–303code,298–299,301communicators,298DjangoTestCase,298URLRouter,302customer-service,286–288routing,297–298ChatViewchatinteractions,345,347–349componentDidUpdate()method,349ScrollView,349test,350–351Checkoutdata,displayBasketmodel,175DjangoAdmin,175,177foreignkeys,177ModelAdmin,177Ordermodel,175CheckoutflowaddingURLs,174–175addresscreationpage,172addressselectionpage,170,174baskettemplate,172–173checkout_done,174FormView,170CheckoutsystemBasketmodel,166–167basket/shoppingcart,creation(seebasket/shoppingcart)Basket/shoppingcart(cont.
)Index399checkoutflow(seeCheckoutflow)createloginpage(seeLoginpage)createregistrationpage(seeRegistrationpage)customerservice,165e-commercesites,111flow,163ForeignKeyfield,166OrderLinemodel,163Ordermodel,163test,168–169timestamps,166usersaddresses(seeUsersaddresses)Class-basedviews(CBVs),20–21clean()function,45connect()method,295Contactusformaddformcontactuspage,50CSRFattacks,48FormView,48template,47test,49URLmapping,48urlpatterns,48–49arguments,45e-mails,40,41,46–47errors,46form,fields,44–45formrendering,52–53formslibrary,39FormView,51is_valid(),46logging,41messagefield,40namefield,40send_mail()function,41testdiscovery,43–44testing,41–43Contentdeliverynetwork(CDN),26Continuousintegration(CI),389create_order()method,169,171createsuperusercommand,76CreateViewclass,137Cross-SiteRequestForgery(CSRF)attacks,48CSS/JSbuildtool,seeWebpackCSSpreprocessors,180Curl,224DDatabases,18–19database_sync_to_async()method,295Datadefinitionlanguage(DLL),57Debugmode,388debugpage,12–13error,12METAinformation,14traceback,14ZeroDivisionError,13DeleteView,137,238Deserialization,86Developmentserver,8,10Index400DigitalOcean,372disconnect()method,295DispatchersAdminSite,255DispatchersOrderAdmin,255Dispatchoffice,240Djangoapplicationregistry,63authenticationsystem,122booktime,8debugtoolbar,213–215defined,3installing,7loginview,registrationpage,123–125manage.
py,8model-template-viewpattern,4Pipfile,8Pipfile.
lock,8projectvs.
app,10–11signals,232templatelayer,4viewlayer,4DjangoAdmin,115–116,119authentication,236built-inlog,236class-basedviews,236configuration,78–80CSS,255defined,75function-basedviews,236GitHub,239images,83initialpage,76in_stock,81internaldashbordcreation(seeInternaldashbord)listviews,77permissionsystem,236productimagetable,83producttags,81–82userflow,236user-uploadedimages,84views,236–239visualization,78Djangochannelsasynchronousinteraction,279asynchronousvs.
synchronouscode,280AuthMiddlewareStack,285channellayer,284chatserver,280configuration,281consumers,283GitHub,279groups,284ProtocolTypeRouter,285Redis,installation,281subclass,consumer,283django.
db.
models.
fields.
Field,56Django-extensionscommands,206–207graphmodels,207–208installlibrary,205runserver_pluscommand,209–210shell_pluscommand,208–209Werkzeug,209django-extensionslibrary,236Index401django.
forms.
fields.
Field,44django.
forms.
Form,44django.
forms.
Widget,45Djangoprojectautomatedtesting,185CSSpreprocessors,180JavaScript,181JavaScripttesting,181end-to-end(E2E)testing,186integrationtesting,185unittesting,185DjangoRestFramework(DRF),233,314APIendpoints,230–231APIflow,224APIusecases,223authenticationclasses,228curlcommand,224dispatchsystem,225django-filter,227–228install,227numericstatuscodes,226orderlines,224–227permissions,228shippingaddress,225user,228–229DjangositesdeploymentHTTP/2,382invoicetest,393minifyingJS/CSS,363,365PDF,test,393–394Seleniumtest,392SSL,382testing,389–391test-taggingfeature,392WhiteNoise,393DjangoUserAdmin,115,117django-webpack-loader,199django-widget-tweaks,221–222Dokku/HerokuASGI,370Buildpacks,375collectstaticstep,376commands,373–375daphne,371deploymentstep,376Djangochannels,370git,372hosturl,381livesite,376,378–379,381loggingoutput,381migratecommand,376PaaS,370Procfile,371Reactfiles,375VM,376Domain-drivendesign(DDD),4DRFWebclient,233EE2Etesting,Seleniumcode,191,193Firefox,191,193Geckodriver,191HTTPclient,193Mac,191Index402Environmentspecificvariablesconfigurationvariables,369databaseurls,367externallibrary,367Redis,chatconsumers,369,370SECRET_KEYvalue,369Errorreporting,388Ffactory_boylibraryfactories,212–213fakedata,211installing,211Fieldlookups,65formset_factory()function,152Formsets,Django,152form_valid()method,122,123,139,171FormView,51,122Frontendvariablescontextprocessors,384GIT_REV,385HTML,386trackerID,385Function-basedview(FBV),20–21GGeckodriver,191get_form_kwargs()method,171get_queryset()method,139,255get_response()method,147get_success_url()method,123get_user_type()method,295group_add()method,284,295group_discard()method,284,295group_send()method,284,295Hhandle()method,309Headlessbrowser,186Historyview,238Homepageactivityloop,30Bootstrap,24–25CDN,26HTML,24statictemplate,27,28templates,30–31TemplateView,31–32testingautomatedtests,29HTTPlevel,28URL,25,32–33HttpCommunicator,311HTTPserver-senteventsconsumer,306–308HTTPstatuses404and500,387IIdentityandAccessManagement(IAM),383ImageField,59Index403Imageswitcher,productpageCSS,189React,186,188–189import_datacommand,94Indexview,238inlineformset_factory()function,152INSTALLED_APPS,14,31InternaldashboardAdmintemplate,257DjangoORM,258products,bulkupdate,268–269reportingorders(seeReportingorders)templates,256urlpatterns,255users,multipleadmin,242,244–248,250–251,253J,KJasmine,201JavaScriptAngular,182Jest,201–203jQuery,182React,182unittestimageswitcher.
test.
js,201–202Jestconfiguration,202npmtest,202pipeline,203Vue.
js,182websites,181Jest,201JOINoperations,59,66LLesspreprocessor,181Linux,5ListView,137Logging,15–16login()function,122Loginpage__init__()method,132LoginView,131template,133–135LoginRequiredMixinfunction,139LoginViewflexbox,343Reactcomponents,340–342render()method,343test,343–345textcomponent,343MmacOS,5makemigrationscommand,57,68,296Managementcommandscheck,85compilemessages,85dbshell,85dumpdata,85–86,88–89Index404get_by_natural_key()method,89importingdataadd_argumentsfunction,94argparse,90call_command(),95CSV,91,94get_or_createfunction,94handle()function,91implementation,92–93import_datacommand,94manage.
py,90override_settings,96PostgreSQL,96ProductImagemodel,94Pythonmodules,90test,95loaddata,85makemessages,85.
/manage.
pyrunserver,84natural_key()method,89Productmodel,87ProductTagmodel,87shell,85str()method,88UUIDs,87Manager,65ManifestStaticFilesStorage,367ManyToManyField,60max_length,57MEDIA_ROOT/MEDIA_URL,17Middleware,17,146–147Migrations,68–69MobileAPIs,DRFauthentication,314–316ordershipmenttracking(seeShipmenttracking)retrieveordersendpoint,316–317Ordermodel,317,318test,319–320MobilecustomerserviceappAndroidpacking,361–362chatscreen,334Jest,358loginscreen,334maincomponent,357–358mainpage,335orderselection,334snapshottesting,358yarntest,358–360Mocha,201Mockmodule,128Modeldefined,55productcreation,56DLLcommands,57–58makemigrationscommand,57migrations,57ProductImage,58ProductTag,59–60Managementcommands(cont.
)Index405thumbnailsbootstrappingdata,64–65code,62–63Djangosignals,61handlers,63ImageFieldfield,61makemigrationscommand,61ready()method,63signals.
py,62test,64ModelForm,122,128–129modelformset_factory()function,152Model-template-viewpattern,4MySQL,6Nnatural_key(),88Nginx,382OObjectRelationalMapper(ORM),55,59order.
lines.
all()function,166order.
orderline_set.
all()function,166OrderViewcomponent,351–355Orders,356test,356ORqueries,67PPango,270path()function,104Pipenv,6–7PostgreSQL,6,18–19PrintinginvoicesAdmintemplates,275Adminview,270–272HTMLmode,272packagemanager,270PDFmode,272template,272–273testing,276,278WeasyPrint,269–270Productlistpageargsattribute,98404exception,98forloopvariable,100kwargsattribute,98ListView,96object_list,103paginate_by,97pathconverters,104product_list,101,103self.
request.
GETdictionary,98slugconverter,98template,99–100test_views.
pyfile,101–103urlpatterns,98psqlclient,117Python,2,5,11,120PythonUnittestframework,298Index406QQuerySet,65bidirectionality,69datamigrationapps.
get_model()method,75emptymigration,74noopbackwardfunction,75RunPython,75JOINs,66mergingmigrationsdoublehead,72makemigrations,71merge,73migratecommand,70–71migrations,68–69ORqueries,67Productmodel,67Product.
objects.
active(),67queries,66reverseoperations,69QUnit,201RReactNative,331–333receive_json()method,295Redis,280,282,289KEYScommand,289SETEXcommand,289refresh_from_db()method,169Registrationpageclass-basedview,121–122displaymessages,130e-mails,121flashmessages,123formlayer,119forms,131messagesframework,130messages.
info()method,123ModelForms,128–129template,125test,form,125,127test,views,127–128UserCreationForm,121views,131render_to_string()method,272ReportingordersAdminviewstests,266–267aggregate()method,258annotate()method,258Chart.
js,261factories,268mostboughtproductsview,262–263,265–266orders_per_day,259ORMcode,260Postgres,259SQLqueries,258values()method,259request.
basketattribute,149reverse_lazy()function,139RunPythonoperation,75runservercommand,281Index407SSass,180save()method,registrationpage,122SECRET_KEY,20Selenium,191self.
stderr.
write,95self.
stdout.
write,95Single-pageapplication(SPA),183send_mail()function,46,128Sentry,388Serialization,86Server-sentevents(SSE),303ServingstaticassetsAmazonS3,365collectstaticDjangocommand,367Djangolibrary,365GoogleCloudStorage,365Minio,365Nginx,365WhiteNoise,366SessionMiddleware,17Shipmenttrackingaiohttp,322aioredis,322asynchronousnetworklibrary,322BookTime,320consumer,322,324HTTPAPI,320Pastebin,321–322,324query_remote_server(),324,326reverse-proxysystem,321test,324–325showmigrationscommand,68show_urlscommand,236Signuppage,126SingleObjectMixinclass,140Single-pageapplication(SPA)bootstrappage,184drawbacks,183RESTAPIs,183routing,183SingleproductpageDetailView,104,106,108object.
tags.
all,107templatefilters,106urlpattern,107SMTP,20,46SQLite,6,117sqlmigrate,68SQLqueries,4Staticfile,179–180StaticLiveServerTestCase,193STATIC_ROOT,16STATIC_URL,16stream()method,309Stylus,181Supportviews,238SyncConsumer,283TTemplates,18TransactionTestCase,65Twelve-factorappmethodology,367Index408Uunittestpackage,22UpdateView,137urlpatterns,32UserCreationForm,121,129UserManager,113–114Usermodelconfiguration,115fields,112methods,112migrations,117–119psqlclient,117usernamefield,113Usersaddressesaddressmodel,136as_pmethod,142class-basedviews,137countryfield,136deletionoperation,143ListView,141modelparameter,139tests,143–145updateoperation,142userinformation,135Usertypes,BookTimecompany,239–242VVARCHAR,57Visualizingorders,django-tables2anddjango-filterauthenticatedview,216CSSstyles,219DjangoAdmin,217FilterSetclass,217INSTALLED_APPS,219ModelForms,217orderdashboard,219–220OrderView,217sortingcontrol,218template,218W,X,Y,ZWeasyPrint,269Webpack,363–364configuration,195Django,integration,200django-webpack-loader,199imageswitcher.
js,197importstatements,198loaderlibrary,196–197Node.
js,194product_detail.
htmltemplate,199run,198webpack.
config.
js,196windowobject,198Websocketconsumer,291–294Websocketprotocolchat_join,288chat_leave,288chat_message,288heartbeat,289message,289Index409WhiteNoise,365Widget,basketquantitiesblock,template,161–162CSS,160formsetfactory,162HTML,159JavaScript,160–161jQuery,161Mediasubclass,159quantityfield,158Index
WordPress专业外贸企业网站搭建模版,特色专业外贸企业风格 + 自适应网站开发设计 通用流行的外贸企业网站模块 + 更好的SEO搜索优化和收录 自定义多模块的产品展示功能 + 高效实用的后台自定义模块设置!采用标准的HTML5+CSS3语言开发,兼容当下的各种主流浏览器: IE 6+(以及类似360、遨游等基于IE内核的)、Firefox、Google Chrome、Safari、Opera...
提速啦(www.tisula.com)是赣州王成璟网络科技有限公司旗下云服务器品牌,目前拥有在籍员工40人左右,社保在籍员工30人+,是正规的国内拥有IDC ICP ISP CDN 云牌照资质商家,2018-2021年连续4年获得CTG机房顶级金牌代理商荣誉 2021年赣州市于都县创业大赛三等奖,2020年于都电子商务示范企业,2021年于都县电子商务融合推广大使。资源优势介绍:Ceranetwo...
官方网站:点击访问月神科技官网优惠码:美国优惠方案:CPU:E5-2696V2,机房:国人热衷的优质 CeraNetworks机房,优惠码:3wuZD43F 【过期时间:5.31,季付年付均可用】活动方案:1、美国机房:洛杉矶CN2-GIA,100%高性能核心:2核CPU内存:2GB硬盘:50GB流量:Unmilited端口:10Mbps架构:KVM折后价:15元/月、150元/年传送:购买链接洛...
pastebin为你推荐
网易网盘关闭入口网易网盘里面有好的东西,怎么才能共享出来?【已解决】百度商城百度商城知道在哪个地方,怎么找不到啊长尾关键词挖掘工具外贸长尾关键词挖掘工具哪个好用www.haole012.com阜阳有什么好的正规的招聘网站?www.hhh258comwww.tx88d.com 有这个网站吗?抓站工具仿站必备软件有哪些工具?最好好用的仿站工具是那个几个?99nets.com99nets网游模拟娱乐社区怎么打不开了?????????谁能告诉我 ???、baqizi.cc讲讲曾子杀猪的主要内容!5566.com5566网址大全机器蜘蛛《不思议迷宫》四个机器蜘蛛怎么得 获得攻略方法介绍
高防服务器租用qy 域名备案批量查询 动态域名解析软件 外国空间 全能主机 架设服务器 电子邮件服务器 91vps linode支付宝 论坛主机 日本代理ip 1美元 阿里云邮箱怎么注册 九零网络 register.com 发证机构 dbank 容 电脑显示屏不亮但是主机已开机 电脑主机启动不了 更多