Not able to make the Navigation Sidebar Quick Filter to function

2022-01-07 Thread Chew Kok Hoor
Hi all, I recently upgraded my project to django 4 and saw the quick filter, a it seems not doing anything no matter what I keyed in, I create da new test app with clean virtual environment to test. Similarly, no matter what I type in the Navigation Sidebar Quick filter, no filtering

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Andréas Kühne
If you use a windows.location solution, you will get the native solution for downloading files in the browser - which usually is to download the file to the downloads location (if you use attachment=True). I would prefer that than to having to create the file and link to it, or to save it via JS (w

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Yavin Aalto Arba
will work with window.location= On Saturday, November 17, 2018 at 5:55:18 PM UTC+2, Joel wrote: > > Yes. But it's not usable when we're using JavaScript to fetch the url. > > On Sat, 17 Nov, 2018, 9:20 PM Jason > wrote: > >> oh, I didn't know that was a thing. TIL. >> >> >> https://docs.djan

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Joel
Yes. But it's not usable when we're using JavaScript to fetch the url. On Sat, 17 Nov, 2018, 9:20 PM Jason oh, I didn't know that was a thing. TIL. > > > https://docs.djangoproject.com/en/2.1/ref/request-response/#django.http.FileResponse > > note the bit about as_attachment setting content disp

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Jason
oh, I didn't know that was a thing. TIL. https://docs.djangoproject.com/en/2.1/ref/request-response/#django.http.FileResponse note the bit about as_attachment setting content disposition -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Joel Mathew
Where? Sincerely yours, Joel G Mathew On Sat, 17 Nov 2018 at 20:50, Yavin Aalto Arba wrote: > did you try to set "as_attachment=True" ? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receivin

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Yavin Aalto Arba
did you try to set "as_attachment=True" ? -- 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 post to this group, send

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Jason
not a bad solution, but you could most likely make the link generator/decoder work in your view handler rather than needing to hit the database. That would prevent the necessity of some method to clean up the db of old temp links that are no longer valid. On Saturday, November 17, 2018 at 9:27

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Joel Mathew
Hi Jason, Thank you for responding. I solved this by implementing a temporary link system in my model. This would generate a unique key which points to a foreign key which references the data I want. When the url with this foreign key is clicked, the pdf is generated on the fly and presented as a F

Re: How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-17 Thread Jason
check out https://stackoverflow.com/questions/4545311/download-a-file-by-jquery-ajax -- 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...@go

How to download a file when a django function is called by javascript instead of navigation to the url?

2018-11-16 Thread Joel Mathew
I have a page where several buttons process different functions like sending a user sms (via API), sends an file by email, or downloads a PDF file. Button actions dont use forms, but uses ajax requests via javascript. I used to create a pdf file using javascript (jspdf), but have written code whic

i need to highlight the current page in navbar.!!its work!! but i extends new html page the navigation bar can't show ????

2018-02-13 Thread varun kishore Ravi
DASHBOARD EVENT LOBBIES MARKET ONLINE PLAYERS SUBSCRIBE $(function () { setNavigation(); }); function setNavigation() { var path = window.location.pathname; path = path.replace(/\/$/, ""); path = decodeURIComponent(path);

Django Multiple ForeignKey Navigation

2014-12-18 Thread Rodney Lewis
Hey All; Sorry my question yesterday was poorly assembled. I'm trying again. Please take a look: https://stackoverflow.com/questions/27543962/django-multiple-foreignkey-navigation Thank you so much for any help! -- Rodney Lewis http://www.youtube.com/pyrodney -- You received this me

url navigation error

2013-08-24 Thread KTI
i have deployed my app on a VPS and can move to various pages of my app , e.g. myIP/django-bookmarks/login or myIP/django-bookmarks/ register.however, when i click on the tabs in the app itself (e.g. register tab), it takes me to myIP/register (without the 'django-bookmarks') and then says "

url navigation error

2013-08-24 Thread KTI
i have deployed my app on a VPS and can move to various pages of my app , e.g. myIP/django-bookmarks/login or myIP/django-bookmarks/register.however, when i click on the tabs in the app itself (e.g. register tab), it takes me to myIP/register (without the 'django-bookmarks') and then says "

Re: How to store position of current/active navigation entry

2013-08-10 Thread DJ-Tom
I now came up with this solution: path = req.get_full_path() if path.startswith(entry['href']): entry['active'] = True thanks for helping :-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: How to store position of current/active navigation entry

2013-08-05 Thread Bill Freeman
t; - /three/show > > Currently I have somthing like this in my main.html page template: > > {% if navi %} >> {% for entry in navi %} >> {{ >> entry.name}} >> {% endfor %} >> {% endif %} >>

Re: How to store position of current/active navigation entry

2013-08-04 Thread Goran
There is no usual way to do this because you can have anything behind menu item. So here is what I do in the same situations. Let say that we have some categories listed in your navi. Every category must have unique ID so in navi view pass some variable with that ID for example "foo = entry.pk"

Re: How to store position of current/active navigation entry

2013-08-04 Thread DJ-Tom
page template: {% if navi %} > {% for entry in navi %} > {{ entry.name > }} > {% endfor %} > {% endif %} > With the following view function: def show_mainPage(request): > > navigation = [ {'href':&#

Re: How to store position of current/active navigation entry

2013-08-01 Thread Bill Freeman
One traditional place to store navigation state is in the URL. If you are reloading the page with a new GET (such as because a link was clicked), you have to indicate what page to load in the URL, whether in the path or in the parameters. The view has access to the URL, and uses it to know where

How to store position of current/active navigation entry

2013-08-01 Thread DJ-Tom
Hi, I'm currently creating a web app with django that will have a side bar menu with several sub-sections. I'm wondering if there is a "standard" way to store the "current" or "active" menu entry so I can highlite it in the menu area each time a request takes place. Is it possible to attach a

Re: Navigation Bar

2013-03-27 Thread Andre Terra
ocumentation on writing custom tags here: https://docs.djangoproject.com/en/dev/howto/custom-template-tags/ Cheers, AT On Wed, Mar 27, 2013 at 11:16 AM, Venkatraman S wrote: > > On Wed, Mar 27, 2013 at 5:55 PM, Simon Shaw wrote: > >> I am Django/Web newbie developer and I am look

Re: Navigation Bar

2013-03-27 Thread Venkatraman S
On Wed, Mar 27, 2013 at 5:55 PM, Simon Shaw wrote: > I am Django/Web newbie developer and I am looking for the correct way to > add a navigation bar (hopefully the correct term) to my ticketing app such > that the options "Admin", "Open New Ticket", "View N

Re: Navigation Bar

2013-03-27 Thread Shawn Milochik
If you put these links in your base template it will appear on every page. If you wrap some of those links with template if/endif syntax and check request.user to see if they have permission, you can hide individual links, change their CSS classes, or replace them with a something else. -- You r

Navigation Bar

2013-03-27 Thread Simon Shaw
I am Django/Web newbie developer and I am looking for the correct way to add a navigation bar (hopefully the correct term) to my ticketing app such that the options "Admin", "Open New Ticket", "View New Ticket", "Dashboard", "Logout" will alway

Re: Highlighting Active Navigation Link - correct approach?

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
You raise a good point about sub menus. Possibly something like this: def resolve_urlname(request): """Allows us to see what the matched urlname for this request is within the template""" from django.core.urlresolvers import resolve try: res = resolve(request.path)

Re: Highlighting Active Navigation Link - correct approach?

2012-07-06 Thread Melvyn Sopacua
On 6-7-2012 16:01, Cal Leeming [Simplicity Media Ltd] wrote: > I've actually just done a ticket about this.. > > https://code.djangoproject.com/ticket/18584 > > Personally, I think the approach mentioned in the ticket is a far saner way > of doing things. Just wondering about this: if res:

Re: Highlighting Active Navigation Link - correct approach?

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
57:52 AM UTC+5:30, Victor Hooi wrote: >> >> hi, >> >> I have a project where I'm using Bootstrap (www.github.com/twitter/** >> bootstrap <http://www.github.com/twitter/bootstrap>) with Django. >> >> I need to add a CSS class ("active")

Re: Highlighting Active Navigation Link - correct approach?

2012-07-06 Thread Dhiraj Thakur
On Monday, January 9, 2012 11:57:52 AM UTC+5:30, Victor Hooi wrote: > > hi, > > I have a project where I'm using Bootstrap ( > www.github.com/twitter/bootstrap) with Django. > > I need to add a CSS class ("active") to highlight the active navigation >

Re: Highlighting Active Navigation Link - correct approach?

2012-01-10 Thread Matt Schinckel
I have a reusable application I use for generating site-wide menu items. It does this (as well as dynamically showing/hiding menu items based on if the logged in user can access the view). https://bitbucket.org/schinckel/django-menus Actually, I think that was the one I put on pypi today, t

Re: Highlighting Active Navigation Link - correct approach?

2012-01-10 Thread Ivo Brodien
: > hi, > > I have a project where I'm using Bootstrap (www.github.com/twitter/bootstrap) > with Django. > > I need to add a CSS class ("active") to highlight the active navigation link. > > Anyhow, I did some Googling: > > http://w

Highlighting Active Navigation Link - correct approach?

2012-01-08 Thread Victor Hooi
hi, I have a project where I'm using Bootstrap (www.github.com/twitter/bootstrap) with Django. I need to add a CSS class ("active") to highlight the active navigation link. Anyhow, I did some Googling: http://www.turnkeylinux.org/blog/django-navbar http://ilostmynotes.blogs

Re: View decorator for common navigation elements?

2011-10-03 Thread Thomas Orozco
Maybe you can use template inheritance and have the base template access the data through, alternatively, template filters or instance methods? To make those work, you can take advantage of the existing template processors (notably the auth one). If you want to not have the topnav on a particular

Re: View decorator for common navigation elements?

2011-10-02 Thread Victor Hooi
heya, This SO post seems to suggest that data and template tags shouldn't mix... http://stackoverflow.com/questions/5046046/where-put-database-interaction-in-django-templatetags Not sure how I feel about that myself - I see the philosophical argument behind it, but I don't see another more effi

Re: View decorator for common navigation elements?

2011-10-01 Thread colinta
This post is particularly well timed, since I have the exact same question. I'm excited to say the company has, after many years, been convinced to stop working on our internal PHP framework and we chose django as its replacement (in sad news, I was the main dev on that framework, and poured my he

Re: View decorator for common navigation elements?

2011-09-30 Thread Victor Hooi
heya, I do like the idea of just including a custom template tag =). Hmm, can custom template tags interact with models or query the database like that? Firstly, Is it possible, and secondly, is it considered good practice? Cheers, Victor -- You received this message because you are subscri

Re: View decorator for common navigation elements?

2011-09-30 Thread Luis Morales
u you modify you navigation data model you can you invalidate the cache and recreate it. it will also be a lot simplier to reuse in other projects as you wont have to inlcude a decorator on each view. On Sep 30, 2:59 am, Victor Hooi wrote: > Hi, > > We have a common navigation bar on nearly ev

Re: View decorator for common navigation elements?

2011-09-29 Thread Alex Chan
u, Sep 29, 2011 at 5:59 PM, Victor Hooi wrote: > Hi, > > We have a common navigation bar on nearly every page (view) that contains a > dropdown - this dropdown is populated with items from a database table. This > dropdown also has AJAX behaviour attached to it. > > I'm th

View decorator for common navigation elements?

2011-09-29 Thread Victor Hooi
Hi, We have a common navigation bar on nearly every page (view) that contains a dropdown - this dropdown is populated with items from a database table. This dropdown also has AJAX behaviour attached to it. I'm thinking I can create a decorator that will retrieve the list from the dat

Re: Django - modifying navigation design

2011-08-05 Thread bax...@gretschpages.com
I'm betting it's just sitting in the template as plain HTML. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr

Re: Django - modifying navigation design

2011-08-05 Thread bruno desthuilliers
On Aug 5, 5:49 am, Daniel wrote: > Hi, > > I'm working on a Django website made by someone else and I'm trying to > change how the navigation on the left looks. (snip) Programming by accident won't get you very far. You should either contact the original developper or

Django - modifying navigation design

2011-08-05 Thread Daniel
Hi, I'm working on a Django website made by someone else and I'm trying to change how the navigation on the left looks. Currently it shows links to pages on the current level and any child pages, but we're looking to have it more traditional where it shows parent and child page

Re: Navigation menu

2011-04-12 Thread Jason Culverhouse
There is a snippet http://djangosnippets.org/snippets/1729/ "Template tag to handle navigation item selection" which is quite useful for creating navigation/menu structure Jason On Apr 12, 2011, at 11:43 AM, javatina wrote: > You can put your current menu option in context an

Re: Navigation menu

2011-04-12 Thread javatina
You can put your current menu option in context and then, while rendering pages, check for it and use a different style for the active menu option. On Apr 12, 5:33 am, Daniel Gerzo wrote: > Hello all, > > I was wondering how do you generate the navigation menu in your web > s

Re: Navigation menu

2011-04-12 Thread Andy Mikhailenko
be natural. [1] http://packages.python.org/django-navigation/ Regards, Andy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Re: Navigation menu

2011-04-12 Thread Derek
On Apr 12, 11:33 am, Daniel Gerzo wrote: > Hello all, > > I was wondering how do you generate the navigation menu in your web > sites, with a possibility to mark up the "active" page? > > My searching revealed some solutions, most of them based on implementing >

Re: Navigation menu

2011-04-12 Thread emonk
jquery? 2011/4/12 Daniel Gerzo > Hello all, > > I was wondering how do you generate the navigation menu in your web sites, > with a possibility to mark up the "active" page? > > My searching revealed some solutions, most of them based on implementing a > custom te

Navigation menu

2011-04-12 Thread Daniel Gerzo
Hello all, I was wondering how do you generate the navigation menu in your web sites, with a possibility to mark up the "active" page? My searching revealed some solutions, most of them based on implementing a custom template tag and then parsing the request.path. I was wonderin

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread bruno desthuilliers
On 26 août, 19:33, Steve Holden wrote: > As long as you acknowledge it as an ugly hack I suspect your reputation > will survive ... > +1 !-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@g

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread bruno desthuilliers
tag(pathfinder) You cheated !-) You should have wrote a full blown tag with the parser and node !-) > so now in my navigation bar (actually it's just a table ), I can > employ the following syntax: > >  add observation {% url %} - or the python function it's based on, namely

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread bruno desthuilliers
On 26 août, 18:55, Aspontus wrote: > Hi. > If I understand your problem correctly, you are looking for a way to > capture different optional parameters from the url, to use them in > further url construction. > Why not use /country/de/district/hf/observation/add/ with entries Why add unneeded

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread Steve Holden
On 8/26/2010 11:30 AM, Uwe Schuerkamp wrote: [...] > It's probably not a good idea to have google groups archive this ugly > hack with my name on it, but right now it seems to do the job nicely. > Storing the data in the request object also seems like a great idea, > I'll certainly look into that!

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread Aspontus
ountry }}/{% if district %}district/ {{ district }}/{% endif %}{% endif %}observers/ranking Hope it helps. Cheers. On 25 Sie, 23:40, Uwe Schuerkamp wrote: > Hi folks, > > this posting sort of refers to my previous problem from last week as > I'm still working on the birdwatcher

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread Uwe Schuerkamp
return result.group()[:-1] return "" register.simple_tag(pathfinder) ### snip snip so now in my navigation bar (actually it's just a table ), I can employ the following syntax: add observation and the URL will change according to the path via which I'm accessi

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread bruno desthuilliers
#x27;ve looked at the url tag, but sadly it doesn't help me with > customizing the url's in the left navigation. The idea is that those > url's should change according to the URL of the page, so the > add_observation view (which accepts those parrameters you mention, >

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread Uwe Schuerkamp
On 26 Aug., 15:56, joconnell wrote: > Hi Uwe, > > You might be able to leverage the 'url' template tag which comes with > django? > Hi John & Bruno, thanks for your answer. I've looked at the url tag, but sadly it doesn't help me with customizing the ur

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread joconnell
Hi Uwe, You might be able to leverage the 'url' template tag which comes with django? e.g. For the 'add observation' example above, if you pass in the country code as part of the context you return in your view(s), or leverage middleware to automatically add it to every response based on the requ

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread bruno desthuilliers
On 26 août, 13:27, Uwe Schuerkamp wrote: > Thanks Bruno, > > I'll look into the custom template tags you mentioned. Well, the way I see it you should first investigate the middleware part - that's probably where you'll get the most relevant infos. The templatetag part was mostly here to help wi

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread Uwe Schuerkamp
Thanks Bruno, I'll look into the custom template tags you mentioned. I had no idea when I started out with this project that I'd be knee deep into advanced django after a couple of weeks ;-) BTW, can you recommend the "pro django" book? All the best & thanks again for your help, Uwe -- You rec

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread bruno desthuilliers
On 25 août, 23:40, Uwe Schuerkamp wrote: > Hi folks, > > this posting sort of refers to my previous problem from last week as > I'm still working on the birdwatcher's site. I cannot wrap my head > around how to create intelligent navigation links from the current > con

How to create navigation urls in an intelligent manner

2010-08-25 Thread Uwe Schuerkamp
Hi folks, this posting sort of refers to my previous problem from last week as I'm still working on the birdwatcher's site. I cannot wrap my head around how to create intelligent navigation links from the current context or http request. For instance, if the user enters via the url /de

Re: navigation

2009-10-29 Thread elminio
Up Up On Oct 28, 11:42 am, elminio wrote: > Hi, > > I use generic view on updating objects. How to create button with > cancel that will always redirect me to the previous page ? > > thanks --~--~-~--~~~---~--~~ You received this message because you are subscribe

navigation

2009-10-28 Thread elminio
Hi, I use generic view on updating objects. How to create button with cancel that will always redirect me to the previous page ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Navigation without lose data

2009-10-16 Thread gustavo
Hi, I have a image gallery and I am trying to make a fixed menu with the gallerie's names, so I can click each name and see the thumbs on the left below positon from the menu, and then click each thumb to see the real picture on the right below position from the menu. But when I click on a galle

DRY 2 Level Navigation

2009-06-29 Thread pysports
I am currently writing a navigation system for a new site. It consists of a top level horizontal dropdown nav at the top of all the pages, along with a secondary subnav on the child pages. I have a good system working for the top level nav with DRY urls and css highlighting of the active page

Site structure and navigation

2009-05-06 Thread Aidas Bendoraitis
What apps or techniques do you use/prefer/recommend for defining different sections of the site and navigation menu? Is that dynamic and configurable by the end user/content administrator? How would you imagine a comfortable user interface to define different sections and the content from

navigation in base.html from categories model?

2009-03-21 Thread tdelam
Hi Guys, I have a categories model, I need to generate a nav based on this model. Categories get added through the Django admin. I have a slug field that is prepopulated from the title. How can I generate this nav in base.html and still be able to pull up all the items related to that category wh

Anyone have any good solutions for site navigation?

2008-10-24 Thread Matt Wilson
My site has a global-navigation header, with links to 5 sections of the site. I highlight the section that the viewer is currently viewing in the global header. Other than the highlighting, the header is the same on every page of the site. Then I also have a "local" navigation

Re: djangosnippets.org list navigation

2008-10-10 Thread Alessandro Ronchi
2008/10/10 Gerard Petersen <[EMAIL PROTECTED]>: > > You can simply add this to your keywords in google (and thus use google): > > site:www.djangosnippets.org > > End result: > > http://www.google.nl/search?q=site%3Awww.djangosnippets.org+state Maybe if djangosnippets.org adds the google search the

Re: djangosnippets.org list navigation

2008-10-10 Thread Gerard Petersen
You can simply add this to your keywords in google (and thus use google): site:www.djangosnippets.org End result: http://www.google.nl/search?q=site%3Awww.djangosnippets.org+state Regards, Gerard. David Durham, Jr. wrote: > The list navigation on djangosnippets is not so good. Take t

Navigation elements at top and bottom

2008-10-10 Thread pihentagy
Hi! I need an advice. Until now, I have a base.html, which looks like sg. like: {%block prev %}{% endblock %} {% block next %}{% endblock %} {% block path %} {% endblock %} {% block content %} {% endblock%} By inheriting this template in all other templates, and filling the block went fine. But

Re: djangosnippets.org list navigation

2008-10-08 Thread Alessandro
2008/10/9 Rob Sutherland <[EMAIL PROTECTED]>: > I found this link to a search utility for djangosnippets the other > day. > > http://henning.cco-ev.de/django/djangosnippets.html It's possible to add it to djangosnippets.org? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SO

Re: djangosnippets.org list navigation

2008-10-08 Thread Rob Sutherland
On Wed, Oct 8, 2008 at 5:44 PM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > > The list navigation on djangosnippets is not so good. Take this page I found this link to a search utility for djangosnippets the other day. http://henning.cco-ev.de/django/djangosnippets.ht

djangosnippets.org list navigation

2008-10-08 Thread David Durham, Jr.
The list navigation on djangosnippets is not so good. Take this page for instance: http://www.djangosnippets.org/users/ I happened to stumble across the following jquery plugin which might be a quick fix for some of the issues (though searching should be added to): http://www.ihwy.com

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Antoni Aloy
Hi Leandro, I have updated the appfusedjango to show an example of grid with search and pagination using jqGrid with a minor patch to use it with Django. Hope it helps! -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ Y

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Antoni Aloy
2008/6/25 Leandro Severino <[EMAIL PROTECTED]>: > > Thanks³ Antoni, > > This is a very good example and it can resolve my problem. > > []s > Glad to help. I suppose in few days I would finish an example using jQuery and jqGrid, but it would depen greatly on my free time. Best regrads, --

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Leandro Severino
Thanks³ Antoni, This is a very good example and it can resolve my problem. []s Leandro. On 25 jun, 10:29, "Antoni Aloy" <[EMAIL PROTECTED]> wrote: > 2008/6/25 Leandro Severino <[EMAIL PROTECTED]>: > > > > > Thanks Antoni, > > > But I need of examples !. I'm a newbie in Djang

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Antoni Aloy
2008/6/25 Leandro Severino <[EMAIL PROTECTED]>: > > Thanks Antoni, > > But I need of examples !. I'm a newbie in Django. Go to appfusedjango project in google code http://code.google.com/p/appfusedjango/ perhaps it would help you, as I wrote a complete crud operation. Best regards, -- Anto

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Leandro Severino
Thanks Antoni, But I need of examples !. I'm a newbie in Django. Well, in my searchs I found the object Pagination that is the solution to my problem of a Navegation, but I need of all operations(new, delete, save and the navigations) in the same page. Any idea ? On 24 jun, 03

Re: Basic CRUD form with navigation layout

2008-06-23 Thread Antoni Aloy
2008/6/24 Leandro Severino <[EMAIL PROTECTED]>: > > Hi Djangers, > > This is my first post and sorry by my terrible english. > > Well, > My customer needs a page with this layout: > > [div id="toolbar"] > NEW - SAVE - DELETE - SEARCH - <<(previous) - >>(next) - > PRINT ( elem

Basic CRUD form with navigation layout

2008-06-23 Thread Leandro Severino
Hi Djangers, This is my first post and sorry by my terrible english. Well, My customer needs a page with this layout: [div id="toolbar"] NEW - SAVE - DELETE - SEARCH - <<(previous) - >>(next) - PRINT ( elements) [/div] [div id="content"] The forms

Re: Navigation components

2008-06-03 Thread Peter Rowell
> The bit I don't see is how you get the info about section navigation > into the context - is it hard-coded into the view? This is what I'd > like to avoid. Ah. The short answer is: sort of. The breadcrumbs are a straight computation. The nav bar was done by CSS class mani

Re: Navigation components

2008-06-03 Thread Will Boyce
5 pm, Will <[EMAIL PROTECTED]> wrote: > Thanks for your replies, chaps. > > I need to mull this over, but I think I see what you're getting at > (using template inheritance). I've realised the breadcrumbs should be > easy (use Super to add to the breadcrumb section I suppo

Re: Navigation components

2008-06-03 Thread Will
o about section navigation into the context - is is hard-coded into the view? This is what I'd like to avoid. Cheers Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Navigation components

2008-06-03 Thread Matthias Kestenholz
Hi, On Mon, 2008-06-02 at 08:46 -0700, Will wrote: > Hi all > > I'd like to start a discussion about generating navigation components. > Despite their importance and their fairly generic nature, best > practice is not obvious to me after trawling through hundreds o

Re: Navigation components

2008-06-02 Thread Peter Rowell
A site I finished a few months ago had a 4 level hierarchy. I created a Section model and all content classes had an FK to Section (including Section itself). E.g., Home Section A Section A.1 Article Video Audio Books (etc., etc.) Section A.2 (etc.) Secti

Re: Navigation components

2008-06-02 Thread Michael Wieher
2, 2008 at 10:46 AM, Will <[EMAIL PROTECTED]> wrote: > > Hi all > > I'd like to start a discussion about generating navigation components. > Despite their importance and their fairly generic nature, best > practice is not obvious to me after trawling through hundreds of

Navigation components

2008-06-02 Thread Will
Hi all I'd like to start a discussion about generating navigation components. Despite their importance and their fairly generic nature, best practice is not obvious to me after trawling through hundreds of posts, blogs etc. Anyone that's interested, could you briefly state how

Re: awareness of current view in template/site navigation

2008-04-21 Thread Peter Rowell
There are any number of Cheap Hacks you can do to make this simpler. In the view (or possibly using the {% expr %} tag (See http://www.djangosnippets.org/snippets/9/)), set a variable called in_news_archive to "-active" if you are in that section, and '' or None if you aren't. If this is a foreg

awareness of current view in template/site navigation

2008-04-21 Thread Aljosa Mohorovic
i often find myself thinking "there must be a better way" when creating site navigation that has different images for normal/active/ hover link. so if my current location is "/news/archive", what i usually do is: - define current_view="news_archive" as varia

Re: Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Max Romantschuk
> Hope this helps, > Chris It did indeed! I suspected a tag was the way to go, but I hadn't had time to properly introduce myself to writing tags. I shamelessly nicked your code, and now I have what I need: http://max.romantschuk.fi/blog/ (See the left sidebar. Note: DNS just started pointing to

Re: Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Chris Moffitt
Here's how I've done it on my blog. Use this tag (which I pulled from somewhere else on the web)- http://www.satchmoproject.com/trac/browser/satchmoproject.com/satchmo_website/apps/blog/templatetags/month-list.py Here's the template that uses the tag- http://www.satchmoproject.com/trac/browser/sa

Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Max Romantschuk
I'm in the process of porting my site to Django, and I'm wondering how to best implement a monthly archive navigation like in Django's weblog's sidebar: http://www.djangoproject.com/weblog/ I'm using generic views. I basically need the information provided in date_based

Re: Navigation Bar

2007-08-22 Thread Amirouche
- Subpage 3 > > And I want to create a navigation bar that provides links to the > current page and all of the parent pages. You have to write recursive (or sort of) function to do something like this. > I'm using Django 0.96. I've played with the url template tag, and I > don

Navigation Bar

2007-08-22 Thread Matt Haggard
I'm becoming accustomed to Django... and I have a design question: I have something like this: Page1 - Subpage 1 - Subpage 2 - Subsubpage 1 - Subsubpage 2 - Subpage 3 And I want to create a navigation bar that provides links to the current page and all of the parent pages

Re: Outputting navigation

2007-03-05 Thread Aidas Bendoraitis
You don't need to put each page into a dictionary. Just loop through the categories in the template and then get all the child pages for each category: {% for category in categories %} {{ category }} {% for page in category.page_set.all %} {{ page }} {% endfor %}

Re: Outputting navigation

2007-03-05 Thread Mike H
Actually, after a nice strong cup of coffee, I figured I was doing this completely the wrong way. I added a get_pages method to the category which returns a queryset, then I supply the categories to the template and let the template ask the category for the pages. Mike On 3/5/2007, "Mike H" <[E

Outputting navigation

2007-03-05 Thread Mike H
Hi all, I have a list of wiki pages, each one has a category. I want to output them in a list, grouped by category. So far I am looping through each page and putting them into a dict, so the end result looks like this : {'category_name': [page1,page2,page3],} Now I want to loop round that in

Re: date navigation inclusion tag (problems with context)

2006-10-25 Thread Patrick J. Anderson
Patrick J. Anderson wrote: > Here's one of the inclusion tags I wrote this morning for my blog date > navigation: > > --- > > from django.template import Library,Node > from project.apps.

date navigation inclusion tag (problems with context)

2006-10-25 Thread Patrick J. Anderson
Here's one of the inclusion tags I wrote this morning for my blog date navigation: --- from django.template import Library,Node from project.apps.news.models import Article register = Library() def articles_months(co

  1   2   >