Django-nadb. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Daniel Aronne
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/earonne/
Django-nadb. ű×
Django-nadb. ¼³¸í
Django-Nadb´Â Django ºí·Î±× ¾ÛÀÔ´Ï´Ù. ¼Ò½º ÀúÀå¼Ò´Â https://github.com/earonne/django-nadb/installationinstilling Django-NADB¿¡¼ ¼Ò½º¸¦ üũ ¾Æ¿ôÇÏ°í ÇÁ·ÎÁ§Æ® ¶Ç´Â PythonPath¿¡ Ãß°¡ÇÏ´Â °Í¸¸ Å °£´ÜÇÕ´Ï´Ù. git, pip ¶Ç´Â easy_installÀ» È®ÀÎÇϽʽÿÀ. GitHub¿¡¼ Django-Nadb¸¦ ²¨³»°Å³ª Pypi.1¿¡¼ ¹æÃâÀ» ¹ÞÀ¸½Ê½Ã¿À. Python ÆÐÅ°Áö À妽º (Pypi)¿¡¼ ÆÐÅ°Áö¸¦ ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇϽʽÿÀ. Easy_install Django-Nadbor¸¦ ¼±È£ÇÏ´Â °æ¿ì PIP : PIP ¼³Ä¡ Django-NADB2. GitHub¿¡¼ ÃֽŠ°³¹ß ¹öÀüÀ» ¼³Ä¡ÇϽʽÿÀ. ÀÌ°ÍÀº ¹°·Ð gitÀ» ¼³Ä¡ÇؾßÇÕ´Ï´Ù : git clone git : //github.com/earonne/django-nadb.gitthen ¼öµ¿À¸·Î ¼³Ä¡ : cd django-nadbpython setup.py dev ¹öÀüÀº ¿ÏÀüÈ÷ Å×½ºÆ®µÇÁö ¾Ê°í ¹ö±×°¡ Æ÷Ç﵃ ¼ö ÀÖ½À´Ï´Ù. .usage1. django-nadb¸¦ ¼³Ä¡ÇÏ·Á¸é installation_apps ¼³Á¤¿¡ ÆÐÅ°Áö¸¦ Ãß°¡Çϱ⠸¸ÇϸéµË´Ï´Ù. # settings.pyinstalled_apps = (... 'nadb', 'django_markup',) # installation_apps.2¿¡ django_markupÀ» Ãß°¡ÇؾßÇÕ´Ï´Ù. syncdb ¸í·ÉÀ» ½ÇÇàÇϽʽÿÀ. ./manage.py syncdb3. ·çÆ® URLCONF¿¡ ÀÌ¿Í °°Àº ÁÙÀ» Ãß°¡ÇÏ¿© Django-NADBÀÇ ±âº» URLÀ» ¼³Á¤ÇϽʽÿÀ. # urls.pyurlpatterns = ÆÐÅÏ ( '', URL (r '^ blog /', include ( 'nadb.urls'))) 4. Django-NADB´Â ¸¶Å© ¾÷ ÇÊÅÍ (¿¹ : Markdown, RestructUredText µî)¸¦ Áö¿øÇÕ´Ï´Ù. ¼³Á¤¿¡ ´ÙÀ½À» Ãß°¡ÇϽʽÿÀ .PY:1.PYNADB_MARKUP_FILTER = 'MARKDOWN'MARKUP_SETTINGS = {'MARKDOWN ': {'safe_mode ': true,'È®ÀåÀÚ ': }} 5. ÅÛÇø´ µð·ºÅ丮 ³»ºÎ¿¡¼ NADB µð·ºÅ丮¸¦ ¸¸µé°í ´ÙÀ½ ÅÛÇø´À» Ãß°¡ÇϽʽÿÀ. base_nadb.htmlpost_list.htmlpost_detail.htmlpost_archive_year.htmlpost_archive_month.htmlpost_archive_day.htmlcategory_list.htmlCategory_detail.htmlProductÀÇ È¨ÆäÀÌÁö
Django-nadb. °ü·Ã ¼ÒÇÁÆ®¿þ¾î