On Wed, Sep 30, 2015 at 4:20 AM, David Smith <[email protected]> wrote:
> Sound familiar? This is basically the admin view of the database, with > filter filelds, I found the "list_display" "list_filter" and > "search_fields" for use with ModelAdmin very close to exactly what I need. > However, I can't for the life of me, figure out how to implement this in a > user view. > Ok. I typed "django filter" into Google and the third result (the first two are the django docs I mentioned) was this, which gives you admin style filtering in a normal view: https://github.com/alex/django-filter On Thu, Oct 1, 2015 at 10:23 AM, David Smith <[email protected]> wrote: > Thanks, > That's not a helpful response-- as I've been reading the "django > documentation" for over a week already, and was never able to find *any* > full site examples that were helpful for what I want, only snippets all > over the place. > You're right, that's not the response you wanted - I personally don't have the free time to guide you through what you want step by step - presumably given the lack of responses here, no one else does either. The best I could do is point you in the right direction, better than nothing right? > > I've moved on to drupal - *exit group* - Django by itself, and > django/mezzanine, simply aren't mature enough CMS products, they require > too much customization from ground zero to make work at all. > This isn't true at all, hundreds of sites have been built on Mezzanine and the core product hasn't changed much over the last few years - in my mind that's the maturity of it. But if you still feel that way, good luck with Drupal, the community is probably much larger. > > > > On Wed, Sep 30, 2015 at 2:21 PM, Stephen McDonald <[email protected]> wrote: > >> I'd suggest going through the Django documentation from top to bottom if >> you haven't already. Mezzanine is just a superset of Django and everything >> you've asked about is broadly applicable to Django in general. >> >> On Thu, Oct 1, 2015 at 3:41 AM, David Smith <[email protected]> wrote: >> >>> Well by the lack of responses I guess I need to reduce/clarify my >>> question; >>> >>> If you can give me a high level: This is your best direction; I can take >>> it from there and get the grunt work done and come back with more specific >>> questions (ala code snippets) -- I just want to make sure I've not >>> completely thrown myself off track with the direction I'm taking. >>> >>> >>> On Tuesday, September 29, 2015 at 12:42:22 PM UTC-7, David Smith wrote: >>>> >>>> Hi, >>>> >>>> I'm looking to generate a web site that will help organize some >>>> database information and allow the users to run guided results reports. >>>> >>>> I have an existing database that is populated with data automatically >>>> from other sources. >>>> >>>> I've figured out the "model" portion of Django, I even got as far as >>>> creating a view with a form for POSTing data, but I can't really seem to >>>> pull together, despite a week or so of googling information, the >>>> information I need to create this simple page. (I got stuck at "not a >>>> valid choice" when sending post data, despite the drop-down lists showing >>>> valuable data) >>>> >>>> I've since discovered Mezzanine and I like the idea of being able to >>>> expand the site quickly with the tools it provides. >>>> >>>> That's the "background", here's what I'd like to accomplish; >>>> >>>> Create a page that contains several search fields from the database >>>> model; At least three; these should be populated by distinct() values in >>>> the database. >>>> On initial load, the page should load a table style view of database >>>> information, unfiltered. >>>> The user would then be able to use the prepopulated drop-downs to >>>> select "filters" or also use a generic "search" box to filter out data. >>>> >>>> Sound familiar? This is basically the admin view of the database, with >>>> filter filelds, I found the "list_display" "list_filter" and >>>> "search_fields" for use with ModelAdmin very close to exactly what I need. >>>> However, I can't for the life of me, figure out how to implement this in a >>>> user view. >>>> >>>> I also have several python scripts that pull data from the database and >>>> display counts of various bits of information in a tabular format, I'd like >>>> to either import that script or just use it as-is to create the same >>>> information display through mezzanine/django. >>>> >>>> Thanks for your time, >>>> David >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Stephen McDonald >> http://jupo.org >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
