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.3.1.tar.gz
(9.4 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.3.1.tar.gz.
File metadata
- Download URL: blog_hj3415-0.3.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.33.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc785762303649488427f5582f5f13644b5d2ff0f8340e24567b94c9092c2a58
|
|
| MD5 |
5880d43269469c9bef389b7ab22b983f
|
|
| BLAKE2b-256 |
4e714a66eb7a9520c2c63d24347d492f7eab632a998f1b1ee6bba48bed515d16
|
File details
Details for the file blog_hj3415-0.3.1-py2.py3-none-any.whl.
File metadata
- Download URL: blog_hj3415-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.33.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a76209506761a057452fb9837039bd157ab7ae37b6331f0954528ca6d266097f
|
|
| MD5 |
819e1bb7b0e2c10a0a2de98f5e782b9c
|
|
| BLAKE2b-256 |
e2f7c31b9716b505ee462fbfffa9ffc8cd7b2da1cf1d8f1b4b8558a4c4f5dffe
|