¹Ìµé¼®

WSGI ¾ÖÇø®ÄÉÀ̼ÇÀÇ Æødz¿ì ormÀ»À§ÇÑ ¹Ìµé¿þ¾î
Áö±Ý ´Ù¿î·Îµå

¹Ìµé¼® ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • LGPL v2
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Vsevolod Balashov
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://vsevolod.balashov.name

¹Ìµé¼® ű×


¹Ìµé¼® ¼³¸í

WSGI ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ Æødz¿ì¸¦ »ç¿ëÇÏ´Â ¹Ìµé¿þ¾î ÆødzÀº ºü¸£°í ÀÛ°í °­·ÂÇÑ °´Ã¼ °ü°èÇü ¸ÅÆÛÀÔ´Ï´Ù. Web-aware applications.wsgi ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ MILTITHREADED¿¡ »ç¿ëÇÏÁö¸¸ ÀúÀå °´Ã¼´Â ½º·¹µå safeÀÔ´Ï´Ù .MiddleStorm ¹Ìµé¿þ¾î´Â ÀúÀå¼Ò °³Ã¼ (½º·¹µå ´ç Çϳª¾¿)¸¦ °ü¸® ÇÒ ¼ö ÀÖÀ¸¸ç ȯ°æ¿¡ Ãß°¡ ÇÒ ¼ö ÀÖ½À´Ï´Ù. * Class * Decoratora * Configurator Configurator Configurator Middleware : wsgiref.simple_server °¡Á® ¿À±â make_serverfrom storm.database middlestorm °¡Á® ¿À±â middlestormdef storm_app (environ, start_response) : Store = Environ # ... db = create_database ( 'postgres) : // »ç¿ëÀÚ : password @ host / base ') app = middlestorm (storm_app, db) make_server (' ', 8000, app) .serve_forever (', 8000, app) .serve_forever () decorator ¹Ìµé¿þ¾î : wsgiref.simple_server °¡Á® ¿À±â make_serverfrom storm.database °¡Á® ¿À±â create_databaseimport middlestorm @ middlestorm .decorator (create_database ( 'postgres : // user : password @ host / base')) DEF STORM_APP (Environ, start_response) : Store = Environ # ... make_server ( ', 8000, storm_app_app_app ) .serve_forever () ¹Ìµé¿þ¾î¸¦ ¸¸µì´Ï´Ù ºÙ¿© ³Ö±â ±¸¼ºÀ» ÅëÇØ .ini ÆÄÀÏ¿¡ stanza¸¦ Ãß°¡ÇϽʽÿÀ. use = middlestorm # middlestormdb_uri = sqlite : myApp.dband´Â ÇØ´ç ÇÊÅ͸¦ ºÙ¿© ³Ö±â ÆÄÀÌÇÁ ¶óÀο¡ Ãß°¡ÇÕ´Ï´Ù (´Ù½Ã .ini ÆÄÀÏ¿¡¼­) : Pipeline = middlestorm myAppby ±âº» ÀúÀå¼Ò°¡ º¯¼ö storm.store¿¡ ¹èÄ¡µÇ¾ú½À´Ï´Ù. ÀÌ°ÍÀº »ç¿ëÀÚ Á¤ÀÇ ÇÒ ¼ö ÀÖ½À´Ï´Ù. app = middlestorm (storm_app, db, key = 'custom.mystore') ¶Ç´Â decorator ½ºÅ¸ÀÏ : @ middlestorm.DECORATOR (dB, key = 'custom.mystore') def storm_app (environ, start_response) : Store = ȯ°æ ¶Ç´Â ºÙ¿© ³Ö±â ±¸¼º : »ç¿ë = middlestorm # middlestorm # middlestormdb_uri = sqlite : myApp.dbkey = myApp.storeor ºÙ¿© ³Ö±â ±¸¼º : »ç¿ë = middlestorm # middlestorm # middlestormdb_uri = sqlite : myApp.dbkey = myApp.Store ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


¹Ìµé¼® °ü·Ã ¼ÒÇÁÆ®¿þ¾î