Re: [Django] #35196: auto running of server is not working , when making changes in admin.py [Django==4.2.10]

2024-02-16 Thread Django
#35196: auto running of server is not working , when making changes in admin.py
[Django==4.2.10]
---+--
 Reporter:  Krishnkant Dhakad  |Owner:  nobody
 Type:  Bug|   Status:  closed
Component:  contrib.admin  |  Version:  4.2
 Severity:  Normal |   Resolution:  invalid
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Comment (by Krishnkant Dhakad):

 Hey, when I undo changes in other files, it reloads automatically, but not
 with admin.py. Hope this helps. Thank you.[] Replying to [comment:2 David
 Sanders]:
 > Hi & thanks for the report, though this is correct behaviour: the dev
 server will not reload if there's an exception.
-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018db2cf2214-f06c8eeb-aa88-4cc9-add3-45c69c1ffefb-00%40eu-central-1.amazonses.com.


Re: [Django] #35196: auto running of server is not working , when making changes in admin.py [Django==4.2.10]

2024-02-14 Thread Django
#35196: auto running of server is not working , when making changes in admin.py
[Django==4.2.10]
--+--
 Reporter:  krishnkantdhakad  |Owner:  nobody
 Type:  Bug   |   Status:  closed
Component:  contrib.admin |  Version:  4.2
 Severity:  Normal|   Resolution:  invalid
 Keywords:| Triage Stage:  Unreviewed
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+--
Changes (by David Sanders):

 * status:  new => closed
 * resolution:   => invalid

Comment:

 Hi & thanks for the report, though this is correct behaviour: the dev
 server will not reload if there's an exception.
-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dabb315d1-80092915-b21b-4307-8972-c63703e6f6cb-00%40eu-central-1.amazonses.com.


Re: [Django] #35196: auto running of server is not working , when making changes in admin.py [Django==4.2.10]

2024-02-14 Thread Django
#35196: auto running of server is not working , when making changes in admin.py
[Django==4.2.10]
--+--
 Reporter:  krishnkantdhakad  |Owner:  nobody
 Type:  Bug   |   Status:  new
Component:  contrib.admin |  Version:  4.2
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Unreviewed
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+--
Description changed by krishnkantdhakad:

Old description:

> When I'm making changes on the live development server, if I make any
> errors in view.py and fix them, the server auto-reloads. However, this
> isn't happening with admin.py. The error message is breaking the server's
> auto-running
> it happened on my both mac and linux machines
>
> {{{
>
> File "/Users/krishnkant/Merumesh/venv/lib/python3.10/site-
> packages/django/utils/module_loading.py", line 58, in
> autodiscover_modules
> import_module("%s.%s" % (app_config.name, module_to_search))
>   File
> "/opt/homebrew/Cellar/python@3.10/3.10.13_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1050, in _gcd_import
>   File "", line 1027, in _find_and_load
>   File "", line 1006, in
> _find_and_load_unlocked
>   File "", line 688, in _load_unlocked
>   File "", line 883, in exec_module
>   File "", line 241, in
> _call_with_frames_removed
>   File "/Users/krishnkant/Merumesh/Saas-backend-api/users/admin.py", line
> 7, in 
> admin.site.register(Organization)
>   File "/Users/krishnkant/Merumesh/venv/lib/python3.10/site-
> packages/django/contrib/admin/sites.py", line 132, in register
> raise AlreadyRegistered(msg)
> django.contrib.admin.sites.AlreadyRegistered: The model Organization is
> already registered in app 'users'.
> }}}

New description:

 When I'm making changes on the live development server, if I make any
 errors in view.py and fix them, the server auto-reloads. However, this
 isn't happening with admin.py. The error message is breaking the server's
 auto-running
 it happened on my both mac and linux machines

 {{{

 File "/Users/krishnkant/venv/lib/python3.10/site-
 packages/django/utils/module_loading.py", line 58, in autodiscover_modules
 import_module("%s.%s" % (app_config.name, module_to_search))
   File
 
"/opt/homebrew/Cellar/python@3.10/3.10.13_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py",
 line 126, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
   File "", line 1050, in _gcd_import
   File "", line 1027, in _find_and_load
   File "", line 1006, in
 _find_and_load_unlocked
   File "", line 688, in _load_unlocked
   File "", line 883, in exec_module
   File "", line 241, in
 _call_with_frames_removed
   File "/Users/krishnkant/Saas-backend-api/users/admin.py", line 7, in
 
 admin.site.register(Organization)
   File "/Users/krishnkant/venv/lib/python3.10/site-
 packages/django/contrib/admin/sites.py", line 132, in register
 raise AlreadyRegistered(msg)
 django.contrib.admin.sites.AlreadyRegistered: The model Organization is
 already registered in app 'users'.
 }}}

--
-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dabac4b7b-5e55a830-51a8-421e-8fb7-dee8561d268a-00%40eu-central-1.amazonses.com.


[Django] #35196: auto running of server is not working , when making changes in admin.py [Django==4.2.10]

2024-02-14 Thread Django
#35196: auto running of server is not working , when making changes in admin.py
[Django==4.2.10]
+
   Reporter:  krishnkantdhakad  |  Owner:  nobody
   Type:  Bug   | Status:  new
  Component:  contrib.admin |Version:  4.2
   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 |
+
 When I'm making changes on the live development server, if I make any
 errors in view.py and fix them, the server auto-reloads. However, this
 isn't happening with admin.py. The error message is breaking the server's
 auto-running
 it happened on my both mac and linux machines

 {{{

 File "/Users/krishnkant/Merumesh/venv/lib/python3.10/site-
 packages/django/utils/module_loading.py", line 58, in autodiscover_modules
 import_module("%s.%s" % (app_config.name, module_to_search))
   File
 
"/opt/homebrew/Cellar/python@3.10/3.10.13_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py",
 line 126, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
   File "", line 1050, in _gcd_import
   File "", line 1027, in _find_and_load
   File "", line 1006, in
 _find_and_load_unlocked
   File "", line 688, in _load_unlocked
   File "", line 883, in exec_module
   File "", line 241, in
 _call_with_frames_removed
   File "/Users/krishnkant/Merumesh/Saas-backend-api/users/admin.py", line
 7, in 
 admin.site.register(Organization)
   File "/Users/krishnkant/Merumesh/venv/lib/python3.10/site-
 packages/django/contrib/admin/sites.py", line 132, in register
 raise AlreadyRegistered(msg)
 django.contrib.admin.sites.AlreadyRegistered: The model Organization is
 already registered in app 'users'.
 }}}
-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dabaa5fb6-e9b17f5b-a57c-47d2-9565-4f6ee2375e12-00%40eu-central-1.amazonses.com.