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
Friendhosting发布了针对“系统管理日”(每年7月的最后一个星期五)的优惠活动,针对VPS主机提供55%的优惠(相当于四五折),支持1-6个月付款使用,首付折扣非永久,优惠后最低套餐首半年7.18欧元起。这是一家保加利亚主机商,成立于2009年4月,商家提供VDS和独立服务器租用等,数据中心目前可选美国洛杉矶、保加利亚、乌克兰、荷兰、拉脱维亚、捷克和波兰等8个地区机房。下面以最低套餐为例...
优惠码年付一次性5折优惠码:TYO-Lite-Open-Beta-1y-50OFF永久8折优惠码:TYO-Lite-Open-Beta-Recur-20OFF日本vpsCPU内存SSD流量带宽价格购买1核1.5G20 GB4 TB1Gbps$10.9/月购买2核2 G40 GB6 TB1Gbps$16.9/月购买2核4 G60 GB8 TB1Gbps$21.9/月购买4核4 G80 GB12 TB...
萤光云怎么样?萤光云是一家国人云厂商,总部位于福建福州。其成立于2002年,主打高防云服务器产品,主要提供福州、北京、上海BGP和香港CN2节点。萤光云的高防云服务器自带50G防御,适合高防建站、游戏高防等业务。目前萤光云推出北京云服务器优惠活动,机房为北京BGP机房,购买北京云服务器可享受6.5折优惠+51元代金券(折扣和代金券可叠加使用)。活动期间还支持申请免费试用,需提交工单开通免费试用体验...
pastebin为你推荐
蓝瘦香菇被抢注蓝瘦香菇下一句怎么接微信回应封杀钉钉为什么微信被封以后然后解封了过了一会又被封了留学生认证留学生回国认证,是否要求需要在国外待满三年,还是只需要完成所需的三年课程?百度关键词价格查询在百度设置关键字是怎么收费的www.haole012.comhttp://fj.qq.com/news/wm/wm012.htm 这个链接的视频的 第3分20秒开始的 背景音乐 是什么?lcoc.top日本Ni-TOP是什么意思?haole012.com说在:012qq.com这个网站能免费挂QQ,是真的吗?www.gogo.com哪种丰胸产品是不含激素的?hao.rising.cn电脑每次开机的时候,都会弹出“http://hao.rising.cn/?b=34” 但是这个时888300.com请问GXG客服电话号码是多少?
免费二级域名 万网域名查询 政务和公益机构域名注册管理中心 域名备案信息查询 火山主机 lunarpages winhost 免备案cdn 日志分析软件 好看的桌面背景图片 网站挂马检测工具 anylink 河南m值兑换 工信部icp备案号 hostloc 鲁诺 卡巴斯基破解版 如何注册阿里云邮箱 ca187 美国独立日 更多