Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-preview 0.1

    Download button

    No screenshots available
    Downloads: 88  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kovtun Volodymyr | More programs
    BSD License / FREE
    February 29th, 2012, 23:19 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-preview description

    Managing preview subscription in Django

    django-preview is a clone of django-beta module. It is a simple application to help you capture pre-beta interest with your sites.

    By default django-beta only captures a user's email address, however you can alternately set one of these two configuration options:

    django-preview add next additional functionality:
    1. After user sign up, it receive email with information about subscription
    2. User can unsubscribe following the url, recieved in email

    Configuration

    PREVIEW_CAPTURE_FIRST = True, will use a form and require the user to enter their first name and email address.(Default: False)

    PREVIEW_CAPTURE_BOTH = True, will use a form and require the user enter their first name, last name, and email address.(Default: False)

    PREVIEW_SEND_MAIL = False, will disable sending mail to user during subscribtion. (Default = True)

    If PREVIEW_SEND_MAIL = True (default) you must properly configure django to send mail:
        Mail is sent using the SMTP host and port specified in the EMAIL_HOST and EMAIL_PORT settings. The EMAIL_HOST_USER and EMAIL_HOST_PASSWORD settings, if set, are used to authenticate to the SMTP server, and the EMAIL_USE_TLS setting controls whether a secure connection is used.

        Fox example, to use gmail account set in setting.py settings like this:
        DEFAULT_FROM_EMAIL = 'username@gmail.com'
        EMAIL_USE_TLS = True
        EMAIL_HOST = 'smtp.gmail.com'
        EMAIL_HOST_USER = 'username@gmail.com'
        EMAIL_HOST_PASSWORD = 'your_gmail_password'
        EMAIL_PORT = 587


    Installation

    Add ``preview`` to your ``INSTALLED_APPS`` and run syncdb.

    Add the following to your urls.py:

        url(r'^preview/', include('preview.urls')),

    Using the example templates provided in the code, create your customized preview signup templates.

    Managers

    The ``BetaSignup`` model has the following manager method to help out:

    BetaSignup.objects.contacted()
    BetaSignup.objects.not_contacted()
    BetaSignup.objects.registered()
    BetaSignup.objects.not_registered()

    Side Effects

    django-preview listens for a signal on User creation and marks the corresponding BetaSignup entry as 'registered'.


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    django-beta clone | Django preview | preview subscription | Django | django-beta | preview

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM