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
Release history Release notifications | RSS feed
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.2.5.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blog_hj3415-0.2.5.tar.gz.
File metadata
- Download URL: blog_hj3415-0.2.5.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
610f68b5f516d8f8acdd726910e9738cc3ed271924345412f322f3262f7a8afc
|
|
| MD5 |
e2261a6d077b15f269de0d24bd012235
|
|
| BLAKE2b-256 |
22be3ad09f122e8f84a6600243b1472be7c97910710a7c8aca0f48efed1f9cef
|
File details
Details for the file blog_hj3415-0.2.5-py2.py3-none-any.whl.
File metadata
- Download URL: blog_hj3415-0.2.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
416e7202e205fcd989d90a2b6b54b5d6ebc7776cd7ff3c5c639f0b110d02c27c
|
|
| MD5 |
c1b50ba301a0c0540044af4f463a4bc5
|
|
| BLAKE2b-256 |
7063b49309d0efb90d026b9cd3708c9671b53c153cfb2aad4c1a1b779b7b3712
|