Re: Form does not import current data from data base

2023-11-13 Thread Stefan Kusmierz
Dear community, I'd like to inform you how I overcame the problem: instead of using "List.objects.last().a" to access field "a" of the last instance of class List, I did it like so: m=List.objects.last().pk List.objects.get(pk=m).a Best regards, Stefan Kani Sbt schrieb am Don

Re: Form does not import current data from data base

2023-10-26 Thread Stefan Kusmierz
Hi Migui, thanks for your input. It didn't work. Migui Galan schrieb am Donnerstag, 26. Oktober 2023 um 09:27:48 UTC+2: > Hi Stefan, sorry i thought the process you are working is in POST request. > Try to place your func() after formchoices3. > > On Wed, Oct 25, 2023 at 4:

Re: Form does not import current data from data base

2023-10-25 Thread Stefan Kusmierz
Hi Migui, I'm enchanted to receive such a quick answer. 1. It's MyForm1_2_3_4() because it's the answer to the first Get request while the page is opened 2. Why would I try to save the form to the data base? Best regards, Stefan Migui Galan schrieb am Mittwoch, 25. Oktober 2023 um 03:39:16 UTC

How to use the PostGIS aggregate function ST_AsMVT with Django ORM

2021-02-25 Thread Stefan Brand
Hello everyone, this is a repost of https://stackoverflow.com/questions/65508291/how-to-use-the-postgis-aggregate-function-st-asmvt-with-django-orm (click for nice formatting). I'm providing the problem description below as well. Thank you, for your kind consideration! Best, Stefan

Reject a Websocket connection with a code.

2020-09-17 Thread Stefan Cardnell
Hi guys, please read my Stackoverflow question: https://stackoverflow.com/questions/63862762/django-channels-correct-way-to-reject-an-unauthorized-websocket-request I'm having an issue rejecting a websocket connection and have the client receive the associated code (unauthorized, bad page,

Re: Problems with code in shell (Django 2 and python 3.6)

2018-10-12 Thread Stefan Bethke
'timedelta' > >>> > > Any idea? Thanks a lot. You're missing an additional datetime. Either: >>> from datetime import datetime or >>> future_question = Question(pub_date=timezone.now() + >>> datetime.datetime.timedelta(days=30)) When I starte

Re: AnonymousUser.is_authenticated woes

2018-10-11 Thread Stefan Bethke
Am 11.10.2018 um 18:44 schrieb Stefan Bethke mailto:s...@lassitu.de>>: >>>> from django.contrib.auth.models import AnonymousUser >>>> AnonymousUser.is_authenticated > The answer is of course to use an instance, not the class: >>> from django.cont

AnonymousUser.is_authenticated woes

2018-10-11 Thread Stefan Bethke
omehow managed to get something else pulled in? In the actual application, not-logged in users see the right stuff, so apparently there it's working. Stefan -- Stefan BethkeFon +49 151 14070811 -- You received this message because you are subscribed to the Google Groups "Djang

Serializer for Postgis Array field in Django

2017-02-11 Thread Stefan Milutinovic
Hi, I have a class BPS: class BPS(models.Model): """ This is representation of UK BPS applications. """ ... questions = ArrayField(models.IntegerField()) This field questions is ArrayField od integers. And I also have Serializer for BPS. When I want to create BPS

Re: How install Django in PyCharm Community edition?

2017-02-10 Thread Stefan Milutinovic
You can't install django in PyCharm. You must set proper Python interpreter into PyCharm Settings. File>Settings>Project:name_of_your_project>Project Interpreter There you must setup proper Python interpreter. The best option is that you create Virtual Environment for each project. This is guide

Ideas for easier migration from South to Django 1.7+

2016-02-12 Thread Stefan Foulis
a pull request to the app's GitHub repo to add any mappings developers come up with while migrating projects. We at Divio and Aldryn would be happy to kickstart and maintain such an app for the benefit of the wider community. I'm especially interested if anyone has a better idea on ho

Re: post_delete and determining if a related object has been deleted

2015-07-28 Thread Stefan Schindler
transaction, which I can't handle myself anymore. I'm really out of ideas. Stefan -- 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+u

post_delete and determining if a related object has been deleted

2015-07-28 Thread Stefan Schindler
eally have to be gone in order for the operations to work. I can see that the behavior has changed 8 years ago: https://code.djangoproject.com/ticket/5559 Is there any other option I'm missing? Many greetings, Stefan Schindler -- You received this message because you are subscribed to the Google Groups "

Re: DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
ARRGH, sorry for the spam. The problem was that I have imported other django modules before calling execute_from_commandline... Cheers, Stefan On Saturday, December 1, 2012 5:57:31 PM UTC+1, Stefan Schwarzburg wrote: > > Hi, > > I'm looking for help with the following problem

DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
ngs-module) says that this should work, I always get the error: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Anyone who can help with this? Cheers, Stefan -- You received this message because you are subscribed to the Google Gro

Re: Announcing django user group switzerland

2012-10-28 Thread Stefan Foulis
at http://goo.gl/ULrCz . Cheers Stefan On Tuesday, September 18, 2012 3:12:31 AM UTC+2, Stefan Foulis wrote: > > *Dear Djangonauts > > After the positive experiences at djangocon 2012 in Zürich, we’d like to > further strengthen the swiss django user community and therefore invite you

Re: Announcing django user group switzerland

2012-10-18 Thread Stefan Foulis
Join the first «Django User Group Switzerland Meetup» on Thurs, 25.10.2012! We still need speakers - could it be you? http://goo.gl/A04hM On Tuesday, September 18, 2012 3:12:31 AM UTC+2, Stefan Foulis wrote: > > *Dear Djangonauts > > After the positive experiences at djangocon 20

django/utils/html.py fix to work with jython/java

2012-10-07 Thread Stefan Hummert
http://code.google.com/p/django-jython/issues/detail?id=78 I am not sure where this fix suits best (django or django-jython project), so I'll just ask... at the Link above all fix details are posted (if someone care's to integrate them feel free...) -- You received this message because you

Django Form with initial DateTime Value is recognized as changed

2012-09-26 Thread Stefan Winkler
class Test(models.Model): datum = models.DateTimeField() text = models.CharField(max_length=255) class TestForm(ModelForm): class Meta: model = Test Rendering the form with form = TestForm(initial={'datum':datetime.datetime(2012, 8, 21, 18, 0, tzinfo=)) looks all good.

Announcing django user group switzerland

2012-09-17 Thread Stefan Foulis
over our meetup.com page ( http://www.meetup.com/Django-User-Group-Switzerland/). Cheers* * Stefan Foulis* -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/dj

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
letter of your setting as a directory, I believe. I assumed a single directory could be a case of a single element. Tuple lesson duly noted. I take it you're not using the app directories loader? Not yet. - Stefan On Mon, Oct 31, 2011 at 3:58 PM, Stefan Lisowski<s.lisow...@isti.com>

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
57, in get_template template, origin = find_template(template_name) File "c:\Python26\lib\site-packages\django\template\loader.py", line 138, in find_template raise TemplateDoesNotExist(name) django.template.base.TemplateDoesNotExist: admin/base.html Has anyone here used the t

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
otExist: admin/base.html (I also tried without manually setting TEMPLATE_DIRS, but just ran django.conf.settings.configure(), still to no avail.) Anyone, any ideas? I'm completely new to Django, but I've not been working in Python lately either, so it could just be a Python mistake on my part

Django Standalone Template

2011-10-28 Thread Stefan Lisowski
Hi Django folks - I'm new to Django, and I just want to use the template system now, independent of the rest of Django. But I can't get it to see a template. Even the system templates as was suggested when I started Googling for my error. >>> import django.template >>>

Django session gets confused behind proxy, already logged in

2011-01-31 Thread Stefan
with runserver, but not with nginx. This only occurs with this user with the proxy, on other networks, it does work. Anyone experienced this before? If so, how'd you solve it? Thanks in advance! Stefan -- You received this message because you are subscribed to the Google Groups "Django users&q

Django saving problem, logging in/out fixes it

2011-01-18 Thread Stefan
, Django 1.0 and Postgresql. Also note that it does work when run with runserver, but not with nginx. This only occurs with this user with the proxy, everywhere else, it does work. Anyone experienced this before? If so, how'd you solve it? Thanks in advance! Stefan -- You received this message

Re: Multi-table Inheritance: How to add child to parent model?

2010-11-07 Thread Stefan Foulis
As far as I know there is no existing api to convert a 'Place' into a 'Restaurant' with multi-table inheritance in django. There is a ticket about this [1]. And in another ticket [2] that is marked as a duplicate but seems to have an example of how to solve this problem until there is a standard

Re: How do I update a global variable?

2010-06-18 Thread Stefan Frauenknecht
Please rethink your design! There is certainly no need for a global variable. There is may be a way to implement your requirement as a singleton that is being able to deliver the huge bag of data in a much more smarter way. Am 18.06.2010 um 20:17 schrieb aurphir :

Re: template_context_processors

2010-05-19 Thread stefan
Hi, I have this issue too :) On May 17, 1:00 pm, stefan <stefan.horom...@gmail.com> wrote: > Hello, > > I have this issue, I am using the development Django version (checked > out from svn). I use a template_context_processor and sometimes the > context_processor is

template_context_processors

2010-05-17 Thread stefan
inside the context_processor function, and I log request.META['REQUEST_URI'] Do you have any idea how to solve this ? Thanks, Stefan -- 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...@google

Call for discussion: Loading js assets of widgets without clashing with others?

2010-04-18 Thread Stefan Foulis
... no clashes and allows multiple versions of jQuery. Potentially bad for memory usage and performance. What do you guys think? What approach would you prefer? Other ideas? -- Stefan -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Debugging Django project using Eclipse (Apache + mod_wsgi)

2010-03-16 Thread Stefan
Thanks. Good article. On 16 мар, 22:53, dan levine <d...@styleseat.com> wrote: > this is a good place to get started: > > http://code.google.com/p/modwsgi/wiki/DebuggingTechniques > > On Mar 16, 10:11 am, Stefan <stefan.fila...@gmail.com> wrote: > > > >

Debugging Django project using Eclipse (Apache + mod_wsgi)

2010-03-16 Thread Stefan
Hello, When i used Django web-server there were no problems with debugging Django projects in Eclipse IDE. I had to deploy it on Apache web server. How can i debug the same project if it is deployed on Apache with module mod_wsgi? With regards, Stefan -- You received this message because you

Re: auth issue on Windows

2010-03-02 Thread Stefan Berglund
I have tried Firefox 3.6 and Internet Explorer 8, same thing in both. And it's Python 2.5.4. And I use manage.py runserver against localhost so the hostname is the same before and after login (http://localhost/...). After login, I redirect to "/indexview/" like this; [...] return

Bound forms and file-/imagefields

2010-01-30 Thread Stefan Nitsche
t that English isn't my primary language doesn't help). If I'm unclear please don't hesitate to ask for clarification. -- Stefan Nitsche ste...@nitsche.se -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Models, forms and inlineformset

2010-01-30 Thread Stefan Nitsche
On Sat, Jan 30, 2010 at 11:23, andreas schmid <a.schmi...@gmail.com> wrote: > Stefan Nitsche wrote: > > > > > > On Thu, Jan 28, 2010 at 10:15, andreas schmid <a.schmi...@gmail.com > > <mailto:a.schmi...@gmail.com>> wrote: > > > >

Re: Models, forms and inlineformset

2010-01-29 Thread Stefan Nitsche
On Thu, Jan 28, 2010 at 10:15, andreas schmid <a.schmi...@gmail.com> wrote: > and your form works on edit too? > i really cant understand why mine isnt... > > its giving me this MultiValueDictKeyError which i dont understand. > > Stefan Nitsche wrote: > > On Wed,

Re: Models, forms and inlineformset

2010-01-27 Thread Stefan Nitsche
the form if i want to edit but i get a > >Exception Type: MultiValueDictKeyError >Exception Value: > >Key 'activity_set-0-id' not found in {u'activity_set-0-name': [u'a\xf6lskjdf\xf6sa'], u'activity_set-0-type': > [u'research'] > > on save... any hints? > > > Stefan Nitsc

Re: Models, forms and inlineformset

2010-01-23 Thread Stefan Nitsche
On Mon, Jan 4, 2010 at 23:27, Stefan Nitsche <ste...@nitsche.se> wrote: > Hi, > > to begin with I would like to declare that I'm still on the beginner end of > the scale when it comes to Python and Django. > > I have an app which has two models: > > class I

Models, forms and inlineformset

2010-01-04 Thread Stefan Nitsche
inlineformset_factory I must give it an instance so that it can map the foreignkey, correct? So how do one go about and create a form where people can add "item" and "itemimages" at the same time? I'm feeling totaly lost any pointers would be greatly appreciated. -- Stefan Nitsche ste...

Re: F() expression order of operations

2009-09-15 Thread Stefan Petrea
What are F() expressions and where are they documented ? (just didn't hear the term until now) About your win_percentage column , wouldn't you rather have it as a method which is being calculated from the columns wins and losses instead of a column stored inside the table ? On Sep 15, 8:36 pm,

Seeking contributors for TODO list project written in Python/Django/jQuery ( open source )

2009-09-15 Thread Stefan Petrea
Hello, My name is Stefan Petrea and I'm working on a project built using Django. Basically the idea, is that of many wishlist-type of sites out there (of which a representative site is tadalist.com). What you can do is make lists of items , make items , edit them , re-order them(using jQuery

Re: model upload_to

2009-08-04 Thread Stefan Hjelm
lds and setting a function and set value in > > runtime with: > > the_file = models.FileField(upload_to=get_path) > > > that works great if I just want to change the filename but I can't > > change folder. > > > So what am I doing wrong? > > > Stefan &g

Re: model upload_to

2009-08-04 Thread Stefan Hjelm
sorry, my last post was answer to the first reply :-) I'll the second now. Thanks. On 4 Aug, 22:08, Stefan Hjelm <stefanhjel...@gmail.com> wrote: > thanks, forgot to say I tried that aswell but then nothing happens. > It's just as it ignores that line. It still saves the file und

Re: model upload_to

2009-08-04 Thread Stefan Hjelm
ime with: > > the_file = models.FileField(upload_to=get_path) > > > that works great if I just want to change the filename but I can't > > change folder. > > > So what am I doing wrong? > > > Stefan > > You needed to do self.the_file.  In python member vari

Re: OR in query_set

2009-07-21 Thread Stefan Hjelm
Many thanks! --~--~-~--~~~---~--~~ 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

Problem with performance on a django site

2009-05-28 Thread Stefan Tunsch
option, to keep it simple). The approach is to use the "cache" template tag to cache portions of my templates which don't need to be refreshed on each request and which do require calls to the database. Any suggestions will be appreciated. Regards, Ste

Problem with loading fixture in testcase

2009-05-22 Thread Stefan Tunsch
east to some extent. How can I track down the error? Or can it be a bug in the deserializer code... Regards, Stefan Tunsch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Test client - session data is empty and won't save new entries

2009-04-28 Thread Stefan Wallner
understand why the file CACHE_BACKEND wouldn't work? The docs don't seems to warn about that either. Anyone can explain? Stefan On Apr 27, 9:47 pm, Stefan Wallner <montodes...@googlemail.com> wrote: > Hi, > I am writing some tests for an application I am developing, in my test > ca

Test client - session data is empty and won't save new entries

2009-04-27 Thread Stefan Wallner
ure it out for two days now - help! Thanks Stefan --~--~-~--~~~---~--~~ 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 fr

Problem with formsets and uploading of files

2009-03-17 Thread Stefan Tunsch
in attachmentset.cleaned_data: print cd #Returns 3 empty dictionary {} Any help will be appreciated. Regards, Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Docstring documentation

2009-02-26 Thread Stefan Tunsch
to use it in my context... Regards, Stefan --~--~-~--~~~---~--~~ 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 g

Re: Struggling with annotations / aggregations

2009-02-19 Thread Stefan Tunsch
Thanks for the answer. I understand the implications of it. I'll keep an eye on the stated ticket. Keep up with the good work. Stefan Russell Keith-Magee escribió: On Thu, Feb 19, 2009 at 2:32 AM, Stefan Tunsch <stun...@gmail.com> wrote: Hi there! I'm trying to see

Re: Getting Django to generate a report automatically on a assigned date?

2009-02-18 Thread Stefan Tunsch
and use the django ORM as usual. Regards, Stefan Alfonso escribió: > Hi, > > I have a client who wants to generate an invoice statment > automatically on the first of every month. I'm trying to work out how > I might do that in Django. I have a simple statement model and a > si

Struggling with annotations / aggregations

2009-02-18 Thread Stefan Tunsch
overriding django's ORM) The last option would be to add some extra SQL to my QuerySet through the extra parameter. Any insight would be appreciated. Regards, Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: [Fwd: Error with File object]

2009-02-13 Thread Stefan Tunsch
Thanks Karen. Karen Tracey escribió: On Thu, Feb 12, 2009 at 9:55 AM, Stefan Tunsch <stun...@gmail.com> wrote: I think I found a bug in the trunk. I downgraded to rev 9700 and it started to work again. Regards, Stefan I opened a ticket to track this:

[Fwd: Error with File object]

2009-02-12 Thread Stefan Tunsch
I think I found a bug in the trunk. I downgraded to rev 9700 and it started to work again. Regards, Stefan Mensaje original Asunto: Error with File object Fecha: Thu, 12 Feb 2009 15:23:29 +0100 De

Error with File object

2009-02-12 Thread Stefan Tunsch
of the ticket in the files name t = TicketDocument(doc=File(f), company=company, ticket=tic) t.save() # This step throws the TypeError I'm using trunk at 9826 (just updated) Any ideas would be appreciated. Regards, Stefan --~--~-~--~~~---~--~~ You received

Re: Complex queries with datetime field

2009-01-30 Thread Stefan Tunsch
Hi Malcolm! Well, as you say, the range lookup simplifies the code. I am using MySQL and adding a timedelta of 1 day to a date object and comparing the range with my datetime field works indeed as expected. Thanks for your help. It's been very instructive. ;) Regads, Stefan Malcolm

Complex queries with datetime field

2009-01-28 Thread Stefan Tunsch
f there is a better way to lookup data that is IN a range of data? Second I would want to know if I can somehow add to my Q object a mix of groups of ANDed values that are ORed between them? I hope this makes sense to somebody, Stefan ;) PS: If I only filter by the day, for example, i

Re: Dynamically changing q object

2009-01-26 Thread Stefan Tunsch
This works excellent. Had now idea this was possible... Regards, Stefan Tim Chase escribió: I have a qset object like this: qset = ( Q(dst__contains=company.phone) | Q(dst__contains=company.cellphone) | Q(dst__contains=company.fax

Dynamically changing q object

2009-01-26 Thread Stefan Tunsch
) | Q(src__contains=company.fax) ) If a company has a None value in one of these fields, I get a "Cannot use None as a query value" error. I would want to add Q objects dynamically depending on the situation. Is this possible? Regar

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-10 Thread Stefan Tunsch
It looks like it's clear video conversion is your bottleneck. I would also suggest doing that on a different worker process. You will also want to avoid converting the same file again if you've done it before... I was suggesting to give a shot of using ONLY nginx with Django. If you search in

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Stefan Tunsch
What's the point of using Apache AND nginx? The same server is also handling the database? What db server are you using? What about caching? Have you something up and running in that sense? And regarding video conversion, this can obviously be the root of your problems. Can you be more

Problems with locale of dates queryset

2009-01-07 Thread Stefan Tunsch
t;) months = [m.strftime('%B') for m in premonths] But I guess I'm missing something here... BTW, the problem of the wrong locale of dates is everywhere I use dates on my site, not only in this snippet. Regards, Stefan --~--~-~--~~~---~--~~ You received th

Re: mod_wsgi // Stack trace does not show in log files or gets sent by email

2008-12-20 Thread Stefan Wallner
I can poke around some more in the right place for what's going on. Thanks! Stefan On Dec 14, 5:50 am, Stefan Wallner <montodes...@googlemail.com> wrote: > Hi, > I am running Django 1.0 on Windows Server 2003, Python 2.5 with > mod_wsgi. I am having trouble capturing any exceptions in

Re: two forms in the same view

2008-12-18 Thread Stefan Tunsch
You simply have to avoid using the same field name in the two forms. On 12/18/08, Alfredo Alessandrini wrote: > > Hi, > > can I use two form in the same view function? > > if request.method == 'POST': > form = FORM_1(request.POST) > if form.is_valid(): >

mod_wsgi // Stack trace does not show in log files or gets sent by email

2008-12-13 Thread Stefan Wallner
? Thanks, Stefan --~--~-~--~~~---~--~~ 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 dj

Re: Model similar to a spreadsheet

2008-12-02 Thread Stefan
Bruno: Thanks, I think that is exactly what I needed. I thought that I might need a model for the entries (you called them PersonItem), but I wasn't sure since I'm new to this kind of programming and thought there might be a more efficient way. Dan: Just imagine a spreadsheet, like OpenOffice

Model similar to a spreadsheet

2008-12-01 Thread Stefan
Hello, I'm new to Django and have some problems on how to create the models. What I want to do is something similar to a spreadsheet, but with more than one data field per intersection. Basically like this: (http://dpaste.com/hold/95128/) Items/Members: Person_A | Person_B | Person_C Item_1:

Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread Stefan Wallner
for the file upload. Of course this means once a file was uploaded and the notification is displayed any refresh of the will give you a browser warning about resending data which I would like to avoid. Any suggestions? Thanks Stefan --~--~-~--~~~---~--~~ You

a simple API to SproutCore

2008-10-02 Thread Stefan Foulis
/django-sproutcore/ There is a short tutorial in the wiki. I'm looking forward to feedback. Please post bug reports and feature requests to the google code site. I hope you enjoy the app. --Stefan Foulis --~--~-~--~~~---~--~~ You received this message because you

help_text not showing for ForeignKey with models.TABULAR

2008-02-03 Thread Stefan Wallner
issing). If I change edit_inline to models.STACKED, the help_text does show. Any way to show the help_text with the models.TABULAR layout? Thanks Stefan PS: I am running svn, revision: 7079 (updated today) --~--~-~--~~~---~--~~ You received this message becaus

Re: Configuring a Django Project for Intranet Deployment

2007-11-11 Thread Stefan Matthias Aust
add the function name to the settings' TEMPLATE_CONTEXT_PROCESSORS tuple. HTH, -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Can I customize RelatedManagers?

2007-11-11 Thread Stefan Matthias Aust
related_name='favs') class user_favs_mixin: def best(self): ... The ForeignRelatedObjectsDescriptor would the look for the innerclass and add it to the list of superclases of its dynamic RelatedManager class definition. But it might be too much magi

to_python ignored with custom IntegerField

2007-11-03 Thread Stefan Foulis [spiderware gmbh]
Hi I've tried to create a custom Field for the database to store Timedelta objects. Since I only need exactness to the minute and won't have any large timedeltas I'm using a simple Integer to store it in the database. Maybe I'll make this configurable later. this is the code:

Re: Django - Oracle support

2007-10-15 Thread Stefan Bethge
for it. Cheers, Stefan On Oct 15, 6:03 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 10/15/07, AP <[EMAIL PROTECTED]> wrote: > > > Before I am able to finalize my decision, I just wanted to be sure > > about this point. So, does Django really support Or

Re: oracle backend doesn't cache connections

2007-10-02 Thread Stefan Bethge
Hi again, I've found out recently that there is Oracle Connection Manager which might just be what I need. I still need to test it though. Later, Stefan On Sep 19, 2:26 pm, Stefan Bethge <[EMAIL PROTECTED]> wrote: > Hello, > > i've recently found out that django does not ca

Re: Should Django have a road map?

2007-10-01 Thread Stefan Matthias Aust
t which wants to get considered for usage. Your (and James) point is, I think: if it was said once, it can be found. That feels elite, IMHO. I appreciate your opinion. -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Should Django have a road map?

2007-10-01 Thread Stefan Matthias Aust
uot;court". Overstatement. See above. > And, again, it's easy to find these things out if you're genuinely > interested; the Trac timeline and the developers' list are both > well-advertised and publicly available. Let's agree that we disagree on this. Regards, -- Stefan Matthias Aust --

Re: Should Django have a road map?

2007-10-01 Thread Stefan Matthias Aust
..] You explained my points much better than I could (in plain English at least ;) Thanks. -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Should Django have a road map?

2007-10-01 Thread Stefan Matthias Aust
James, thanks for your details answer. Let me put it right here: I'm not complaining about the lack of dedication or progress in the development of Django. It's more about visibility and marketing. 2007/10/1, James Bennett <[EMAIL PROTECTED]>: > On 10/1/07, Stefan Matthias Aus

Should Django have a road map?

2007-10-01 Thread Stefan Matthias Aust
want to fork or split the development. However, I need some patches applied for our own work faster than in the official version. I'd like to know whether others feel the same and would like to see (and discuss) a focused road map or whether it's just me who cannot appreciate the creativity of chaos

oracle backend doesn't cache connections

2007-09-19 Thread Stefan Bethge
, http://code.djangoproject.com/ticket/409). Are there plans to implement some kind of connection caching or may I have not seen a connection pool daemon for oracle? Or is it in some way possible to manage the connections in the django application itself? Thanks for any suggestion, Stefan Bethge

Re: alternative to model inheritance?

2007-09-03 Thread Stefan Rimaila
, IIRC, isn't yet capable of doing what you've described below. -- Stefan Rimaila "A few bolts loose and a set of switches broken" Blog, personal portfolio & fun stuff: http://www.studionyami.com On Mon, 3 Sep 2007, Doug wrote: > > I m creating new models for a portfolio applic

Can Django be combined with a more powerful ORM?

2007-08-20 Thread Stefan Matthias Aust
eets or systems, a new database query is executed and I have to cache them manually and reset the cache manually if I add new ships or systems. I'm afraid, I over-bend Django's ORM here... -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message be

Re: truncate string after x characters

2007-08-20 Thread Stefan Matthias Aust
arg): try: return value[:int(arg)] except ValueError: return value -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Extending the model's manager methods?

2007-08-14 Thread Stefan Matthias Aust
) ... except: Foo.DoesNotExist: foo = None ... or for foo in Foo.objects.filter(id=id)[:1]: ... but I wonder whether it might be useful to add a method get_or_none() and another exists() method to the objects object. What do you think? -- Stefan Matthias Aust

Re: ifequal not working?

2007-07-28 Thread Stefan Matthias Aust
arguments. They must be variables, numbers or constants in quotes. To special case the last element of a list, do this: {% for item in items %} {% if forloop.last %} class="last" {% endif %} ... {% endfor %} -- Stefan Matthias Aust --~--~-~--~~~---~--

Re: Using the enumerate() function in a loop?

2007-07-22 Thread Stefan Matthias Aust
Greg, 2007/7/22, Greg <[EMAIL PROTECTED]>: > Does anybody know how I can get the list position so I can put it in > the url? Search for "forloop.counter0" on http://www.djangoproject.com/documentation/templates/#for --

Re: How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
y @transaction.commit_manually def test(foo): foo.count += 1 transaction.rollback() class Test(unittest.TestCase): def test_transactions(self): foo = Foo(count=1) test(foo) self.assertEqual(1, foo.count) The above code will fail. The count isn't reset to 1. It doesn't

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
2007/7/21, Tim Chase <[EMAIL PROTECTED]>: > I believe you're looking for the word "arbitrary". Yes. Thanks. Geeks should however take into consideration that a "random access file" isn't called an "arbitrary access

How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
, that is mutable sequences. At the same time, I like how Django expresses relations between objects and automatically manages them. So I tried to come up with some custom relation class - and failed so far ;( -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received

Storing binary data into a table

2007-07-21 Thread Stefan Matthias Aust
that. Additional question: Is there a way to store serialized (a.k.a. pickled) Python objects? Thanks, -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Debugging file uploads

2007-07-21 Thread Stefan Matthias Aust
method will simply spawn a new editor. Because I don't really know what to return from that view, it will work best with a bit of Ajax. -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
2007/7/21, Nis Jørgensen <[EMAIL PROTECTED]>: > > Stefan Matthias Aust skrev: > > > > Let's assume you have users who are allowed to assign nick names to > > theirselves and still all thoses nick names must be different. This is > > want I call

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
k names must be different. This is want I call a random ID. -- Stefan Matthias Aust --~--~-~--~~~---~--~~ 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.c

Re: Blog engine

2007-07-19 Thread Stefan Matthias Aust
their own custom blogging solution because it's so easy? I guess not :) -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: 4 beginner's questions

2007-07-19 Thread Stefan Matthias Aust
Oh, it's not creating the ID, my question was whether I can safely assume that I will always get an IntegrityError (and nothing else) and whether just inserting stuff and catching errors is the recommended Pythonic way. -- Stefan Matthias Aust // Truth until paradox --~--~-~--~

Re: Blog engine

2007-07-19 Thread Stefan Matthias Aust
easy it was to create something. Just telling them isn't enough :) Stefan --~--~-~--~~~---~--~~ 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

  1   2   >