Changes between Version 1 and Version 2 of Ticket #30003


Ignore:
Timestamp:
12/01/2018 01:38:41 PM (3 months ago)
Author:
James Pic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30003 – Description

    v1 v2  
    55 block.
    66
    7 While this might work when declaring manage.py as script in setup.py, a popular convention is to use the entry_point feature of setup.py.
     7While this might work when declaring manage.py as script in setup.py, a popular convention is to use the console_scripts entry_point in setup.py to define commands.
    88
    9 To add support for entry_point in manage.py-tpl we only need to move the code from the if block into a new function ie. main() and call in it in the if-block.
     9For manage.py-tpl to support console_scripts entry_point we only need to move the code from the if block into a new function ie. main(), then call main() it in the if-block.
    1010
    11 Then, manage.py-tlp will also work as entry_point with yourproject.manage:main and using manage.py as script will also still work.
     11Then, manage.py-tlp will also work as console_scripts entry_point with yourproject.manage:main, and using manage.py as script will also still work.
    1212
    13 This removes a manual effort every time a project is used by a follower of the entry_point convention, without causing any issue for regular users.
     13This removes a manual effort every time a project defines a console_scripts entry_point for the management CLI, without having to set DJANGO_SETTINGS_MODULE.
Back to Top