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 : > Yes, sorry I was confused... No I don't

Re: include template which extends something else

2015-10-28 Thread Sven Wanner
ock %} 2015-10-28 17:13 GMT+01:00 Carl Meyer : > 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 wor

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 : > Hi Sven, > > On 10/28/2015 09:50 AM, Sven Wanner wrote: > &

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 avoi

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 > wrote: > > backend.conf > > > > Listen 8787 > > &g

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" > > wrote: >

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 th

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 to

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
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 applicat

Re: text media files for comments

2014-01-14 Thread Sven Aßmann
it. 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

mass email app for django

2014-01-14 Thread Sven Aßmann
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
at 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, th

test driven development and mixin for views

2014-01-05 Thread Sven
uggestions!! -- 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 e

couchbase as db backend

2013-08-15 Thread Sven
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 = models.DateTimeFie

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 me

How to run a django app in a subdirectory alias

2012-06-29 Thread Sven Grunewaldt
http://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: s

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

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

2011-01-27 Thread Sven Broeckling
nse. > 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 h

Re: how to turn off CSRF in django 1.2?

2010-08-26 Thread Sven Bröckling
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
;) fn = smart_str(fn) svg = 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,

[solved] Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
After 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 "

Re: Python Segfaults with Django 1.1

2010-08-05 Thread Sven Broeckling
seems that the 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 t

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 Goo

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 wrote: > Hi everybody, > > i have some problem i

Different model behaviour in template tag and python shell?

2010-04-13 Thread Sven Richter
line 49, in render business = Business.objects.all() AttributeError: type object 'Business' 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 tha

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
styles = getSampleStyleSheet() Document = [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 wrote: > Hm, what makes me

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 On

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
%d, %Y")) Document.append(Paragraph("PDF created on " + date_now, styles["Normal"])) Document.append(Spacer(1,10)) doc.build(Document) I have tried the same "setup" with the canvas.Canvas example from the django documentation, and it worked. All i changed here

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
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, send email to django-us

Re: django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
s["Normal"])) Document.append(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

django, reportlab and basedoctemplate | simpledoctemplate

2010-03-30 Thread Sven Richter
basedoc.pdf',showBoundary=1) So 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"

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 unsubscribe

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 wrote: > Hi, > > i am about to extend the admin interface and came to the following problem. > I w

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 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 once installed, bu

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
s 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 group, send

Re: Permissions for groups and users

2010-03-22 Thread Sven Richter
d a new task, he can 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

Permissions for groups and users

2010-03-22 Thread Sven Richter
inA). Can i achieve 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

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_ wrote: > On 27 February 2010 11:46, Sven Richter wrote: >> Hi everybody, >> >> i am wondering if there is a tool which co

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, sen

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 wrote: > Hi all, > i am running a django project with fapws ( >

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 wrote: > On Mon, Sep 7, 2009 at 6:21 AM, Sven Richter wrote: > >> Hi all, >> >> i must have a simple error somewhere in my code, everytime i try to import &

method import error

2009-09-07 Thread Sven Richter
ts.get(id=instance._get_pk_val()) 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 m

cookie handling session management

2009-09-02 Thread Sven Richter
use them? The cookies problem is keeping 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

Re: Many-to-many column admin interface

2009-08-28 Thread Sven Richter
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 wrote: > > I could be mistaken ... but why not using a third model. > > C(models.model): > a = models.ForeignKey('A') > b = models.ForeignKey('

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 wrote: > 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

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 wrote: > > On Thu, Aug 27, 2009 at 10:00 AM, Sven Richter > wrote: > > I found thi

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 wrote

Many-to-many column admin interface

2009-08-27 Thread Sven Richter
thing from 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 user

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 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". > You can collect all th

Many-to-many column

2009-08-25 Thread Sven Richter
Do i have 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 messa

Re: adapt admin interface

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

adapt admin interface

2009-08-13 Thread Sven Richter
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 un

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 wrote: > > On Aug 9, 4:59 pm, Sven Richter wrote: &g

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 wrote: > > On Aug 9, 4:43 pm, Sven Richter wrote: > > Hi all, > > > > i wanted t

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 > wrote: > > Hi all, > > > > i wanted to know if it is possible to pass a Javascript variable

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
_urls(self): mystery solved, thanks :) Sven 2009/2/2 Daniel Roseman : > 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 revisi

Re: Admin get_urls

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

Re: slow django builtin webserver

2008-11-16 Thread Sven Richter
Steve Holden wrote: > Sven Richter wrote: > >> Hi all, >> >> i recently reinstalled my workingstation. Nothing wild, just >> changed from single hdd to a raid system. However, scince >> that day my django server has a horrible response on >> the new sy

slow django builtin webserver

2008-11-12 Thread Sven Richter
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" group. To po

ImageField upload Media root confusion

2008-10-22 Thread Sven Richter
path, no matter where that is, and reads it from the media root + 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 ar

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 which e

Image upload Field

2008-10-22 Thread Sven Richter
.pic }} I've taken out the not so relevant parts. The problem is i really 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 b

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 '{}

resolving urls template error

2008-09-18 Thread Sven Richter
erns = patterns('profile.views', (r'^$', direct_to_template, {'template':'profile/profile_all.html'}, 'profile_all'), (r'^(?P\w+)/$', 'user', {} 'profile_myiq'), ) profile/views.py def user(request, name): retur

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 "Django user

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 Method catches

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 to a

Tests catch Errors

2008-09-09 Thread Sven Richter
rks so far. 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 describ

Re: error when using User.get_profile()

2008-09-08 Thread Sven Richter
thread comes up: > > http://groups.google.com/group/django-users/browse_thread/thread/8494cd87bf181018/e73fed4cdbd80a4e > > Perhaps your problem has the same solution. > > Karen > Indeed, and i thought i doublechecked everything. It was a mistake i made. In settings.py AUTH_

Re: issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
tead 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 subscribe

issue with ifequal in a base template

2007-06-05 Thread Sven Broeckling
tive_category }} is None. If i choose a category 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 pos

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
d after the point isn't parameter 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: Usi

SQL Queries over multiple Tables

2007-05-14 Thread Sven Herzing
in (which don't work somehow in this way :( ) Does anyone have a suggestion how I could solve this which the django api, as I like to be flexible with the database. Thanks a lot for any help or suggestion Regards Sven Herzing -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (Dar