Re: How do I include a link in the emails that I send out?

2008-06-23 Thread Jonas Oberschweiber
Hi, as far as I know you have to set the correct MIME-type in your subject. This Wikipedia article should be a good start: http://en.wikipedia.org/wiki/MIME On Tue, Jun 24, 2008 at 3:51 AM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have the following line in my code: > > message = "This is

Re: ModelForms

2008-06-16 Thread Jonas Oberschweiber
ious > user's blog if I just logged out and logged in. > If form.category.queryset is showing the right thing when printed to > the console, shouldn't that be exactly what ends up in the html form? > > On Jun 17, 1:37 am, "Jonas Oberschweiber" <[EMAIL PROTECTE

Re: admin-like list views

2008-06-16 Thread Jonas Oberschweiber
Hi, pagination is done by the object_list generic view. You'd have too implement the filter links and search yourself, though. On Mon, Jun 16, 2008 at 11:16 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hello, > i'd like to have a view with behaves pretty much the same as the list > views

Re: ModelForms

2008-06-16 Thread Jonas Oberschweiber
AFAIK querysets are always cached. On Tue, Jun 17, 2008 at 7:06 AM, emont88 <[EMAIL PROTECTED]> wrote: > > I'm running into an interesting problem with ModelForms. > I have a blogging app that handles multiple blogs, which makes things > tricky with categories, because each category needs to belo

Re: modifying a queryset in a generic view wrapper

2008-06-15 Thread Jonas Oberschweiber
Hi, have you considered making a new model method like this: def get_formatted(self): do your rendering stuff You can just use that in your template like {{ post.get_formatted }} and don't have to worry about querysets and generic views. Not sure if that's the best solution, but

Re: Unique Users Per Site in 'users' & 'sites' Frameworks

2008-05-07 Thread Jonas Oberschweiber
I'm at a very similar point in development. To me the only way seems to be to alter the user database and roll my own login methods. This would probably work, but just does not feel right. I'm pretty new to Django, is there something I'm missing? Or is rolling your own really the only way to imple

Re: How can I get full path ( Include QUERY_STRING )?

2008-05-06 Thread Jonas Oberschweiber
>From what I can see, request.get_full_path() seems to be what you want. Details here: http://www.djangoproject.com/documentation/request_response/ Regards Jonas 2008/5/6 Davide.D <[EMAIL PROTECTED]>: > > example: > http://127.0.0.1:8000/search/?q=keyword > > "request.path" can just get "/se

Re: How to call a secure url?

2008-04-20 Thread Jonas Oberschweiber
As far as I understand it, you need to put the code from the snippet in its own file and either put that in your project's directory or somewhere in your python path. Then you have to add the class to settings.py (there are some existing middlewares, just see how they do it). I don't have any exp