Blog App
django-blog-pkg is a simple django blog app to help developers add simple blogs to their main projects. The app allows creating, updating and deleting of posts. It also allows comments on each post. Posts can be grouped under different Tags(categries).
Detailed documentation is found in the docs directory or visit django-blog-pkgdocumentation.
Installation
pip install django-blog-pkg
pip install django-crispy-forms
pip install django-ckeditor
# Include the following in your INSTALLED_APPS
INSTALLED_APPS = [
...
# The following apps are required:
'django.contrib.humanize',
'ckeditor',
'crispy_forms',
'blog',
]
# add the following directly below the INSTALLED_APPS
CKEDITOR_UPLOAD_PATH = 'uploads/'
CRISPY_TEMPLATE_PACK = 'bootstrap4'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
urlpatterns = [
...
path('blog/', include('blog.urls')),
path('ckeditor/', include('ckeditor_uploader.urls')),
...
]
# You can use the URLs provided by blog: `post_list`, `post_detail`, `post_tag`, `post_update`, `post_delete`, `post_create`, `search_blog`, `user_post`
# now add the following lines of code
from django.conf import settings
from django.conf.urls.static import static
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Post Installation
In your Django root execute the command below to create your database tables:
python manage.py makemigrations
python manage.py migrate
Start the development server
python manage.py runserver
and visit http://127.0.0.1:8000/admin/ or http://127.0.0.1:8000/blog/create/new/
to create blog posts (you'll need the Admin app enabled).
Source code
Metadata
Release files for django-blog-pkg 0.0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-blog-pkg-0.0.0.1.tar.gz | 12.2 kB | Without provenance | Details for django-blog-pkg-0.0.0.1.tar.gz |
Release files / django-blog-pkg-0.0.0.1.tar.gz
| Download URL | django-blog-pkg-0.0.0.1.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42d04331ddb301495f09175e5f3feefb6d0c1332e3c4ed0388e6bc7efe961f43
|
|
BLAKE2b-256 checksum How to use checksums |
54317a0758e65220d87428609213152fcdd86de15b362052d62f923b04fc3743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.1
|
Security for django-blog-pkg 0.0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.