DBB is a dead simple blog app. It has entries and an RSS feed; not much else. Entries are expected to be in raw html.
## Quick start
Install with pip
pip install django-basic-blog
Add "blog" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
...
'blog',
)
Include the blog URLconf in your project urls.py like this:
url(r'^blog/', include('blog.urls', namespace='blog')),
Run `python manage.py migrate` to create the blog models.
Add the settings vars for RSS fields:
BLOG_TITLE // Default "My Blog"
BLOG_DESCRIPTION // Default "I have a Django Blog!"
and the override the default entries/page and RSS pagination if you want
BLOG_ENTRIES_PER_PAGE // Default 20
BLOG_ENTRIES_PER_RSS // Default 5
Start the development server and visit http://127.0.0.1:8000/admin/
to create an entry (you'll need the Admin app enabled).
Visit http://127.0.0.1:8000/blog/ to see the blog.
*NOTE*: There is support for each entry having associated js, but you need work that into the templates yourself. Be careful.
## Development and Testing
### Development
Make a venv, install django.
Set env var to the test settings
export PYTHONPATH='/home/ben/Projects/django-basic-blog'
export DJANGO_SETTINGS_MODULE='sample_project.settings'
Start the server with `django-admin runserver`.
(If you want the admin to be pretty, try collecting statics.)
To poke around with creating and displaying entries:
Set up a superuser (`django-admin createsuperuser`) and hit the admin at `/admin` to try stuff out.
### Testing
`django-admin test blog --settings=sample_project.settings`
Metadata
Release files for django-basic-blog 0.17
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-basic-blog-0.17.tar.gz | 10.4 kB | Without provenance | Details for django-basic-blog-0.17.tar.gz |
Release files / django-basic-blog-0.17.tar.gz
| Download URL | django-basic-blog-0.17.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b0958a04dd5f6b829332abce9ce9ad2b7706b7a8bd4db59809ebd9d38825425
|
|
BLAKE2b-256 checksum How to use checksums |
fdfd7aca0adf510d5ba908f370363499f1518b78883f6382b58520d6c02ffdb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-basic-blog 0.17
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.