#19333: Collect static copies a .py file
-------------------------------+------------------------------------
     Reporter:  camilonova     |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  1.4
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by aaugustin):

 After your changes the script works only if you pass file names in
 argument or if you run it from `django/contrib/admin/static/admin/js`.

 The `here` variable should be called `admin_js_dir`, because that's what
 it really is :)

 I suggest renaming that variable and pointing it to
 `os.path.join(os.path.dirname(os.path.dirname(__file__)), 'static',
 'admin', 'js')` (to be tested, I just wrote it in this comment as an
 example).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19333#comment:8>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to