Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 625 Vote(s) - 3.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Help pages" for my django app

#1
I am developing a django app that requires many help pages (i.e., several pages, many topics).

I am not quite sure what is the best way to do this.

I did some research and found some possible ways but they are not quite what I am looking for:

- `flatpages` => it is better if my help page authors can access a WYSIWYG interface rather than write html files
- `django-wiki` => not quite suitable because users don't need to contribute to help pages
- `django-CMS` => seems a bit of an overkill
- build my own => any examples?

What is the conventional way to add help pages to a django app?

Thanks.

Soo Ling
Reply

#2
It seems like you need to consider a couple of things:

1. How to access help

Maybe have a url like `url(r'^help/(?P<topic>[-\w]+)/$', HelpView.as_view()),` and have the topic be a slug.

2. How to organize help

Have a `TopicHelp` model that is related to the topic (whatever model that may be). I suspect it may be a `OneToMany` (or M2M) relationship, as a help page may be connected to many topics. You could use TinyMCE to give editors wysiwyg capabilities on HelpTopics.

If you're using the Admin, this would be very easy to implement and control.

That's how I'd look at it.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through