Re: [Django] #28630: Cann't install django when there are chinese-characters in my home directory name on Windows10

2017-09-24 Thread Django
#28630: Cann't install django when there are chinese-characters in my home
directory name on Windows10
-+-
 Reporter:  zhaogp   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  master
  Internationalization   |
 Severity:  Normal   |   Resolution:
 Keywords:  install, unicode,| Triage Stage:
  encode, chinese characters |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by zhaogp):

 * Attachment "ticket_28630.txt" added.

 full traceback

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.d69a397da75c031ee7c854ddf7dbe258%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28630: Cann't install django when there are chinese-characters in my home directory name on Windows10

2017-09-24 Thread Django
#28630: Cann't install django when there are chinese-characters in my home
directory name on Windows10
-+-
 Reporter:  zhaogp   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  master
  Internationalization   |
 Severity:  Normal   |   Resolution:
 Keywords:  install, unicode,| Triage Stage:
  encode, chinese characters |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by zhaogp):

 Replying to [comment:1 Claude Paroz]:
 > Without the full traceback, it's impossible to say if Django is at
 fault. Could you give us that information?

 Hi Claude, here the full traceback is, thanks!

 C:\Users\赵国平\django>pip install -e .
 Obtaining file:///C:/Users/%E8%B5%B5%E5%9B%BD%E5%B9%B3/django
 Requirement already satisfied: pytz in c:\python34\lib\site-packages (from
 Django==2.1.dev20170924155150)
 Installing collected packages: Django
   Found existing installation: Django 2.1.dev20170924155150
 Uninstalling Django-2.1.dev20170924155150:
   Successfully uninstalled Django-2.1.dev20170924155150
   Running setup.py develop for Django
 Complete output from command c:\python34\python.exe -c "import
 setuptools, tokenize;__file__='C:\\Users\\赵国平
 \\django\\setup.py';f=getattr(tokenize, 'open',
 open)(__file__);code=f.read().replace
 ('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop
 --no-deps:
 running develop
 running egg_info
 writing dependency_links to Django.egg-info\dependency_links.txt
 writing requirements to Django.egg-info\requires.txt
 writing entry points to Django.egg-info\entry_points.txt
 writing Django.egg-info\PKG-INFO
 writing top-level names to Django.egg-info\top_level.txt
 reading manifest file 'Django.egg-info\SOURCES.txt'
 reading manifest template 'MANIFEST.in'
 warning: no previously-included files matching '__pycache__' found
 anywhere in distribution
 writing manifest file 'Django.egg-info\SOURCES.txt'
 running build_ext
 Creating c:\python34\lib\site-packages\Django.egg-link (link to .)
 Django 2.1.dev20170924155150 is already the active version in easy-
 install.pth
 Installing django-admin-script.py script to c:\python34\Scripts
 Installing django-admin.exe script to c:\python34\Scripts
 Traceback (most recent call last):
 File "", line 1, in 
 File "C:\Users\赵国平\django\setup.py", line 72, in 
   'Topic :: Software Development :: Libraries :: Python Modules',
 File "c:\python34\lib\distutils\core.py", line 148, in setup
   dist.run_commands()
 File "c:\python34\lib\distutils\dist.py", line 955, in run_commands
   self.run_command(cmd)
 File "c:\python34\lib\distutils\dist.py", line 974, in run_command
   cmd_obj.run()
 File "c:\python34\lib\site-packages\setuptools\command\develop.py",
 line 36, in run
   self.install_for_development()
 File "c:\python34\lib\site-packages\setuptools\command\develop.py",
 line 150, in install_for_development
   self.process_distribution(None, self.dist, not self.no_deps)
 File "c:\python34\lib\site-
 packages\setuptools\command\easy_install.py", line 727, in
 process_distribution
   self.install_egg_scripts(dist)
 File "c:\python34\lib\site-packages\setuptools\command\develop.py",
 line 186, in install_egg_scripts
   self.install_script(dist, script_name, script_text, script_path)
 File "c:\python34\lib\site-
 packages\setuptools\command\easy_install.py", line 806, in install_script
   self.write_script(script_name, _to_ascii(script_text), 'b')
 File "c:\python34\lib\site-
 packages\setuptools\command\easy_install.py", line 107, in _to_ascii
   return s.encode('ascii')
   UnicodeEncodeError: 'ascii' codec can't encode characters in position
 241-243: ordinal not in range(128)

   
 Rolling back uninstall of Django
 mmand "c:\python34\python.exe -c "import setuptools,
 tokenize;__file__='C:\\Users\\赵国平
 \\django\\setup.py';f=getattr(tokenize, 'open',
 open)(__file__);code=f.read().replace('\r\n', '\n');f.close()
 xec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error
 code 1 in C:\Users\赵国平\django\

-- 
Ticket URL: 
Django 
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 

Re: [Django] #28588: has_perm with superusers hides non-existent permissions

2017-09-24 Thread Django
#28588: has_perm with superusers hides non-existent permissions
---+-
 Reporter:  Paul Hallett   |Owner:  moshe nahmias
 Type:  Uncategorized  |   Status:  assigned
Component:  contrib.auth   |  Version:  1.11
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  1  |UI/UX:  0
---+-
Changes (by Shai Berger):

 * component:  Uncategorized => contrib.auth


Comment:

 I think we can do this in Debug mode (`settings.DEBUG = True`). Then, it
 will not affect sanely-deployed sites. It won't affect testing either --
 but I think it reasonable to expect that if a project has tests for its
 views, they will not all use an administrative user... It will mostly
 affect the developers who are testing by running `runserver` on their
 local host and surfing the site with their single account.

 I'm not sure doing this in Release mode is as valuable -- it would make no
 difference for non-superusers, and for superusers, it can only break
 something that currently work and should work (the superuser should have
 the permission with the typo...).

 I'm not sure if this should then count as a bug, a cleanup, or a new
 feature.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.1f10cc9ae52e3a628eac485cccfc4ef7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #15220: replace SelectFilter2.js with a jQuery plugin

2017-09-24 Thread Django
#15220: replace SelectFilter2.js with a jQuery plugin
-+-
 Reporter:  Nick Sandford|Owner:  dbunskoek
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  contrib.admin|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  1
-+-

Comment (by Collin Anderson):

 This is basically fixed now that we can use select2 for many-to-many
 fields. Once it's been around for a while we could try changing UserAdmin
 to use select2 by default instead of SelectFilter2.js.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.6afa41d0bf2a76b0e1716ab22a5d2ea7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28630: Cann't install django when there are chinese-characters in my home directory name on Windows10

2017-09-24 Thread Django
#28630: Cann't install django when there are chinese-characters in my home
directory name on Windows10
-+-
 Reporter:  zhaogp   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:   |  Version:  master
  Internationalization   |
 Severity:  Normal   |   Resolution:
 Keywords:  install, unicode,| Triage Stage:
  encode, chinese characters |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Claude Paroz):

 Without the full traceback, it's impossible to say if Django is at fault.
 Could you give us that information?

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.ae241f4b074f3776d1f543fe4b1ae6d3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #28630: Cann't install django when there are chinese-characters in my home directory name on Windows10

2017-09-24 Thread Django
#28630: Cann't install django when there are chinese-characters in my home
directory name on Windows10
-+-
   Reporter:  zhaogp |  Owner:  nobody
   Type:  Bug| Status:  new
  Component: |Version:  master
  Internationalization   |   Keywords:  install, unicode,
   Severity:  Normal |  encode, chinese characters
   Triage Stage: |  Has patch:  0
  Unreviewed |
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+-
 My home directory like this "C:\Users\张三" where "张三" is my chinese
 name.

 UnicodeEncodeError was raised when i install django using "pip install -e
 ."

 

 However I install it on linux where my home dir is "/home/zhangsan", it
 can be installed sucessfully.

 I know that the error above is caused by the chinese-characters in my home
 directory.

 Can this be fixed? Thanks.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.3f216d0f12ed8ef90a5d8e3e0f4a2b9f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28629: Q objects are no longer hashable in 2.0.

2017-09-24 Thread Django
#28629: Q objects are no longer hashable in 2.0.
-+-
 Reporter:  coady|Owner:  felixxm
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  2.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  Q hash   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by felixxm):

 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/9139 PR]

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.407b0bd35fffd86d9a392cc2a778234e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28629: Q objects are no longer hashable in 2.0.

2017-09-24 Thread Django
#28629: Q objects are no longer hashable in 2.0.
-+-
 Reporter:  coady|Owner:  felixxm
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  2.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  Q hash   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by felixxm):

 * owner:  nobody => felixxm
 * status:  new => assigned


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.be13c9f0ab389832b00bac4c20db67b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25006: Allow for custom Time shortcut in DateTimeShortCuts.js

2017-09-24 Thread Django
#25006: Allow for custom Time shortcut in DateTimeShortCuts.js
---+
 Reporter:  Ramez Issac|Owner:  nobody
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 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 Claude Paroz ):

 In [changeset:"9907f8a5fd9ad480faa666372dacef85081ae952" 9907f8a5]:
 {{{
 #!CommitTicketReference repository=""
 revision="9907f8a5fd9ad480faa666372dacef85081ae952"
 [2.0.x] Refs #25006 -- Marked again admin time picker shortcuts for
 translation

 Backport of fe000ab18d2571394868882865907e92aabbda0a from master.
 }}}

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.3281dd9841bf2ba8378f42f30ea84215%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25006: Allow for custom Time shortcut in DateTimeShortCuts.js

2017-09-24 Thread Django
#25006: Allow for custom Time shortcut in DateTimeShortCuts.js
---+
 Reporter:  Ramez Issac|Owner:  nobody
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 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 Claude Paroz ):

 In [changeset:"fe000ab18d2571394868882865907e92aabbda0a" fe000ab]:
 {{{
 #!CommitTicketReference repository=""
 revision="fe000ab18d2571394868882865907e92aabbda0a"
 Refs #25006 -- Marked again admin time picker shortcuts for translation
 }}}

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.461ec7e5d3f99836ac73ff1504f8ffab%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28629: Q objects are no longer hashable in 2.0.

2017-09-24 Thread Django
#28629: Q objects are no longer hashable in 2.0.
-+-
 Reporter:  coady|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  2.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  Q hash   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Claude Paroz):

 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.76d5402f7be63a7cd5cefaad455e7ec1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28248: Password resets are allowed for 1 day longer than PASSWORD_RESET_TIMEOUT_DAYS

2017-09-24 Thread Django
#28248: Password resets are allowed for 1 day longer than
PASSWORD_RESET_TIMEOUT_DAYS
-+
 Reporter:  Nick Zaccardi|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.auth |  Version:  2.0
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Claude Paroz):

 * version:  1.11 => 2.0
 * severity:  Normal => Release blocker


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.37a3c20b87eecfb68628bfb6d60d6624%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28586: Automatically prefetch related for "to one" fields as needed.

2017-09-24 Thread Django
#28586: Automatically prefetch related for "to one" fields as needed.
-+-
 Reporter:  Gordon Wrigley   |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  prefetch_related | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Jonas Haag):

 * cc: Jonas Haag (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.a09edf2ba2f0cc9f6d6f5ed443c5ed9e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.