• Members 13 posts
    Nov. 7, 2018, 9:14 a.m.

    @rafalp ,

    I have two question, please help.
     
    1. In the `misago/urls.py', i see

        url(r'^$', forum_index, name='index'),
    

    but this viewer function forum_index return nothing.
    When user visit 127.0.0.1:8000, where's entry point? It's misago/index.html instead view forum_index, right?
     
    2. In misago/users/serializers/user.py, there are some URLs, e.g.

    misago:api:user-details
    

    What's the URL for reversing misago:api:user-details? I did not find the URL parttern defined for this.

    Thanks.

  • edit

    Thread title has been changed from Web index entry point and Reverse `misago:api:user-details`.

  • Nov. 8, 2018, 5:44 p.m.

    Hey,

    forum_index view is a do-nothing view that only exists to allow us to reverse misago:index to /.

    Because Misago allows you to configure what should be used for index view, you will need to check either misago.threads or misago.categories for forum index view.

    You will not find a pattern for misago:api:user-details, because this pattern is generated dynamically when Misago starts. This is Rest Framework thing. Instead you should look for "misago.api.users.UserViewSet" class. Here is documentation that should help you understand what is really happening in Rest Framework.

  • Members 13 posts
    Nov. 10, 2018, 4:59 p.m.

    Hi @rafalp ,

    I mean that when user visit the root URL - 127.0.0.1:8000, the view function - forum_index return nothing, but we can see somethings, please review attached image.

    How to do this?

    Thanks.

    index

    index.png

    PNG, 522.4 KB, uploaded by raeuz on Nov. 10, 2018.

  • Nov. 11, 2018, 10:36 a.m.

    I have already answered this in my previous post: check either misago.threads or misago.categories for forum index view.

    To explain this, Misago has two views for / path at any time:

    1. misago.threads.views.list.ForumThreadsList
    2. misago.core.forum_index

    If you changed MISAGO_THREADS_ON_INDEX setting to False:

    1. misago.categories.views.categorieslist.categories
    2. misago.core.forum_index