Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection refused while the log says 200 #422

Open
amirreza8002 opened this issue Dec 8, 2024 · 0 comments
Open

connection refused while the log says 200 #422

amirreza8002 opened this issue Dec 8, 2024 · 0 comments

Comments

@amirreza8002
Copy link

using with tinymce on admin page

these deps:

requires-python = ">=3.12"
dependencies = [
    "django-filebrowser>=4.0.3",
    "django-tinymce>=4.1.0",
    "django>=5.1.4",
]

opening the browse file section shows an error page saying connection refused

but the log shows otherwise

[08/Dec/2024 19:38:34] "GET /tinymce/filebrowser/ HTTP/1.1" 200 509
[08/Dec/2024 19:38:43] "GET /admin/filebrowser/browse/?pop=5&type=image HTTP/1.1" 200 18175

it's added to installed apps

INSTALLED_APPS = [
    "grappelli",
    "filebrowser",
    'django.contrib.admin',

i've set up the urls:

urlpatterns = [
    path("admin/filebrowser/", site.urls),
    path("grappelli/", include("grappelli.urls")),
    path('admin/', admin.site.urls),
    path("tinymce/", include("tinymce.urls")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

and i've run collectstatic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant