GithubHelp home page GithubHelp logo

yattdev / django-simple-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drager/django-simple-blog

1.0 0.0 0.0 40 KB

django-simple-blog is a simple Django app for fast integrating your current project with a blog-system. You can easily write blog posts, let users comment the posts

License: BSD 2-Clause "Simplified" License

Python 75.51% HTML 24.49%

django-simple-blog's Introduction

django-simple-blog

What is it?

django-simple-blog is a simple Django app for fast integrating your current project with a blog-system

You can easily write blog posts, let users comment the posts if you'd like to.

Installation

You can do any of the following to install django-simple-blog

  • Run pip install django-simple-blog.
  • Run easy_install django-simple-blog.
  • Download or "git clone" the package and run setup.py.
  • Download or "git clone" the package and add simpleblog to your PYTHONPATH.

Usage

  1. Add simpleblog and django.contrib.sites to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django.contrib.sites',
        'simpleblog',
    ]

    Note: if you want to customize the templates, please add el_pagination markdown_deux pagedown to your INSTALLED_APPS setting.

    INSTALLED_APPS = [

    ... 'django.contrib.sites', 'el_pagination', 'markdown_deux', 'pagedown', 'simpleblog',

    ]

  2. Add SITE_ID = 1 in your settings.py.
  3. Run python manage.py migrate
  4. Include the simpleblog urls like this to have your "home page" as the blog index:

    ...
    
      urlpatterns =[
          path('admin/', admin.site.urls),
          path('blog/', include('simpleblog.urls')),
      ]

Settings

django-simple-blog has one setting at the moment:

# How long the length of the textarea should be.

MAX_LENGTH_TEXTAREA = 120 #(defaults to None)

Templatetags ===========

django-simple-blog comes with one templatetag for getting the latest desired number of posts. Just do this in any template:: {% load blog_tags %}

{% latest_blog_posts 5 %}

Translation

django-simple-blog is available in english, swedish and french at the moment, feel free to translate the application in another language.

Admin

For writing posts we will use django's admin application.

The templates

The templates is just there as examples for how your templates could look like, but they work excellent as well, but if you don't like them, just override them with your own templates simply.

Requirements

Django>=1.8

django-el-paginatio>=2.0

simplemathcaptcha>=1.0.3

django-markdown-deux>=1.0.4

django-pagedown>=0.0.5

If you have problem getting the right versions of these packages, clone them from their github repository.

django-simple-blog's People

Contributors

drager avatar emadmokhtar avatar florimondmanca avatar lexwest avatar ellisist avatar mohit23x avatar jainilgandhi avatar ldonjibson avatar

Stargazers

Alassane avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.