Skip to main content

blog-hj3415 is the program for blogging

Project description

blog-hj3415

demiansoft 템플릿의 blog와 portfolio을 구성한다.

settings.py

INSTALLED_APPS += ['blog_hj3415', 'markdownx']
AUTH_USER_MODEL = "blog_hj3415.User"

MEDIA_URL = "/media/"
MEDIA_ROOT = BASE_DIR / "media"

urls.py

from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static

urlpatterns += [path('markdownx/', include('markdownx.urls'))]
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

템플릿에서

  • blog-detail.html
<div>{{ post.body_html|add_img_class:"img-fluid"|safe }}</div>
  • index.html
<div>{{ item.body_html | striptags | truncatechars_html:80 }}</div>

사용하고자하는 앱에서 url.py 와 views.py를 testapp 을 참고하여 구성한다.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blog_hj3415-0.3.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blog_hj3415-0.3.0-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file blog_hj3415-0.3.0.tar.gz.

File metadata

  • Download URL: blog_hj3415-0.3.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for blog_hj3415-0.3.0.tar.gz
Algorithm Hash digest
SHA256 149f8d664d1c606f987d6bc6b2adf5ba92c5a62f0e120b2645f64cb423b8b191
MD5 066b9a310378ee0768d518338bf9d6fe
BLAKE2b-256 8d3fc648252c0b14514e75b66cd42cfb09f939c413a160797670614d9b86120d

See more details on using hashes here.

File details

Details for the file blog_hj3415-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: blog_hj3415-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for blog_hj3415-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 80e11d9d5fdca10f7a86abe2b3f2e6a7fee332a068d3e46a91e26664c9010340
MD5 65ebd05d00af2eb0608d135c6534f707
BLAKE2b-256 eb84257d4fb5aa3ef4f496c1a7cd7d3e17fe8973cbcaaddd7f3b575bf187b1ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page