Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Django Plugins

    djangorecipe 1.5

    Download button

    No screenshots available
    Downloads: 803  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jeroen Vloothuis | More programs
    BSD License / FREE
    September 10th, 2012, 14:27 GMT [view history]
    ROOT / Internet / Django Plugins

     Read user reviews (0)  Refer to a friend  Subscribe

    djangorecipe description

    Django Buildout Recipe

    djangorecipe is a buildout recipe that can be used to create a setup for Django. It will automatically download Django and install it in the buildout's sandbox. You can use either a release version of Django or a subversion checkout (by using trunk instead of a version number.

    You can see an example of how to use the recipe below:

    [buildout]
    parts = satchmo django
    eggs = ipython

    [satchmo]
    recipe = gocept.download
    url = http://www.satchmoproject.com/snapshots/satchmo-0.6.tar.gz
    md5sum = 659a4845c1c731be5cfe29bfcc5d14b1

    [django]
    recipe = djangorecipe
    version = trunk
    settings = development
    eggs = ${buildout:eggs}
    extra-paths =
     ${satchmo:location}
    project = dummyshop


    Supported options

    The recipe supports the following options.

    project
     This option sets the name for your project. The recipe will create a basic structure if the project is not already there.

    projectegg
     Use this instead of the project option when you want to use an egg as the project. This disables the generation of the project structure.

    version
     The version argument can accept a few different types of arguments. You can specify trunk. In this case it will do a checkout of the Django trunk. Another option is to specify a release number like 0.96.2. This will download the release tarball. Finally you can specify a full svn url (including the revision number). An example of this would be http://code.djangoproject.com/svn/django/branches/newforms-admin@7833.

    settings
     You can set the name of the settings file which is to be used with this option. This is useful if you want to have a different production setup from your development setup. It defaults to development.

    download-cache
     Set this to a folder somewhere on you system to speed up installation. The recipe will use this folder as a cache for a downloaded version of Django.

    extra-paths
     All paths specified here will be used to extend the default Python path for the bin/* scripts.

    control-script
     The name of the script created in the bin folder. This script is the equivalent of the manage.py Django normally creates. By default it uses the name of the section (the part between the [ ]).

    wsgi
     An extra script is generated in the bin folder when this is set to true. This can be used with mod_wsgi to deploy the project. The name of the script is control-script.wsgi.

    fcgi
     Like wsgi this creates an extra script within the bin folder. This script can be used with an FCGI deployment.

    test
     If you want a script in the bin folder to run all the tests for a specific set of apps this is the option you would use. Set this to the list of app labels which you want to be tested.

    testrunner
     This is the name of the testrunner which will be created. It defaults to test.

    All following options only have effect when the project specified by the project option has not been created already.

    urlconf
     You can set this to a specific url conf. It will use project.urls by default.

    secret
     The secret to use for the settings.py, it generates a random string by default.

    Another example

    The next example shows you how to use some more of the options:

    [buildout]
    parts = django extras
    eggs =
     hashlib

    [extras]
    recipe = iw.recipe.subversion
    urls =
     http://django-command-extensions.googlecode.com/svn/trunk/ django-command-extensions
     http://django-mptt.googlecode.com/svn/trunk/ django-mptt

    [django]
    recipe = djangorecipe
    version = trunk
    settings = development
    project = exampleproject
    wsgi = true
    eggs =
     ${buildout:eggs}
    test =
     someapp
     anotherapp


    Example configuration for mod_wsgi

    If you want to deploy a project using mod_wsgi you could use this example as a starting point:

    < Directory /path/to/buildout >
     Order deny,allow
     Allow from all
    < /Directory >
    < VirtualHost 1.2.3.4:80 >
     ServerName my.rocking.server
     CustomLog /var/log/apache2/my.rocking.server/access.log combined
     ErrorLog /var/log/apache2/my.rocking.server/error.log
     WSGIScriptAlias / /path/to/buildout/bin/django.wsgi
    < /VirtualHost >



    Product's homepage

    Requirements:

    · Django
    · Python

    What's New in This Release: [ read full changelog ]

    · Removed support for a different python version than the one you use to run buildout with. Previously, you could run your buildout with 2.6 but get Django to use 2.7 instead. zc.buildout 2.0 doesn't allow it anymore, so we removed it too.

      


    TAGS:

    buildout recipe | Django setup | Django plugin | Django | buildout | recipe

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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