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
触摸云国内IDC/ISP资质齐全商家,与香港公司联合运营, 已超8年运营 。本次为大家带来的是双12特惠活动,美国高防|美国大宽带买就可申请配置升档一级[CPU内存宽带流量选一]升档方式:CPU内存宽带流量任选其一,工单申请免费升级一档珠海触摸云科技有限公司官方网站:https://cmzi.com/可新购免费升档配置套餐:地区CPU内存带宽数据盘价格购买地址美国高防 1核 1G10M20G 26...
久久网云怎么样?久久网云好不好?久久网云是一家成立于2017年的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务,久久网云目前提供有美国免费主机、香港主机、韩国服务器、香港服务器、美国云服务器,香港荃湾CN2弹性云服务器。专注为个人开发者用户,中小型,大型企业用户提供一站式核心网络云端服务部署,促使用户云端部署化简为零,轻松快捷运用云计算!多年云计算领域服务经验,遍布亚太地区的海量节点为...
wordpress简洁英文主题,wordpress简洁通用大气的网站风格设计 + 更适于欧美国外用户操作体验,完善的外贸企业建站功能模块 + 更好的移动设备特色模块支持,更高效实用的后台自定义设置 + 标准高效的代码程序功能结构,更利于Goolge等国际搜索引擎的SEO搜索优化和站点收录排名。点击进入:wordpress简洁通用型高级外贸主题主题价格:¥3980 特 惠 价:¥1280安装环境:运...
pastebin为你推荐
网罗设计谁知道怎么做网络设计啊?就是设计名片啊?设计什么的?我想自己亲自做,急!!!外挂购买外挂什么意思哈利波特罗恩升级当爸为什么赫敏喜欢的是罗恩而不是哈里?真希望他们在一起。Baby被问婚变绯闻小s在黄晓明婚礼上问了什么问题中老铁路一带一路的火车是什么火车陈嘉垣大家觉得陈嘉桓漂亮还是钟嘉欣漂亮?seo优化工具SEO优化要用到什么软件?www.sesehu.comwww.121gao.com 是谁的网站啊se95se.com现在400se就是进不去呢?进WWW怎么400se总cOM打开一半,?求解lcoc.top日本Ni-TOP是什么意思?
中国万网域名注册 java主机 韩国加速器 59.99美元 轻量 中国特价网 hnyd 创梦 cdn加速原理 世界测速 100m独享 hktv 摩尔庄园注册 万网注册 如何登陆阿里云邮箱 国外免费云空间 脚本大全 asp介绍 德国代理 免费服务器 更多