-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Deploy doccano in a subpath #1878
Comments
Hello, I was trying to achieve the same using Docker compose with my nginx webserver and got it work by doing following: Doccano
and set
where Django's admin area:
|
I run under python env and I have to additionally add the prefix to all urlpatterns in # Add 'prefix' to all urlpatterns
if settings.URL_PREFIX:
urlpatterns = [path(f'{settings.URL_PREFIX}/', include(urlpatterns))] and in URL_PREFIX = "mysubpath" Otherwise, I cannot log in. |
Having this issue solved would be immensely useful for me.
I hoped to apply tutorial on how to mount flask to subpath using gunicorn also for doccano but I am confused how doccano uses wsgi and how can I influence the django URL settings in doccano? Can wsgi and gunicorn be used to easily run doccano with subpath? If yes, how? |
I know this is an old issue. But after some attempts I still failed to deploy doccano under some subpath.
And I know there is another label tool named Label Studio, it supports subpath by command like this:
So I just read its code and try to change the
FORCE_SCRIPT_NAME
in doccano but seems not working.https://github.com/heartexlabs/label-studio/blob/70f12eb96860709bb53c10bf1aa9e1257adef166/label_studio/core/settings/base.py#L45
Here is some attemp I did:
aisensiy@66b87e4
I really want to make doccano support the subpath. Hope some one give some tips about this.
My Environment
pip install doccano
Related issues:
The text was updated successfully, but these errors were encountered: