| Django-maintenancemode. À¯Áö º¸¼ö ÀÛ¾÷À» À§ÇØ »çÀÌÆ®¸¦ Á¾·á ÇÒ ¼ö ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Django-maintenancemode. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://code.google.com/u/remco.wendt/
Django-maintenancemode. ű×
Django-maintenancemode. ¼³¸í
À¯Áö º¸¼ö ÀÛ¾÷À» À§ÇØ »çÀÌÆ®¸¦ Á¾·á ÇÒ ¼ö ÀÖ½À´Ï´Ù. Django-MaintenanceMode´Â »çÀÌÆ®¸¦ Àӽà Á¾·á ÇÒ ¼ö ÀÖ°í »çÀÌÆ® »ç¿ëÀÚ¸¦ À§ÇØ À¯Áö °ü¸® ÆäÀÌÁö¸¦ Ç¥½ÃÇÏ¸é¼ »çÀÌÆ®¸¦ ¿ÏÀüÈ÷ »ç¿ëÇÒ ¼öÀÖ°Ô ÇØÁÖ´Â ¹Ìµé¿þ¾îÀÔ´Ï´Ù .Installation. .org / pypi / django-maintenancemode ¶Ç´Â http://code.google.com/p/django-maintenanceMode/ * ¼³Ä¡ : Python Setup.py ¼³Ä¡ * Django ¼³Á¤ ÆÄÀÏ¿¡ MaintEnanceMode¸¦ midnedware_classes¿¡ Ãß°¡ÇϽʽÿÀ. DjangoÀÇ AuthenticationMiddleware°¡ ³¡³ª¸é È®ÀÎÇϽʽÿÀ. ±×·¸°Ô : middleware_classes = ( 'django.middleware.common.commonmiddleware', 'django.contrib.sessions.middleware.sessionmiddleware', 'django.contrib.auth.middleware.authenticationmiddleware', 'django.middleware', 'django.middleware', 'maintenanceMode.middleware.maintenanceModeMiddleware',) * Django-maintenancemode´Â Django ÀÛ¾÷¿¡¼ 404 ¶Ç´Â 500 ¿À·ù¸¦ ó¸®ÇÏ´Â °Í°ú µ¿ÀÏÇÑ ¹æ½ÄÀ¸·Î ÀÛµ¿ÇÕ´Ï´Ù. ±âº» URLs.py¿¡¼ ¹«½ÃÇÒ ¼öÀÖ´Â handler503À» Ãß°¡Çϰųª ÅÛÇø´ µð·ºÅ丮¿¡ 503.htmlÀ» Ãß°¡ ÇÒ ¼ö ÀÖ½À´Ï´Ù. * Django ¼³Á¤ ÆÄÀÏ¿¡¼ mainteristment_mode¶ó´Â º¯¼ö¸¦ Ãß°¡ÇÕ´Ï´Ù. ÀÌ º¯¼ö¸¦ true·Î ¼³Á¤Çϸé middleware.configurationIF¸¦ È°¼ºÈÇÏ¿© ÀÚ½ÅÀÇ ÇÁ·ÎÁ§Æ® ¼³Á¤¿¡¼ ¾Æ·¡ ¼³Á¤À» ±¸¼ºÇÏÁö ¾ÊÀ¸¸é ±âº»°ª : maintenance_mode booleanÀ» ½ÇÇàÇÕ´Ï´Ù. À¯Áö º¸¼ö ¸ðµå È°¼ºÈ / ºñÈ°¼ºÈ. ±âº»°ª : Falsesome °üÃø : * »ç¿ëÀÚ°¡ ·Î±×ÀÎ ÇÑ °æ¿ì Á÷¿øÀÌÀÖ´Â °æ¿ì À¯Áö °ü¸® ÆäÀÌÁö°¡ Ç¥½ÃµÇÁö ¾Ê½À´Ï´Ù. * »ç¿ëÀÚÀÇ IP°¡ internal_ips¿¡ ÀÖÀ¸¸é À¯Áö °ü¸® ÆäÀÌÁö°¡ Ç¥½ÃµÇÁö ¾Ê½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Àå°í ÀÌ ¸±¸®½º¿¡¼´Â »õ·Î¿î ±â´É : ¡¤ SetupTools ¹®Á¦°¡ ÇØ°áµÇ¾ú½À´Ï´Ù.ÀÌ KSATO9700À»º¸°í ÇØ Áּż °¨»çÇÕ´Ï´Ù.
Django-maintenancemode. °ü·Ã ¼ÒÇÁÆ®¿þ¾î