. But the other are still alive and
have the old code loaded.
Maybe you could try mod_wsgi. It is much more flexible.
See "Time to deprecate mod_python":
http://groups.google.com/group/modwsgi/browse_thread/thread/95c5de2b996e2f49/fe4f823a391ad954
HTH,
Thomas Güttler
--
Thoma
Gmail schrieb:
> i found lots of snippets to download,but the server always says it is
> down.
>
Hi,
two days ago some snippets produced errors. But at least my snippets are
working again.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas
404 exception is raised, i.e.
> why does Django use the 500 template in this case?
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
transaction,
I choose the full text index of postgres.
I wrote an own to_tsvector method in python, instead of customizing
the to_tsvector method of postgres.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~--
umb_list.append, but returns read-only error on 'list'
>
> any help would be apprec-ated.
>
> thank you
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this
cursor.execute(u'''UPDATE myapp_mymodel SET
content=%s::tsvector where id=%s''', [tsvector, self.id])
The column "content" of type tsvector is created by a SQL snippet named
mymodel.sql.
HTH,
Thomas
--
Thomas Guettler, http:
mod_wsgi.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
, too.
Not an easy task. Has some tried this already?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
alue. If I don't find
> it, I insert the row along with the checksum. If I find it, I just
> reject the insert and send the appropriate message to the response.
This might be possible, but I would handle this outside the save method.
Thomas
--
Thomas Guettler, http://www.thomas-g
return string
for enc in encoding_guess_list:
try:
return string.decode(enc, errors)
except UnicodeError, exc:
continue
raise UnicodeError('Failed to convert %r' % string)
HTH,
Thomas
--
Thomas G
For example,
>
> "http://127.0.0.1/sampleview/?obj=xxx"; , but seems django cannot
> handle such pattern.
>
> Does any one know this, or are there any relevant doc I can learn for
> this. Your precious suggestion would be highly appreciated!
>
>
--
Thomas Guettler,
ea on how I can test the
> content of this page?
>
>
302 is redirect. There is no content.
You hit this line:
> return HttpResponseRedirect('/resultsdb/newresults')
>
--
Thomas Guettler, http://www.thomas-guettler.de/
m/en/dev/ref/contrib/admin/
http://groups.google.com/group/django-users/browse_thread/thread/536e86280059a1f9
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message
atetime.strptime() function. I've noticed
> that this works correctly in python, but when i run it within a django
> environment it doesn't seem to work. Example, in python:
>
> ...
--
Thomas Guettler, http://www.thomas-guettler.de/
E-
ot easy. What kind of data do you have?
Why do you want it to split?
Maybe you just need to write a own Widget which sublcasses
from MultiWidget and override the render method?
HTH
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail:
forms/form.py ... def full_clean(). I could copy
this method an write a utility function which only works
for one field. But that is not a good solution.
Do other people need this too? If yes, I could write a proposal with patch.
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de
h the professor about that subject.
> so, i think it would be more user friendly to have 3
> choicefields: the first one for the day of the week,
> the second one for the "from time" field and the last one
> for the "to time" field.
>
--
T
ect.settings
> PythonOption DJANGO_SETTINGS_MODULE testproject.settings
> PythonAuthenHandler django.contrib.auth.handlers.modpython
>
>
> However, it complains that it cannot find /dev/null. Is there
> something I can use instead of /dev/null for use on windows?
>
> Thanks
&g
; Thanks
> Alistair
>
> [1] http://docs.djangoproject.com/en/dev/topics/db/models/#id6
> >
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you
d this peace of code you can use the traceback
module
and print the stacktrace.
Be sure that you access the module only in one way:
e.g. always "myapp.modules". Not sometimes "myproj.myapp.modules".
HTH
Thomas
--
Thomas Guettler, http:
t set(view_groups)!=set(change_groups), (view_groups,
change_groups)
Is there a reason why this is this way?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message becaus
Hi,
> Although I would have to wonder why you're doing it this way, rather
> than using the database to sort them?
Since in my case it is easier. I need to filter out some item before.
This calculation
needs to be in python code.
Thomas
--
Thomas Guettler, http://www.thomas-gue
if you use date
objects (datetime.date.today()) in a template.
You need to use the "date" or "time" filter. I think this is redundant.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~
have the LocaleMiddleware installed.
Maybe this setting is different on your server?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscr
USE_I18N only on systems with "C" and "pl_PL".
> There is no need to use LocaleMiddleware if you do not want to change
> translations (eg. depending on browser settings).
>
>
--
Thomas Guettler, http://www.thomas-guett
Hi,
If GET or POST contain a list, I only see the last value in the debug view.
What do you see on an uncaught excepion with e.g. "?foo=1&foo=2" as
query string?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas
Russell Keith-Magee schrieb:
> On Tue, Nov 25, 2008 at 7:21 PM, Thomas Guettler <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> If GET or POST contain a list, I only see the last value in the debug view.
>>
>> What do you see on an uncaught excepion w
Hi,
I am missing order by nulls [first|last]
Either I am blind, or it is not possible.
Do other miss this, too?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this
Jarek Zgoda schrieb:
> Wiadomość napisana w dniu 2008-11-26, o godz. 10:20, przez Thomas
> Guettler:
>
>
>> I am missing order by nulls [first|last]
>>
>> Either I am blind, or it is not possible.
>>
>
>
> I think this is database-dependent
aw, that the ticket still needs a testcase. Can you write one?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&quo
elate to this entity from any
> other model.
>
> We can of cause create our own user authentication without embedded
> user authentication in Django, but is this the best solution?
> I hope you understand our problem.
>
> Thank you.
> Regard
> Nucles
>
>
> >
>
"auth_user"."is_active", "auth_user"."is_superuser",
"auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE
NOT ("auth_user"."id" IN (SELECT U1."user_id&quo
jango ORM, it will
> report 'ValueError hour must be in 0..23'.
>
> I'm porting a old program that record rum times of the machines to
> Django, so 24 hours is not enough for my new program.
>
> How can I resolve it ?
>
>
--
Thomas Guettler, http://ww
Filip Wasilewski schrieb:
> On 2 Gru, 16:45, Thomas Guettler <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I want to get all objects where the corresponding many-to-many field is
>> empty.
>>
>> Example: get all users without a group
>>
&
omitted (useful for multipart/alternative messages) and the
mimetype
is guessed, if not provided.
If the first parameter is a MIMEBase subclass it is inserted
directly
into the resulting message attachments.
"""
--
Thomas Guettler, http:/
ts.org/snippets/1064/
The (flash) message is stored in a cookie.
But I think the snippet is not thread safe. Has anyone a working example?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~---
page() is have set
> as:
>
> def logbook_no_page(request):
>
> return HttpResponse(location='/foobar-page-55')
>
>
> but that obviously doesn't work. How can I do this?
>
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*
_belegartrequiredgroup"."id",
"foo_belegartrequiredgroup"."belegart_id",
"foo_belegartrequiredgroup"."permission_id",
"foo_belegartrequiredgroup"."group_id" FROM "foo_belegartrequiredgroup"
WHERE ("foo_belegar
is a bug or am I missing something?
I use django 1.0.2
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
all fields of my profile model have default values, it could be
created it on the fly.
Since I don't want to run a modified django, I will use my own
get_profile method.
Does some know this problem? How do you solve this?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E
www.djangosnippets.org/snippets/1060/
You should look at the python documentation of datetime.timedelta, too.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message beca
except SomeModel.DoesNotExist:
...
or
m, created = SomeModel.objects.get_or_create(pk=request.user)
To my original question: Yes, I will use a signal handler to create the
profiles. Thank you
for your answers (Milian Andric).
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E
odels/fields/#db-index
Thomas
DB: Postgres 8.2
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gr
the handler, if created=True, create the associated user profile.
+
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
callback method the way, that it can be called
several times (for example: check if change was already done before
changing something)
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You
7;]) & Q
> (sandp__price__name__gte=request.GET['minprice']))
> styles = styles.select_related().filter(a) ### This is the
> line that is giving me the error!!
>
> Whenever I do a search where the user enters a minimum price and
> selects a sizeI get the error:
&
yourapp_yourmodel_id_seq ;
Thomas
thomasbecht...@googlemail.com schrieb:
> Hi all,
>
> Problem: I want to use Transaction to save data to a postgresql-db.
> Error: IntegrityError: doppelter Schlüsselwert (double keyvalue)
> verletzt (harm) Unique-Constraint
> ...
--
Thomas Guettler,
ccess control is no issue for me. All users can edit everything.
- liberal licence (at best BSD-like)
- of course: Django based.
is there already something like this?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler
that it's far from being mature or production ready, but is usable and
> I'm actively working on it. (I only started development about 2 or 3
> weeks ago.)
>
> See http://launchpad.net/timiki for getting the code. It's only in a
> bzr repository for now as it's not
re so that progress can be viewed:
> http://timikidemo.io41.com/
>
> Tim ^,^
>
>
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
7;^', include('myapp.urls')),
}}}
myapp.urls
{{{
urlpatterns = patterns('',
(r'^test/$', 'modwork.views.test.index'),
}}}
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~--
soon is the commit_on_success decorator sends COMMIT.
I guess I need to convert all commit_on_success decorators to
a new commit_on_success_unless_inside_transaction decorator.
Any idea how to solve this?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-gue
Hi,
django-tagging looks nice, but I need to have hierarchical tags:
animal / bird / eagle
Any idea: Hack/Update django-tagging, create own, use django-???
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
erse(*args, **kwargs):
return lazy_string(urlresolvers.reverse, *args, **kwargs)
}}}
from lazy import reverse
instead of
from django.core.urlresovlers import reverse
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-gue
my view files for
> *every* request, which makes the application unusably slow.
>
Please post your wsgi configuration. Do you have something like
maximum-requests=1?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (
" does not necessarily mean what it says. The error message is
> also displayed if there is an error in the the method.
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You rece
HI,
Maybe your apache starts a new child for every request?
...
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
ccess this view and a small middleware to render "403 forbidden" pages.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed
delete or rename it).
>
> Now you can edit your views_base.py and see the changes in action,
> without restarting Web Server (except of args of defs(request, args).
>
> >
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~---
string
to the subject. I just hit reply without removing it.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
mark schrieb:
> Hi All,
>
> i'am writing API for a service and i want to use basic http
> authentication for my service users.
>
>
I use this: http://code.djangoproject.com/ticket/689
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (
.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
values sent from db cursor? I found
> http://docs.djangoproject.com/en/dev/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running
> by this doesn't show anything. When they say "just do this", are they
> implying we should run that from a manage.py shell?
>
from myclass import MyClass
file myclass.py:
class MyClass(models.Model):
class Meta:
app_label='myapp'
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You
After adding widgets.css it works.
Is this a bug or an undocumented feature?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
end))
Maybe this snippet helps someone.
I guess it would be too much magic to change django, that range
searches with dates values on datetime columns get automatically expanded.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-
T parameter:
http://.../myview?mail_id=1&mail_id=2
In myview:
request.GET.getlist('mail_id') --> ['1', '2', ...]
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~
only returns '/myview/'.
Is this a bug in the docs, code or in my brain?
docs for reverse():
http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-gue
k (and adds the http://servername/) should be callable within
http context, too.
I can live with the current algorithm. But maybe the documentation
of reverse() could be enhanced.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-gu
h.read(), attach.content_type)
> mail.send()
> except Exception, e:
> raise ValueError, e
> request.user.message_set.create(message="Mail sent successfully.")
> return HttpResponseRedirect('../')
>
> The problem here is if I s
diff orig.sql new.sql
Now you need to now a little SQL to write the correct "ALTER TABLE ..."
statements.
But must of the time it is not that difficult.
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli
anvas(buffer)
> pdf = buffer.getvalue()
> buffer.close()
> response.write(pdf)
> -
> attach = pdf
> mail = EmailMessage(subject, message, sender,[send_to])
> mail.attach(attach.name, attach.read(), attach.content_type)
>
meppum schrieb:
> Is there an equivalent?
>
>
>
This page explains form and field validation:
http://docs.djangoproject.com/en/dev/ref/forms/validation/
HTH,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-g
>> cStringIO.StringIO(d)
>>>>
> Traceback (most recent call last):
> File "", line 1, in
> TypeError: expected read buffer, dict found
>
> My conclusion is that my client.py imports StringIO from cStringIO,
> which doesn't accept a d
first.
If you have read and understood the python tutorial, you can ask
yourself (or google)
if you want to try postgres instead of mysql. If this is solved, install
your
favorite database and open your web browser:
http://docs.djangoproject.com/en/dev/
HTH,
Thomas
--
Thomas Guettler, ht
.org/snippets/1026/
Of course it only works for views that you created. It does not change
the breadcrumbs of the admin page.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received t
Hi,
> MEDIA_URL = 'D:/workspace/isiscore/media/
That's not a URL. A URL looks like 'http://myserver/' or '/media/'
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~-
ch result into SQL's BETWEEN:
You can use datetime.timedelta(minutes=fudge_minutes) to compute the
start and end times of your target time.
http://docs.djangoproject.com/en/dev/ref/models/querysets/#range
On unix you would set up a cron-job which gets called very N minutes.
Does this help you
self and the entry in the permission table
is not done yet.
Any suggestions?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
;
you call login() inside login():
> def login(request ,template_name):
>
...
> login(request, v)
>
I guess you mean user.login()
HTH,
Thomas
--
Thomas Guettler, http://www.thom
de.
If you are on unix, go to /var/lib/apache2 and execute 'ls -ltr'
(sort logfiles by date). There should be some error log file. Maybe
this contains some more information.
BTW, mod_wsgi is much better supported and easier to handle than mod_python.
Thomas Güttler
--
Thomas Guettl
_create_sql(sid))
[Fri Jan 16 11:16:57 2009] [error] [client 172.17.6.34]
ProgrammingError: current transaction is aborted, commands ignored until
end of transaction block
Has someone a hint how to fix this?
Thomas
--
Thomas Guettler, http://www.
pre-fill form data without the form
> automatically calling submit on the form so that the validation
> messages don't appear in the rendered template?
>
>
>
Hi,
Check the docs for "initial".
Thomas
--
Thomas Guettler, http:
e displayed
> in the form when they view the page. Since the form definition doesn't
> have access to the request object, I presume this is not possible.
>
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~-
url(qs)
else:
next='>'
last='>>'
if page.has_previous():
qs['page_number']=page_number-1
prev='<' % qs2url(qs)
qs['page_number']=1
first='<<' % qs2url(qs)
else:
Tim Daniel schrieb:
>
> On 22 ene, 16:17, Thomas Guettler wrote:
>
>> Tim Daniel schrieb:> I read something that it would be more
>>
>>> efficient to store only the query and doing pickle?? I don't know how
>>> to do that, I've b
session) would be better for
caching, since all users share one cache:
example:
if the first user calls this:
http://.../myprojec/.../page_number=1&tag=abc
and a other user calls the same URL, you could use a cache
for the second request.
Thomas
--
Thomas Guettler, http://www.thom
ME'] or
settings.FOO.
I never used a logging.conf file.
HTH,
Thomas
BTW: This is a pure python question. You get more and better answers
on the newsgroup comp.lang.python.
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli
thanks again,
>
>
URLs are beautiful if they don't change (you can bookmark them) or send
as them link.
Sessions get deleted sooner or later.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~-
course this would be nice for all N:M relations.
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
import urlencode
to create the string after the question mark.
BTW, I think urlencode has a bug:
http://code.djangoproject.com/ticket/9089
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You
#x27;,
> {'token':token, 'id':id})
> return render_to_response('html/404.html')
>
> Is there a neater way of doing this - rather than finding the request
> type and behaving differently depending.
>
> I am d
ons can be written in some hours if you are familiar with
django. And very complex things can be done, too:
Welcome to python and django
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
suggest that if you set max_entries to zero, _cull() is not called.
Before I open a ticket, I ask for feedback.
Anyone?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this
t encoder
> encoder.JSONEncoder().encode(ret)
Or this:
>>> from django.utils import simplejson
>>> simplejson.dumps(...)
But unfortunately this does not encode datetime objects.
Thomas
--
Thomas Guettler, http://www.thomas-g
ate, this isn't an issue with orphaned connections or
> anything like that. The script loops through some files, parses them,
> and makes ORM calls. Sooner or later, it stops looping and gets stuck
> in a transaction and the only way to fix
y all the variables in the
> email?
>
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
ready something
like this.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
sions of the Python Windows msi installer, for
> example 2.5.4, I could run the following command from the windows cmd
> prompt (or from inside my build script):
>
> msiexec /a C:\python-2.5.4.msi /qn TARGETDIR=C:\python
...
--
Thomas Guettler, http://www.th
n would be this: subclass User and override delete() and use this
class for
as foreign key.
But I would prefer a different solution.
[1] http://code.djangoproject.com/ticket/7539
Add ON DELETE and ON UPDATE support to Django
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: gue
1 - 100 of 353 matches
Mail list logo