This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

README

To make sure no bad hacker adds a comment with no authentication, you have to install a small app called django-contrib-comments-auth:

pip install django-contrib-comments-auth

Add it to the INSTALLED_APPS:

    INSTALLED_APPS = (
# ...
'django.contrib.comments',
'commentsauth',
    )

Add these lines to your root urls.py:

    urlpatterns = patterns('',
# ...
(r'^comments/', include('commentsauth.urls'),
(r'^comments/', include('django.contrib.comments.urls'))
    )

It must be before the django.contrib.comments.urls-directive and have the same prefix.

The template for the comment-form could look like:

    {% load comments %}
    {% if request.user.is_authenticated %}
    <h2>Leave a comment</h2>
    {% get_comment_form for object as form %}
<form action="{% comment_form_target %}" method="POST">
    {{ form.comment }}
    {{ form.honeypot }}
    {{ form.content_type }}
    {{ form.object_pk }}
    {{ form.timestamp }}
    {{ form.security_hash }}
    <input type="submit" value="Add comment" id="id_submit" />
    </form>
    {% else %}
    <h1>Display login form or link to login page!</h1>
    {% endif %}

Please make sure to have these two lines in your MIDDLEWARE_CLASSES:

    MIDDLEWARE_CLASSES = (
    # ...
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.csrf.CsrfResponseMiddleware',
    )

News

0.1.1

Release date: 12-Aug-2010

  • Added news to the NEWS.txt.

0.1

Release date: 12-Aug-2010

  • First untested version published.
Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-contrib-comments-auth-0.1.1.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Aug 12, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting