Re: include template which extends something else

2015-10-28 Thread Sven Wanner
Oh man sorry, there was something wrong with finding the template but many thanks for your advices. It helped me a lot even if the problem was blindness. But anyway, I am happy now. Best regards to you 2015-10-28 17:25 GMT+01:00 Sven Wanner <sven.wan...@gmail.com>: > Yes, sorry I was

Re: include template which extends something else

2015-10-28 Thread Sven Wanner
2015-10-28 17:13 GMT+01:00 Carl Meyer <c...@oddbird.net>: > On 10/28/2015 10:11 AM, Sven Wanner wrote: > > Ok, it's a pitty, but you're totally right. Using if in my template > > should be also fine. Not of that elegance I planned ;) , but will > > definitely work, t

Re: include template which extends something else

2015-10-28 Thread Sven Wanner
Ok, it's a pitty, but you're totally right. Using if in my template should be also fine. Not of that elegance I planned ;) , but will definitely work, too. Thank you 2015-10-28 17:04 GMT+01:00 Carl Meyer <c...@oddbird.net>: > Hi Sven, > > On 10/28/2015 09:50 AM, Sven Wanner wr

Re: include template which extends something else

2015-10-28 Thread Sven Wanner
Thanks for your quick reply. Yes, this is also what I found, so I was quite shure that my code will never work. What I try to do is to render a list of database objects. But not only on one page but on different pages and with slightly different designs in each of the lists. So my plan was, to

How to mock a model backend

2015-03-26 Thread Sven Mäurer
In my model backend I usually call an external service which returns me an user that is saved and returned. When I don't have credentials I want to mock the backend for some test cases. In the setup of each test case I am calling the login method where CRED contains the real credentials or mock

Re: Django accepting other applications ports

2015-03-25 Thread Sven Mäurer
Ohh thanks. You have saved at least 4 hours of my sleep, 10 coffees and a very bad mood! Am Mittwoch, 25. März 2015 21:57:19 UTC+1 schrieb Stephen Butler: > > On Wed, Mar 25, 2015 at 2:27 PM, Sven Mäurer <maeure...@gmail.com > > wrote: > > backend.conf

Re: Django accepting other applications ports

2015-03-25 Thread Sven Mäurer
Mittwoch, 25. März 2015 20:22:05 UTC+1 schrieb Gergely Polonkai: > > Hello, > > Please share the rest of this Apache config; from what you copied, it's > impossible to tell. > > Best, > Gergely > On 25 Mar 2015 17:12, "Sven Mäurer" <maeure...@gmail.com >

Django accepting other applications ports

2015-03-25 Thread Sven Mäurer
I have two applications on my apache. Why is my Django application running accepting the connection also of port ? Listen 8787 The other application: Listen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Dictionary in admin interface

2015-01-23 Thread Sven Mäurer
I want to manage a dictionary inline over the admin interface. These are my models. What I got working is of course a separated management of request and dictionary. But I want to add key value pairs in the request admin interface with a TabularInline. Do I have to skip the dictionary in some

Re: How to re-sync with Heroku?

2014-01-16 Thread Sven Aßmann
Hi Scott, it looks more like a cygwin - heroku issue. If you search for the heroku command, where do you find it, if even? Try to extend your PATH variable to the path whereever the tool belt was installed and try it again. Cheers, Sven On Thursday 09 January 2014 22:39:59 Scott Meyers wrote

open data protocol and django

2014-01-16 Thread Sven Aßmann
-framework would be an possible option, maybe. Therefore the question if someone maybe did already a small playaround basing on django-rest-framework or a small selfmade implementation? Thanks for your feedback. -- Best Regards, Sven -- You received this message because you are subscribed

Re: mass email app for django

2014-01-16 Thread Sven Aßmann
Hi Dedrerik, maybe your are right and just using a service like Mailchimp (which seems to be pretty userfriendly) would be the best way to go. I will defenetly have a look on it and try to find out if the users needs can be satisfied by that. Thanks a lot. Cheers, Sven On Thursday 16 January

Re: mass email app for django

2014-01-16 Thread Sven Aßmann
on that - exiting. Cheers, Sven On Wednesday 15 January 2014 13:34:11 Sergiy Khohlov wrote: > Hello Sven, > > Look like it is not task for django. This is task for SMTP server. Of > course you can create a task for SMTP server using django but main > force of the your application i

Re: text media files for comments

2014-01-14 Thread Sven Aßmann
Should I use database for text comments, or is it better statatic > text files like image files in media folder. > > Any help is appreciated. -- Best Regards, Sven -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

mass email app for django

2014-01-14 Thread Sven Aßmann
are included and helpfull and what are not that helpfull. I really appreciate your contributions. -- Best Regards, Sven -- 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, sen

Re: test driven development and mixin for views

2014-01-06 Thread Sven
that it will still behave as expected. That should be fair enought. Thanks, Sven On Monday 06 January 2014 02:08:29 trojactory wrote: > Hi sassman, > > Since you mentioned TDD, I assume you are talking about unit tests. As with > any matter in quality control, the more you can test

test driven development and mixin for views

2014-01-05 Thread Sven
!! -- Best Regards Sven -- 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 email to dj

couchbase as db backend

2013-08-15 Thread Sven
the django model layer? -- Best Regards Sven -- 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 g

Re: Django 1.5 runserver hangs in Chrome

2013-07-08 Thread Sven Bröckling
Hi, Chrome sometimes does really strange things. I use chrome with a disabled cache for development (Open Developer Tools, click on the settings menu, first option) which resolves this kind of problems for me. Regards Sven I can confirm this issue. Exactly the same problem here. Also

django vagrant template and project start

2013-06-15 Thread Sven
really appreachiate your feedback!! https://github.com/sassman/django-vagrant-template A how to start read me is allready there. If you have question please contact me. -- Best Regards Sven -- You received this message because you are subscribed to the Google Groups "Django users&q

Ordering a QuerySet based on a latest child models field

2013-03-01 Thread Sven Grunewaldt
Lets assume I want to show a list of runners ordered by their latest sprint time. class Runner(models.Model): name = models.CharField(max_length=255) class Sprint(models.Model): runner = models.ForeignKey(Runner) time = models.PositiveIntegerField() created =

django git repository management app

2012-12-31 Thread Sven
integrated with admin app. Now i'm happy to announce version 1.0.0 it is opensource and you can find it on github https://github.com/lubico-business/django-gitana I very appreciate all comments, suggestions and all kind of feedback. happy new year! BR Sven -- You received this message

How to run a django app in a subdirectory alias

2012-06-29 Thread Sven Grunewaldt
://docs.webfaction.com/software/django/config.html#mounting-a-django-application-on-a-subpath ) Sadly this does not fix the urlconf parsing, even though the mentioned site suggests that. Is it possible to run a django application in a subdirectory alias and if so, how? Thanks, Sven PS: nginx config: server

modelForm validation -> model validation -> trigger field validation?

2012-01-25 Thread Sven
ers -> Field validation of all contained fields But this seems not be the case. Has anyone of you an idea? -- Best Regards Sven -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Django Form Field: BoundField question

2012-01-05 Thread Sven
Hi Tom, thanks for the link, in case of 'datetime.date.today' the callable makes a lot of sense. I changed my class field so that the value is not more a class definition, now it is wrapped by some kind of a proxy instance to avoid the callable effect. -- Best Regards Sven

Re: Is there a tool to check which views are used?

2011-01-27 Thread Sven Broeckling
It doesn't have tests, so I can't check the coverage or find data > from there. The django-extensions (https://github.com/django-extensions/django-extensions) app provide a command to get all urls from a project, maybe that is a good starting point : ./manage.py show_urls hth Sven -- http:

Re: how to turn off CSRF in django 1.2?

2010-08-26 Thread Sven Bröckling
so i wrote two quick and dirty shell aliases to switch the django version. [s...@troy sven] which django1.1 django1.1: aliased to sudo rm -f /usr/lib/python2.6/dist-packages/django; sudo ln -s /home/sven/projects/programming/python/django/django-1.1/django /usr/lib/python2.6/dist-packages/ [s...@troy

Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
rsvg.Handle(file=fn) @@ -123,7 +123,10 @@ class ComposedImage(object): surface.write_to_png(file) image = Image.open(file, "r") image.convert("RGBA") + +os.close(fd) os.unlink(file) Thanks, Sven -- You received this message because

[solved] Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
fter adding os.close(fd) to an svg -> png Function the App doesn't leak file descriptors any more. In about 30k Requests i know if it was the cause for the segfaults :) Thanks Reinout :) Sven -- You received this message because you are subscribed to the Google Groups "Django us

Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
python process runs out of file handles. After 10k requests (via ab -c 1 -n 1) i got several "not found" io exceptions like "/dev/urandom not found", TemplateError: Template xy not found and this one : Error Opening file /path/to/geoip/GeoIP.dat Maybe that is why the

Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
hop kernel: [6277825.802407] apache2[4855]: segfault at 28 ip 7f2c8d6dff04 sp 7f2c84288d40 error 4 in libapr-1.so.0.2.12[7f2c8d6bc000+32000] Thanks in advance for any hint :) Sven -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Why not Django with FastCGI?

2010-04-20 Thread Sven Svenson
I'm new to the Django world but it seems that FastCGI is not the preferred way to deploy a Django application. Why is that? I've had good success using FastCGI with Perl/Catalyst-based applications. Thanks. /sven -- You received this message because you are subscribed to the Google Groups

Re: Different model behaviour in template tag and python shell?

2010-04-13 Thread Sven Richter
Haha, just like always, short after mailing it flashed to my mind. I named the class Business the same like the model Business, which of course, clashes with each other. Greetings Sven On Tue, Apr 13, 2010 at 11:09 PM, Sven Richter <sver...@googlemail.com> wrote: > Hi everybody, > &

Different model behaviour in template tag and python shell?

2010-04-13 Thread Sven Richter
iness' has no attribute 'objects' - Hm, thats something thats completely out of my mind, i mean, its the same call, but it cannot get executed? Why is that? Greetings and thanks in Advance Sven -- You received this message because you are subscribed to the Goo

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
= [Paragraph('rd', styles["Title"])] Document.append(Spacer(1,50)) doc.build(Document) return response Thanks all for the help! Sven On Wed, Mar 31, 2010 at 12:23 AM, Sven Richter <sver...@googlemail.com> wrote: > Hm, what makes me wonder is this one: > Ind

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
Hm, what makes me wonder is this one: IndexError at /office/job//admin/job/offer/generate/pdf/ This is a url that is not accessible, cause it does not exist, at least i never defined it in any urls.py. Maybe thats the problem? Django tries to access a url which doesnt exist? Greetings Sven

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
) I have tried the same "setup" with the canvas.Canvas example from the django documentation, and it worked. All i changed here is from canvas to document. Greetings Sven -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
it doesnt generate a pdf like that, it just complains about that IndexError. Greetings Sven -- 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...@googlegroups.com. To unsubscribe from this group,

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
end(Spacer(1,10)) doc.build(Document) return response But instead of showing the pdf i get the error: Exception Type: IndexError Exception Value:list index out of range I cannot imagine what may be wrong there? From my point of view it should work like that? Greetings Sven

django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
if somebody could provide some working code, or a hint to repository or an application with some working code, i'd really appreciate that. Greetings Sven -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: extend admin interface - chang_list_results.html

2010-03-27 Thread Sven Richter
Thank you very much. Do you know if there is something planned for future releases? Greetings Sven -- 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...@googlegroups.com. To unsubs

Re: extend admin interface - chang_list_results.html

2010-03-26 Thread Sven Richter
e tag in question and giving it a different name. That way you can use it selectively." So, i'm gonna do it myself. Greetings Sven On Fri, Mar 26, 2010 at 7:24 PM, Sven Richter <sver...@googlemail.com> wrote: > Hi, > > i am about to extend the admin interface and came to the fo

extend admin interface - chang_list_results.html

2010-03-26 Thread Sven Richter
emplates/app/model/" path. That of course is not very useful, cause the template will be used for every app instead for the one i want to adapt. How do i get around that? Is there a standard way for doing these things? Greetings Sven -- You received this message because you are subscribed

Re: admin user, groups unregister deleted applications?

2010-03-23 Thread Sven Richter
On Tue, Mar 23, 2010 at 10:10 AM, Grigory Javadyan <grigo...@ovi.com> wrote: > On 03/23/2010 12:53 PM, Sven Richter wrote: >> >> Hi, >> >> i just mentioned that in the admin interface, in the user and groups >> section i still can see all the applications i

admin user, groups unregister deleted applications?

2010-03-23 Thread Sven Richter
Hi, i just mentioned that in the admin interface, in the user and groups section i still can see all the applications i once installed, but that are deleted now from my project. How can i get rid of them? Greetings Sven -- You received this message because you are subscribed to the Google

Re: Permissions for groups and users

2010-03-23 Thread Sven Richter
work. Now it works perfectly. You did a great job with that small app :-) Have a nice day Sven -- 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...@googlegroups.com. To unsubscribe from this

Re: Permissions for groups and users

2010-03-22 Thread Sven Richter
choose tasks from other namespaces as parent tasks. I tried that with a different model combination, with the same result. As soon as a model refers to a foreignkey the user is able to choose from ever other namespace. Can that be resolved somehow? Greetings and thanks Sven On Mon, Mar 22, 2010

Permissions for groups and users

2010-03-22 Thread Sven Richter
that with the given permission (users and groups) system of django or do i have to extent the user and groups models from django? Greetings Sven -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: convert mysql database to django model

2010-02-27 Thread Sven Richter
Wow, this is cool. Django is so cool! I love it more and more every day! Greetings and thanks Sven On Sat, Feb 27, 2010 at 11:49 AM, rebus_ <r.dav...@gmail.com> wrote: > On 27 February 2010 11:46, Sven Richter <sver...@googlemail.com> wrote: >> Hi everybody,

convert mysql database to django model

2010-02-27 Thread Sven Richter
Hi everybody, i am wondering if there is a tool which converts existing mysql databases with table structure into a django model? Greetings Sven Richter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: [solved] admin interface, nginx and fawps

2009-09-15 Thread Sven Richter
I solved the problem myself. I had to set the SESSION_COOKIE_DOMAIN = '.domain.de' and delete the old cookie then everything worked as it should. Greetings Sven On Mon, Sep 14, 2009 at 3:33 PM, Sven Richter <sver...@googlemail.com>wrote: > Hi all, > i am running a django projec

admin interface, nginx and fawps

2009-09-14 Thread Sven Richter
enable them. Before i ran the project as scgi application managed by cherokee (another small webserver) and everything worked without problems. Any ideas? Greetings and thanks in advance Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: method import error

2009-09-07 Thread Sven Richter
Indeed, that was the problem. Thank you very much. Greetings Sven On Mon, Sep 7, 2009 at 1:53 PM, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Sep 7, 2009 at 6:21 AM, Sven Richter <sver...@googlemail.com>wrote: > >> Hi all, >> >> i must have a simple e

method import error

2009-09-07 Thread Sven Richter
()) except (Entries.DoesNotExist, AssertionError): print 'nsrd' Where signals is a file living in the entry app. Can someone point me to the error please? Greetings Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed

cookie handling session management

2009-09-02 Thread Sven Richter
ng me right now from using generic views and this bugs me a bit. Greetings Sven --~--~-~--~~~---~--~~ 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@google

Re: Many-to-many column admin interface

2009-08-28 Thread Sven Richter
for and what seems logic to me, but i could of course be wrong too. Greetings Sven On Fri, Aug 28, 2009 at 6:19 PM, patrickk <sehmasch...@gmail.com> wrote: > > I could be mistaken ... but why not using a third model. > > C(models.model): > a = models.ForeignKey('A') >

Re: Many-to-many column admin interface

2009-08-28 Thread Sven Richter
that. Any Ideas? Greetings Sven On Fri, Aug 28, 2009 at 3:04 PM, Sven Richter <sver...@googlemail.com>wrote: > I've opened a bug/feature request at: > http://code.djangoproject.com/ticket/11795#comment:2 > if someone is interested. > > > Greetings > Sven > >

Re: Many-to-many column admin interface

2009-08-28 Thread Sven Richter
Ah, and google does help or at least django_snippets. I found the solution here: http://www.djangosnippets.org/snippets/1295 The trick is to create a column in both models and in one with the option to not syncdb. Its really simple, just 6 lines at all. Greetings and a nice Weekend Sven On Fri

Re: Many-to-many column admin interface

2009-08-28 Thread Sven Richter
I've opened a bug/feature request at: http://code.djangoproject.com/ticket/11795#comment:2 if someone is interested. Greetings Sven On Fri, Aug 28, 2009 at 6:59 AM, Craig McClanahan <craig...@gmail.com>wrote: > > On Thu, Aug 27, 2009 at 10:00 AM, Sven Richter<sver...@googlema

Re: Many-to-many column admin interface

2009-08-27 Thread Sven Richter
I found this thread: http://stackoverflow.com/questions/660260/django-admin-form-for-many-to-many-relationship on Stackoverflow, but when i try the suggested TabularInline thing i get the error: has no ForeignKey to Greetings Sven On Thu, Aug 27, 2009 at 5:03 PM, Thomas Guettler <h...@

Many-to-many column admin interface

2009-08-27 Thread Sven Richter
B's admin interface. When i edit B i want to select all instances of A B belongs to. Is there a way to achieve that? Greetings Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Many-to-many column

2009-08-26 Thread Sven Richter
Thank you very much. I think i get the idea. Greetings Sven On Tue, Aug 25, 2009 at 10:51 PM, Peter Bengtsson <pete...@gmail.com> wrote: > > I fear your only option is to write a recursive function which you > feed with what you define to be "the end of the chain&quo

Many-to-many column

2009-08-25 Thread Sven Richter
to write my own template tag for that or is it already implemented in Django? Or maybe there is a better approach to solve my issue? I couldnt find a similar question or answer in the docs. Greetings Sven --~--~-~--~~~---~--~~ You received this message because

Re: adapt admin interface

2009-08-13 Thread Sven Richter
is basically the same as to question one? Greetings Sven On Thu, Aug 13, 2009 at 10:33 AM, Sven Richter <sver...@googlemail.com>wrote: > Hi everybody, > > i have two questions regarding the admin interface. > > 1. Is it possible to make on column be dependent of the ch

adapt admin interface

2009-08-13 Thread Sven Richter
g the admin interface that way that i want it. Greetings Sven --~--~-~--~~~---~--~~ 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

Re: javascript variable in url resolver template tag

2009-08-10 Thread Sven Richter
Ok, thank you very much, thats how i am gonna do it. I just didnt think about the fact that django is being done on the server side and the script on the client side. Greetings Sven On Sun, Aug 9, 2009 at 8:20 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Aug 9, 4:59 pm,

Re: javascript variable in url resolver template tag

2009-08-09 Thread Sven Richter
Ok, i think i understand the problem now. So i have to hardcode the url in my javascript function? That was what i wanted to circumvent. Sven On Sun, Aug 9, 2009 at 5:57 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Aug 9, 4:43 pm, Sven Richter <sver...@googlemail.com

Re: javascript variable in url resolver template tag

2009-08-09 Thread Sven Richter
I am looking for a rating function AJAX style. So what i am trying to do is the following: Click on a link wrote: > > On Sun, Aug 9, 2009 at 5:43 PM, Sven Richter<sver...@googlemail.com> > wrote: > > Hi all, > > > > i wanted to know if it is possible to pass a J

javascript variable in url resolver template tag

2009-08-09 Thread Sven Richter
Hi all, i wanted to know if it is possible to pass a Javascript variable to the url template tag? Like: ...

Re: Admin get_urls

2009-02-02 Thread Sven B
): mystery solved, thanks :) Sven 2009/2/2 Daniel Roseman <roseman.dan...@googlemail.com>: > That doesn't necessarily prove you're on trunk - I checked out the 1.0 > tag, and did svn up, and still get the 'at revision 9803' message even > though when I do svn info the last changed r

Re: Admin get_urls

2009-02-02 Thread Sven Broeckling
django/contrib/admin [s...@troy admin] grep -r 'get_urls' * [s...@troy admin] Any hints? Sven On 2 Feb., 08:52, Dave Fowler <davefow...@gmail.com> wrote: > Daniel, thanks for the response > I'm on the latest svn version > d...@django$ svn up > At revision 9803. > so my version s

slow django builtin webserver

2008-11-12 Thread Sven Richter
. But what speaks against that is that internet requests are as fast as normal, and phpymadmin behaves normal too. Thanks in Advance Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

ImageField upload Media root confusion

2008-10-23 Thread Sven Richter
+ the upload path, which seems like a bug for me. Any clarification for that behaviour? Or is it just me experiencing this? Greetings Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Image upload Field

2008-10-22 Thread Sven Richter
Nevermind my Mail, right after i sent this message it works. I dont know what went wrong exactly but right now i can see all of a sudden like 10 pictures i was loading up. Greetings Sven Sven Richter wrote: > Hi, > > i have a model which defines a ImageField with > a path

Image upload Field

2008-10-22 Thread Sven Richter
dont know how to debug that problem cause i got no error messages or something like that. All it does is not working. Greetings Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: resolving urls template error

2008-09-18 Thread Sven Richter
Sven Richter wrote: > Hi, > > i get the following error message: > TemplateSyntaxError at /community/profile/sveris/ > Caught an exception while rendering: Reverse for 'youriq.profile_myiq' with > arguments '('',)' and keyword arguments '{}' not found. > > Original Tra

resolving urls template error

2008-09-18 Thread Sven Richter
html', {'name':name}, RequestContext(request)) I was fiddling around for some hours now and became totally clueless. If anybody got some ideas i'd appreciate them. Greetings Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: overwrite get_absolute_url /contrib/auth/User

2008-09-16 Thread Sven Richter
On Tue, 2008-09-16 at 15:11 -0300, Eduardo O. Padoan wrote: > On Tue, Sep 16, 2008 at 2:59 PM, Sven Richter <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > i am wondering if the "users" path in get_absolute_url > > from the User class is hardc

overwrite get_absolute_url /contrib/auth/User

2008-09-16 Thread Sven Richter
ame. Can i subclass this Model and overwrite the function somehow? Or is there another way to get my profiles path without a dirty hack? Greetings Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Tests catch Errors

2008-09-09 Thread Sven Richter
On Tue, 2008-09-09 at 21:28 +0200, Sven Richter wrote: > On Tue, 2008-09-09 at 20:25 +0200, Sven Richter wrote: > > > i was playing around with unittests and found the > > failUnlessRaises(excClass, callableObj) Method. > > If i understand it right the M

Re: Tests catch Errors

2008-09-09 Thread Sven Richter
On Tue, 2008-09-09 at 20:25 +0200, Sven Richter wrote: > i was playing around with unittests and found the > failUnlessRaises(excClass, callableObj) Method. > If i understand it right the Method catches Exceptions > that are thrown by django. > > I tried to send a post

Tests catch Errors

2008-09-09 Thread Sven Richter
. Now i want to catch an Error, in this special case the error that is thrown if i forget a field, f.e. the password field. So i want to catch the "forgot-password-field-error". Now my question is, where can i find the exceptions i can catch? Meaning where are they described? Gree

Re: issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
of "always true". The debug line with the == shows "News == News", but the won't appear. I think i'm going to check for other stupid typos now. Bye Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
ory the ifequal test fails even if both values are the same. Any Ideas? TIA Sven --~--~-~--~~~---~--~~ 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@g

Re: nested dictionaries in templates

2007-05-19 Thread Sven Herzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Aidas, thx for the fast help. I hope i get better with django soon, that I can help others too. greets Sven Aidas Bendoraitis wrote: > Hi Sven! > > To get a value from a dictionary by a variable key, you either need a > custom

nested dictionaries in templates

2007-05-17 Thread Sven Herzing
of the dictironary? I also tried sth like this {% for prod in product.{{ entry }} %}, but this didn't work either. Is this kind of access possible? regards Sven Herzing -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org