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
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
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:
> &
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
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
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
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:
>
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
;)
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,
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
"
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
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
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
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
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
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
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
%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
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
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
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"
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
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
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
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
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
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
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
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
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
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
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 (
>
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
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
&
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
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
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('
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
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
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
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
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
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
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
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
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
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
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
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
Hi all,
i wanted to know if it is possible to pass a Javascript variable to
the url template tag?
Like:
...
_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
-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.
&
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
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
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
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
.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
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 '{}
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
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
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
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
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
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
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_
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
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
-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
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
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
89 matches
Mail list logo