Error when trying to create or edit any model in django admin
See original GitHub issueWhen trying to create or edit any model in Django admin the error occurs (browser shows it as “page not available”). It doesn’t appear in Django log - it’s like connection drop or something. The login procedure and deleting model item completes successfully. I notice the difference between these POST requests - login method content type is application/x-www-form-urlencoded
, while add model item method is multipart/form-data
. The problem disappears when channels app is not present in installed apps in settings.py
.
The app is running from command line manage.py runserver
with debug option on.
Python 3.7.0, django-2.0.7, channels-2.1.2, daphne-2.2.0, asgiref-2.3.2, twisted-18.4.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Django admin 404 error when creating or editing a model ...
I just tried this but no exception occurred in save_model . I did log the exception in my handler404 view and it's saying...
Read more >django-admin and manage.py
django -admin is Django's command-line utility for administrative tasks. This document outlines all it can do. In addition, manage.py is automatically created in ......
Read more >Creating forms from models - Django documentation
If you're building a database-driven app, chances are you'll have forms that map closely to Django models. For instance, you might have a...
Read more >Writing your first Django app, part 1 - Django documentation
If Django is installed, you should see the version of your installation. If it isn't, you'll get an error telling “No module named...
Read more >"Please correct the error below." when saving edit model form ...
when saving edit model form with inline formset and space at the end of primary ... 3) Open Django admin panel and try...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @eamigo86. Can you open a fresh issue? Perhaps create a minimal project with steps to reproduce. Happy to have a look.
Hi @andrewgodwin, sorry for comment in this close issue but I am experiencing this same behavior with a new project that I am doing to learn Channels.
Description: When I try to log in to the admin, it does not throw any error or output in the console, but it keeps “loading” the window indefinitely. This behavior only happens in Chrome (76.0.3809.132), I have checked in Safari and it works perfectly. But when I stop the login window that freezes while loading and re-login, then it works correctly and in subsequent attempts.
Python 3.7.4, django-2.2.4, channels-2.2.0, daphne-2.3.0, asgiref-3.2.1, twisted-19.7.0