Simple blogging application
Project description
Simple blogging application
django-blawg is a very basic blogging app that was mainly made to practice generic views and mixins. It supports multiple blogs for users, date-based listings and comments. An already existing user authentication system is assumed and utilized. django-blawg is not optimized or built for large-scale usage.
Installation
Download and install from PyPI:
pip install django-blawg
This will also install django-mptt and django-autoslug, as they are dependencies.
Add it to your INSTALLED_APPS, as well as ‘mptt’:
INSTALLED_APPS = (
...
'mptt',
...
'blawg',
...
)
Include the urlconf of the app in your project’s urls.py:
from django.conf.urls import url, include
urlpatterns = [
...
url(r'blog/', include('blawg.urls', namespace='blawg')),
...
]
Of course, you can put it under any url you want, like r’’ or r’^mysite/myblog/’.
Usage
The starting URL is some user’s username, his home page, which lists the user’s blogs. The root URL redirects to the currently logged in user’s home page.
Settings
All of the app settings are optional but you may want to modify them to customize to your needs.
BLAWG_TITLE_MAX_LENGTH: Maximum allowed characters for blog and entry title.
Default: 100
BLAWG_DESCRIPTION_MAX_LENGTH: Maximum allowed characters for blog description.
Default: 200
BLAWG_GUEST_NAME_MAX_LENGTH: Maximum allowed characters for anonymous commenter name.
Default: 30
BLAWG_FORBIDDEN_SLUGS: List of words not allowed to be used as slugs.
Default: [‘create’, ‘update’, ‘delete’]
BLAWG_SLUG_MODIFIER: String to be appended to an invalid slug.
Default: ‘-’
License
BSD
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
Built Distributions
File details
Details for the file django-blawg-0.0.1.zip
.
File metadata
- Download URL: django-blawg-0.0.1.zip
- Upload date:
- Size: 55.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e4f1c1dfb6ad018d2082027ab51e6dba9abd0d85541778ad12d5d30998a5cd |
|
MD5 | 1106754c46b04fb4ca7c77336c819102 |
|
BLAKE2b-256 | 165b97251c27e999dd0ac3abdb4c2ee17d4e0436dce85058d029cffa1dd8dedd |
File details
Details for the file django_blawg-0.0.1-py2-none-any.whl
.
File metadata
- Download URL: django_blawg-0.0.1-py2-none-any.whl
- Upload date:
- Size: 52.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd4c9f52c25e29448798fea3b21839717000a1bbc2a4f02fcb2d000b79c2209 |
|
MD5 | a101140ba778b84d6751fedff8b930a5 |
|
BLAKE2b-256 | a87471408ebe6e82dfad9f60b97bbb2258931963377ed9b685323b77a68ee38a |
File details
Details for the file django-blawg-0.0.1.win32.exe
.
File metadata
- Download URL: django-blawg-0.0.1.win32.exe
- Upload date:
- Size: 248.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d1f43ae00eb206bdd1e38bf72e04aac929e1a638e35511d0e5af00b00e4e21f |
|
MD5 | a40184da08e074a6dbd5e06b804f6e8a |
|
BLAKE2b-256 | a8ef87f8cc81544a982ca9fb822e6d0db6147b03b0433b7dd471b0fb52117f94 |