armstrong.templates.paywall 1.0.0

The Apache License 2.0


armstrong.templates.paywall 1.0.0

armstrong.templates.paywall provides a basic example of how to create a paywall inside Armstrong.

This template shows a working version of paywall code. The paywall is declared in urls/defaults.py.

Usage

You can use this to initial a demo Armstrong project with a paywall. The paywall is defined in urls/defaults.py. By default, the SubscriptionPaywall returns a 304 when access is denied, but it has been overriden to render the permission_denied.html template instead. The only view that needs to be protected is the ArticleDetailView.

The third article on the front page, 'Help Wanted' is protected. When not logged in, the permission_denied.html will be rendered, but when logged in as a staff member or as the user with the username user and password of user you will see the normal article.html template.

You can install this demo project template via the armstrong binary that ships with armstrong.cli like this:

 armstrong init --template=paywall

You must install this package in order to be able to use armstrong init. You can also use it via Django's django-admin.py as of Django 1.4. Create a clone of the armstrong.templates.paywall repository and run this command (adjusting the paths for your machine):

 django-admin.py startproject --template=/path/to/armstrong.templates.paywall/project_template

Installation & Configuration

You can install the latest release of armstrong.templates.paywall using pip:

pip install armstrong.templates.paywall

No configuration is required for this component.

Contributing

- Create something awesome -- make the code better, add some functionality, whatever (this is the hardest part).
- Fork it
- Create a topic branch to house your changes
- Get all of your commits in the new topic branch
- Submit a pull request

State of Project

Armstrong is an open-source news platform that is freely available to any organization. It is the result of a collaboration between the Texas Tribune and Bay Citizen, and a grant from the John S. and James L. Knight Foundation.

To follow development, be sure to join the Google Group.

armstrong.templates.paywall is part of the Armstrong project. You're probably looking for that.


Product's homepage

Requirements:

· Python

Download and use it now: armstrong.templates.paywall 1.0.0 free download

Add a review

Tell us your experience with armstrong.templates.paywall 1.0.0

Related programsOur Recommendations

Date::Calc 6.3

Date::Calc - Gregorian calendar date calculationsMOTTOKeep it small, fast and simplePREFACEThis

Download

epyparse 0.2.5

epyparse is a module for formatting and serialization of epydoc-parsed Python source

Download

scanlogd 2.2.7

scanlogd is an open source command-line software written in C, a system daemon that acts as a TCP

Download

django-mobile-views 0.1.1

django-mobile-views is a simple Django app to help detect mobile browsers and serve a different

Download

MinimizeToTray revived for SeaMonkey 1.1.2

MinimizeToTray revived is a Firefox, Thunderbird and SeaMonkey extension that lets users minimize

Download

pyrad 2.0

pyrad is a Python RADIUS client.pyrad contains several modules:pyrad.clientRADIUS client class.

Download

django-argparse-command 0.1.0

Take a look at examples to get started for now. argcmd.make_option is just a function that returns

Download

Unabomber 0.4

Unabomber is an open source graphical software written in Qt and designed to provide an

Download

TracRobotsTxt 2.0

TracRobotsTxt is a module that will serve a robots.txt file from Trac. Mostly useful to tracd

Download

DangoTalk 1.0

DangoTalk project is a OS X Dashboard Widget that allows you to use the Interconnect API to make

Download


Thumbnail of armstrong.templates.paywall 1.0.0

Rating:

5 stars

Price: FREE

Publisher/Developer: Bay Citizen & Texas Tribune

Release Date: Jun 21, 2012

View Program Details

Top Downloadslast week