#28367: howto handle different apps with same custom management command names?
-----------------------------------------+------------------------
               Reporter:  stephanm       |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  1.11
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Hi,

 I have one question where I didn't find the answer in the docs.

 If I  have two django apps:
  - app1
  - app2

 and both apps have lets say a custom management command called:
  - importdata

 Actually I do the following:

 In every app I prepend the custom command name with the app name,
 so in my case the custom commands would be named:

  - app1_importdata (for app1)
  - app2_importdata (for app2)

 But what is the official "correct" way?

 Does there exist some sort of namespace like:
  - app1.importdata
  - app2.importdata

 or it is planned (in Django 2.x)?

 If I have two external apps not programmed by myself
 and both have one same-named management command...
 how do I solve the problem?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28367>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.3da0737c2c1e01c41d2a6bb8033b5a01%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to