Skip to content

aisk/monologue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monologue

Christopher Walken

PyPI version PyPI format Join the chat at https://gitter.im/aisk/monologue

Simple blog system based on Django. Can be used as standalone project or as a django app to be used in your django project.

Usage

Embed

For used as a django app in your django project:

1, Install this package using $ pip install django-monologue, or using poetry / pipenv.

2, Add 'monogule' to you settings.py's INSTALLED_APPS field, it should be like this:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    ...

    'monologue',  # <- Add this.
]

3, Run $ python manage.py migrate monologue to create database tables.

4, Mount monologue's urls to your poject's urls.py. It should be looks like this:

from django.contrib import admin
from django.urls import include, path

urlpatterns = [
    path('admin/', admin.site.urls),

    ...

    path('blog/', include('monologue.urls')), #  <- Add this.
]

The mount path in this example above is blog/, you can change it to whatever you like.

5, Run your server as normal, and check if monologue works fine. Admin site is registered too.

Standalone

You can clone this repo and use it just like a normal django project.

And please notice that you should change the secret key in settings.py before use.

License

MIT