django-fileflatpages.FIGTPAGES¿¡ ´ëÇÑ Á¶¸í±â¸¦º¸´Ù Æí¸®ÇÏ°Ô ¸¸µå´Â DJANGO ¾Û | |
Áö±Ý ´Ù¿î·Îµå |
django-fileflatpages. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- BSD License
- °Ô½ÃÀÚ À̸§:
- Keegan Carruthers-Smith
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://people.cs.uct.ac.za/~smtkee002/AmarokQuilt.html
django-fileflatpages. ű×
django-fileflatpages. ¼³¸í
ÆòÆÇÀ»À§ÇÑ Á¶¸í±â¸¦º¸´Ù Æí¸®ÇÏ°Ô ¸¸µå´Â Django ¾Û Django-FileFlatPages´Â Django.contrib.FlatPages¸¦ »ç¿ëÇÏ¿© Ç÷§ ÆäÀÌÁö¸¦ ´õ Æí¸®ÇÏ°Ô »ç¿ëÇÒ ¼öÀÖ´Â ´ÜÁ¡À» ´õ Æí¸®ÇÏ°Ô ¸¸µå´Â Django ¾ÛÀÔ´Ï´Ù. Ç÷§ ÆäÀÌÁö°¡ ¿øº» ÆÄÀÏ°ú ÇÔ²² Æò¸é ÆäÀÌÁö¸¦ ÀúÀåÇÏ´Â À¯ÀÏÇÑ ¹æ¹ýÀº °íÁ¤ ÀåÄ¡·Î Ç¥½ÃµË´Ï´Ù. django-fileflat ÆäÀÌÁö´Â ÆÄÀÏÀ» ¾Û¿¡¼ Ç÷§ ÆäÀÌÁö·Î »ðÀÔ ÇÏ¿©ÀÌ ¹®Á¦¸¦ ÇØ°áÇÕ´Ï´Ù. Django-fileFlatPages´Â Django °ü¸® ¸í·É loadFlatPagesÀÔ´Ï´Ù. Projects install_appsÀÇ °¢ ¾Û¿¡ ´ëÇØ LoadFlatPages´Â Birection FlatPages¸¦ ã½À´Ï´Ù. FlatPages µð·ºÅ丮¸¦ ãÀ¸¸é FlatPages µð·ºÅ丮¿¡ FlatPage·Î °¢ ÆÄÀÏÀÌ Ãß°¡µË´Ï´Ù. Ç÷§ ÆäÀÌÁö ¼Ó¼ºÀº °¢ ÆÄÀÏÀÇ ¸Ç À§¿¡ÀÖ´Â ÁÖ¼®À» »ç¿ëÇÏ¿© ÁöÁ¤µË´Ï´Ù. Django-fileFlatPages´Â ù ¹ø° ÁÙ¿¡¼ ½ÃÀÛÇÏ°í °¢ ÁÙ¿¡ ´ëÇØ attribute = Value ÁÖ¼®À» ã½À´Ï´Ù. Django-FileFlat ÆäÀÌÁö°¡ ºñ ÁÖ¼®ÀÌ ¾Æ´Ñ ÇàÀ» ¹ß°ßÇÏÀÚ¸¶ÀÚ Ãß°¡ ÀÇ°ßÀ» ã±â¸¦ ÁßÁöÇÕ´Ï´Ù. ¿¹ : .. - * - ¸ðµå : RST - * - .. URL = / about / .. title = about .. template_name = FlatPages / rst.html .. enable_comments = falseHello WorldCreates : FlatPage (url = '/ about', title = 'Á¤º¸', template_name = 'flatpages / rst.html', enable_comments = false, sites = , ÄÜÅÙÃ÷ = ÆÄÀÏ (fixture_path) .read ()) ÁöÁ¤ÇÒ ¼öÀִ Ư¼ö Çʵ尡 Çϳª ÀÖ°í, remove_comments = true. ÀÌ·¸°ÔÇϸé Django-fileFlat ÆäÀÌÁöÀÇ ÁÖ¿ä À¥ »çÀÌÆ®°¡ https://bitbucket.org/keegan_csmith/django-fileflatpages°¡ ÀÖÁö¸¸ httpsÀÇ Git °Å¿ïÀÌ ÀÖÁö¸¸ django-fileflatpagesÀÇ ÁÖ¿ä À¥ »çÀÌÆ®´Â https://bitbucket.org/keegan_csmith/django-fileflatpages°¡ ÀÖÁö¸¸ https¿¡ÀÖ´Â git ¹Ì·¯µµ ÀÖ½À´Ï´Ù : //github.com/keegancsmith/django-fileflatpagesinstalle ÁÁ¾ÆÇÏ´Â ÆÄÀ̽ã ÆÐÅ°Áö °ü¸®ÀÚ¿Í ÇÔ²² django-fileflat ÆäÀÌÁö¸¦ ¼³Ä¡ÇϽʽÿÀ. pip ¼³Ä¡ django-fileflatpages installation_apps ¼³Á¤¿¡ "fileflatpages"¸¦ Ãß°¡ÇϽʽÿÀ. installed_apps = make ¶ÇÇÑ ÇÁ·ÎÁ§Æ®¿¡ ´ëÇÑ ÆòÆǵµ °¡´ÉÇϰԵǾú½À´Ï´Ù. https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/now django-admin.py loadFlatPages¸¦ ½ÇÇàÇÏ¸é ¸ðµç ¼³Ä¡µÈ ÀÀ¿ë ÇÁ·Î±×·¥¿¡ FlatPages°¡ Ãß°¡µË´Ï´Ù. example sitean ¿¹Á¦ ÇÁ·ÎÁ§Æ®°¡ example_project µð·ºÅ丮¿¡ ÀúÀåµË´Ï´Ù. µ¥ÀÌÅͺ£À̽º¿¡ Ãß°¡µÇ´Â FlatPagesÀÇ example_project / app / flatpages µð·ºÅ͸®¸¦ ÂüÁ¶ÇϽʽÿÀ. °¡»ó ȯ°æ¿¡¼ ¿¹Á¦ »çÀÌÆ®¸¦ ¿Ã¸®°í ½ÇÇàÇÏ·Á¸é ´ÙÀ½ ´Ü°è¸¦ ¼öÇàÇϽʽÿÀ. $ VirtualEnv-Site-Packages env $. env / bin / invitate $ pip install -r example_project / requirement.txt $ python setup.py ¼³Ä¡ $ python example_project / manage.py syncdb $ python example_project / manage.py loadFlatPages #
RunServerYou´Â ÀÌÁ¦ http : // localhost : 8000 / ¿ä±¸ »çÇ×À¸·Î ¿¹Á¦ »çÀÌÆ®¸¦ Ž»ö ÇÒ ¼ö ÀÖ¾î¾ßÇÕ´Ï´Ù. ¡¤ ÆÄÀ̽㠡¤ Àå°í
django-fileflatpages. °ü·Ã ¼ÒÇÁÆ®¿þ¾î
language_middleware.
ÀÌ WSGI ¹Ìµé¿þ¾î´Â ¾ð¾î¸¦ '/ es / documents'¶Ç´Â AC¿¡¼ Àͼ÷ÇÏÁö ¾ÊÀº URL¿¡¼ ¾ð¾î¸¦ ÃëÇÕ´Ï´Ù ... ...
112
Àå°í ¼¼¼Ç - À¸½º´Ï¾Æ
Django ¸ðµ¨ ¹Í½º°¡ ¼¼¼Ç¿¡¼ °³Ã¼¸¦ ½±°Ô ½±°Ô Áã°í (¿¹ : Áö¿¬ µî·Ï / ·Î±×ÀÎ) ...
174