GithubHelp home page GithubHelp logo

eduherraiz / puput Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apsl/puput

0.0 2.0 0.0 387 KB

A Django blog app implemented in Wagtail

License: Other

Python 43.78% CSS 32.81% JavaScript 4.82% HTML 18.60%

puput's Introduction

Puput

Puput is a powerful and simple Django app to manage a blog. It uses the awesome Wagtail CMS as content management system.

Puput is the catalan name for Hoopoe which is indeed a beautiful bird.

Imgur

Features

  • Based on Wagtail CMS and Django
  • Comes with a default clean & responsive template
  • SEO friendly urls
  • Support for Disqus comments
  • Archives, tags & categories results pages
  • Search form
  • Last & popular entries
  • Configurable sidebar widgets
  • RSS feeds
  • Blog post related entries
  • Inspired on Wordpress and Zinnia

Setup

  1. Add to PUPUT_APPS to your INSTALLED_APPS in settings.py file. It also includes Wagtail apps and other dependencies.

    from puput import PUPUT_APPS
    
    INSTALLED_APPS += PUPUT_APPS
  2. Add Wagtail required middleware classes in settings.py file

    MIDDLEWARE_CLASSES = (
        ...
        'wagtail.wagtailcore.middleware.SiteMiddleware',
        'wagtail.wagtailredirects.middleware.RedirectMiddleware',
    )
  3. Add request context processor to TEMPLATE_CONTEXT_PROCESSORS structure in settings.py file

    TEMPLATE_CONTEXT_PROCESSORS = (
        ...
        'django.core.context_processors.request',
    )
  4. Set WAGTAIL_SITE_NAME variable in settings.py file with your site name

  5. Place Puput urls at the bottom of the urlpatterns. It also includes Wagtail urls.

    urlpatterns = [
        ...
        url(r'', include('puput.urls')),
    ]
  6. Run python manage.py migrate and python manage.py puput_initial_data to load initial data to start a blog site.

  7. Open your broswer at http://127.0.0.1:8000/blog/ to view your blog home page.

Setup (as Wagtail plugin)

  1. Add puputto your INSTALLED_APPS in settings.py file.

  2. If you have previously defined Wagtail urls in urls.py set PUPUT_AS_PLUGIN = True in the settings.py. This will avoid to include Wagtail urls again when you include necessary Puput urls.

  3. Include Puput urls in your urls.py file.

    urlpatterns = [
        ...
        url(r'', include('puput.urls')),
        ...
    ]
  4. Run python manage.py migrate

Manage your content

Puput uses the default Wagtail CMS admin page in order to manage the content of the blog. It provides a powerful, clean and modern interface. Just open your browser at http://127.0.0.1:8000/blog_admin/.

This is how adding entry page looks:

Imgur

Please visit Wagtail: an Editor’s guide for details of how to use Wagtail editor's dashboard.

Comments

Puput allows customize the comment system for your blog entries. Simply go to settings tab while editing blog properties and add the required parameters depending on which system you want to use. For now, only Disqus comments are supported. Set Disqus api secret and Disqus shortname with your project values and comments will be displayed in each blog entry.

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.