I tried a

path('docs/', TemplateView.as_view(template_name="docs/html/index.html"))

then I can see the index.html but without css and no link works..

Greetings

bengoshi

On 5/1/20 4:25 PM, Motaz Hejaze wrote:
> Make a view that returns a template only , and give it a url
>
> On Fri, 1 May 2020, 10:09 am Kai Kobschätzki,
> <kai.kobschaet...@gmail.com <mailto:kai.kobschaet...@gmail.com>> wrote:
>
>     Hi Amit,
>
>     thanks for your response. But in this way, I can't use the sphinx
>     templates, the links are not correct and after every new make html
>     (or using sphinx-autobuild) I have to copy the changed or new
>     files. Are there no more likable way?
>
>     Greetings
>
>     bengoshi
>
>     On 5/1/20 1:53 AM, Amit Gupta wrote:
>>     Hii 
>>     If u want to just add your file in your django project u can
>>     probably copy and paste the file in your project file and after
>>     that you can successfully use your file in the project by just
>>     writing the name of  your file with correct extension
>>
>>     On Fri, 1 May, 2020, 1:29 AM Kai Kobschätzki,
>>     <kai.kobschaet...@gmail.com <mailto:kai.kobschaet...@gmail.com>>
>>     wrote:
>>
>>         Hi,
>>
>>         I installed sphinx and I get an documentation in
>>         project_main/docs/_build/html, starting with html/index.html.
>>         In so far
>>         - fine.
>>
>>         Now I want to present this documents inside my project so I
>>         can see in
>>         the nav-bar a "doc" where I can see them. But I have no idea
>>         how to
>>         start it. I tried it with a simple function in a view inside
>>         an app, but
>>         then I need a symbolic-link for getting the index.html, but
>>         then I can't
>>         get the rest of the documentation.
>>
>>         I tried to google it but I only find tutorials for using
>>         sphinx to make
>>         a documentation for the django-project but I didn't find a
>>         tip how I can
>>         realize it.
>>
>>         Could anyone give a kick-off for it or a link for a tutorial?
>>         Perhaps I
>>         have only the wrong keywords..
>>
>>         Greetings
>>
>>         bengoshi
>>
>>
>>
>>         -- 
>>         You received this message because you are subscribed to the
>>         Google Groups "Django users" group.
>>         To unsubscribe from this group and stop receiving emails from
>>         it, send an email to
>>         django-users+unsubscr...@googlegroups.com
>>         <mailto:django-users%2bunsubscr...@googlegroups.com>.
>>         To view this discussion on the web visit
>>         
>> https://groups.google.com/d/msgid/django-users/17689333-b06c-1dfc-1f18-341689914c42%40gmail.com.
>>
>>     -- 
>>     You received this message because you are subscribed to the
>>     Google Groups "Django users" group.
>>     To unsubscribe from this group and stop receiving emails from it,
>>     send an email to django-users+unsubscr...@googlegroups.com
>>     <mailto:django-users+unsubscr...@googlegroups.com>.
>>     To view this discussion on the web visit
>>     
>> https://groups.google.com/d/msgid/django-users/CAGCPjY-tNBKxj%3Dk-e9ew_6DtySK%2BDPE1QJyyMsXi%2Bjt4f-qA4g%40mail.gmail.com
>>     
>> <https://groups.google.com/d/msgid/django-users/CAGCPjY-tNBKxj%3Dk-e9ew_6DtySK%2BDPE1QJyyMsXi%2Bjt4f-qA4g%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>     -- 
>     You received this message because you are subscribed to the Google
>     Groups "Django users" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to django-users+unsubscr...@googlegroups.com
>     <mailto:django-users+unsubscr...@googlegroups.com>.
>     To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/django-users/6e32e790-46bd-bb1b-24a2-3e765f0a273a%40gmail.com
>     
> <https://groups.google.com/d/msgid/django-users/6e32e790-46bd-bb1b-24a2-3e765f0a273a%40gmail.com?utm_medium=email&utm_source=footer>.
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-c741j1swLvKEmjtrmJeC5RfDzxV5XEBvpvsZLZ8W9FPg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-c741j1swLvKEmjtrmJeC5RfDzxV5XEBvpvsZLZ8W9FPg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9627361b-cca5-9628-f11c-b51cbf813d7d%40gmail.com.

Reply via email to