Hi,
I have a text file being written by another process on a server which
I want to watch for changes. Each time a change occurs I'd like to
read the new data and send it to client . Any suggestions will be
valuable . Using Django,Python
Tazim.
--
You received this message because you are subsc
Hallöchen!
shacker writes:
> On Jun 15, 11:43 am, Torsten Bronger
> wrote:
>
>> First you need a functional specification for your project,
>> i.e. "must have"'s and "nice to have"'s. Size and agility of the
>> community as well as documentation are important, too. Then you
>> can filter a lit
On Tue, Jun 15, 2010 at 9:11 PM, johan de taeye
wrote:
>
>> You can't do this with a router; as you've noted, the router doesn't
>> have any information about the request in which it is being used.
>>
>> However, you could do it by manually requesting your database
>> connection whenever you use t
On Jun 16, 9:16 am, Chris Seberino wrote:
> I found the Apache error for this mod_wsgi error that only appears the
> first time I reload an app after restarting Apache
>
> [Tue Jun 15 18:12:39 2010] [error] [client ] request
> failed: error reading the headers, referer: http://
That error f
On Jun 16, 12:45 am, Chris Seberino wrote:
> On Jun 14, 7:02 pm, Graham Dumpleton
> wrote:
> > Use WSGI script described in:
>
>
>
> > http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
>
> In mod_wsgi's defense, remember that this error happens sporadically
> and is NOT
On Wednesday 16 June 2010 01:37:02 shacker wrote:
> It depends what your "zoom level" is. For example, the org's questions
> may be questions like:
>
if it is drupal/joomla vs plone
> - In which system can we get our site up the fastest?
plone
> - Which system will be the most flexible if we ne
On Tuesday 15 June 2010 21:41:56 shacker wrote:
> These comparisons are not only possible, they're essential for a boss
> or a company trying to decide on their next platform. Only us geeks
> say things like "They can't be compared." Of course they can.
>
in which case compare drupal/joomla with
I found the Apache error for this mod_wsgi error that only appears the
first time I reload an app after restarting Apache
[Tue Jun 15 18:12:39 2010] [error] [client ] request
failed: error reading the headers, referer: http://
--
You received this message because you are subscribed to the Go
On 15 Jun., 18:21, Joel Klabo wrote:
> I guess what I'm am trying say is that I was under the impression that
> when you go to a URL, a view is called. And only one view can be
> called per URL.
Yes, one page -> one URL. Some page elements can have their own URL
, , etc...
> And that view nee
On 15 Jun., 18:17, Joel Klabo wrote:
> Thanks, good info. So the template tag can do the DB query and all
> that without going through a view function?
Yes, see the query in the example code I posted:
profiles = UserProfile.objects.order_by('user__date_joined')
[:self.limit]
cheers
Paul
>
>
On Jun 15, 11:43 am, Torsten Bronger
wrote:
> First you need a functional specification for your project,
> i.e. "must have"'s and "nice to have"'s. Size and agility of the
> community as well as documentation are important, too. Then you can
> filter a little bit. But most established framew
Hi Dmitry, hi Ian,
thanks for the help.
I got it to work. Here is what I am doing.
Django gets a request for "/data.json". A view function is called.
This is my function:
def data(request):
return HttpResponse(subsampling(), mimetype='application/javascript')
subsampling() is an iterator
Hallöchen!
shacker writes:
> [...]
>
> These comparisons are not only possible, they're essential for a
> boss or a company trying to decide on their next platform. Only us
> geeks say things like "They can't be compared." Of course they
> can.
Well, somewhat.
First you need a functional specif
On Jun 15, 7:14 am, gentlestone wrote:
> sorry for disturb - I'm lazy to create a new topic - another bug in
> Oracle Back-End is about using queryset.only() - there are wrong value/
> field indexing
Please submit a bug report at:
http://code.djangoproject.com/simpleticket
When creating the tic
Thanks for both these great answers. After thinking about it, I think
either way I go I'll need to modify both the add and delete methods.
The linked list seems more natural to me, but since my writers will be
using the interface, the sequence number may be a better choice for
them. More to think
On Tue, Jun 15, 2010 at 7:56 AM, bruno desthuilliers
wrote:
> On 14 juin, 22:17, Lee Hinde wrote:
>> This started off as a pagination question, but then I realized it was
>> a different issue:
>>
>> Given:http://dpaste.com/hold/207217/
>
>
> u = notes.filter(Q(recipient__user = id) |
> Q(store
Hi Tim,
You can probably override the Chapter model's delete method. Inside
this overridden delete method you can swap around your FK's of
previous and next chapters before calling the super classes delete.
Basically do your linked list management inside the delete method
before the calling the su
On Jun 15, 5:11 pm, Tim Arnold wrote:
> Hi,
> I have a model for a Book that contains Chapters. My problem is
> figuring out the ordered sequence of Chapters in a Book. I first tried
> setting Chapter up as a linked list with pointers to the previous
> Chapter and next Chapter. That worked okay, b
Hi all
I have a bunch of users from one of our subscribers who all have
invalid local parts to their email addresses.
Eg:
åsak.østerga...@example.com
jan-åke.hammarstr...@example.com
Django assumes that all the addresses are valid, and so coerces them
to strings, which of course then blows up w
I guess what I'm am trying say is that I was under the impression that
when you go to a URL, a view is called. And only one view can be
called per URL. And that view needs to serve all of the data for that
page. It seems like there is a way to have multiple views being
rendered simultaneously. Is i
Thanks, good info. So the template tag can do the DB query and all
that without going through a view function?
On Jun 15, 8:09 am, Paul wrote:
> On 15 Jun., 06:55, Joel Klabo wrote:
>
> > I am working on a simple site right now and the views are pretty easy.
> > Usually just iterate a loop of ob
On Jun 15, 3:50 am, justin jools wrote:
> The previous author is right Django is a framework to build systems
> and not an already built system like a Content Management System, like
> Joomla. If you do want a comparison you have to compare a Django built
> CMS like :http://www.django-cms.org/.
T
Hi,
I have a model for a Book that contains Chapters. My problem is
figuring out the ordered sequence of Chapters in a Book. I first tried
setting Chapter up as a linked list with pointers to the previous
Chapter and next Chapter. That worked okay, but when I need to delete
a Chapter, the prev/next
On 15 Jun., 06:55, Joel Klabo wrote:
> I am working on a simple site right now and the views are pretty easy.
> Usually just iterate a loop of objects. But, I am trying to figure out
> how a website with all different kinds of data, including a sign in
> form, is setup in django. Is that all in
Hi!
What's the best way to generate a QR code in a view?
I saw a snippet to generate it in a template, but I don't know if it's the
best way. I need to generate on-fly codes from database info...
This is the snippet: http://djangosnippets.org/snippets/1494/ perhaps, I can
send data to the tmepla
On 14 juin, 22:17, Lee Hinde wrote:
> This started off as a pagination question, but then I realized it was
> a different issue:
>
> Given:http://dpaste.com/hold/207217/
u = notes.filter(Q(recipient__user = id) |
Q(store_as_text="All")).distinct()
u = notes.filter(recipient__user = id)
Thanks to the 'unknown' user for the reply. This is probably what I'm
looking for. I think I have had a glance at it while searching the
Django Docs but I don't think I fully understood it. I do now and will
give it a go tomorrow morning!
--
You received this message because you are subscribed to
Someone e-mailed me a reply, and I thought I'd make it public before I
reply.
What you could do is use manual transaction management and do
something like:
@transaction.commit_manually
def my_view(request):
...
try:
my_form.save()
except MyFormException:
# thrown when validati
On Jun 14, 7:02 pm, Graham Dumpleton
wrote:
> Use WSGI script described in:
>
> http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html
In mod_wsgi's defense, remember that this error happens sporadically
and is NOT a showstopper as a reload makes it go away completely
(until a
> here is my code in change_form.html
>
> {% extends "admin/change_form.html" %}
... and ...
> Caught RuntimeError while rendering: maximum recursion depth exceeded
You try to extend template with itself.
--
You received this message because you are subscribed to the Google Groups
"Django us
Okay I think I will do both though, since I prefer not to have special
wierd chars in my url's and filenames.
So I think I will
1. take contact to my hosting provider for correct setup.
2. use a filter function that removes special chars from the uploaded
file's filenames
I attempted to write tha
sorry for disturb - I'm lazy to create a new topic - another bug in
Oracle Back-End is about using queryset.only() - there are wrong value/
field indexing
seems to be Oracle is not a Django (or an Open Source) favorite
environment
can I somewhere found another similar Oracle Back-End issues? Goog
> You can't do this with a router; as you've noted, the router doesn't
> have any information about the request in which it is being used.
>
> However, you could do it by manually requesting your database
> connection whenever you use the database. For example:
>
> Author.objects.using('otherdb').
On Tue, Jun 15, 2010 at 8:18 AM, MichaelHjulskov wrote:
>
> My good friend just told me to take a look here and define a function
> on upload_to that filters special chars from filenames.
>
>
> http://docs.djangoproject.com/en/1.2/ref/models/fields/#django.db.models.FileField.upload_to
>
> Do you
On Tue, Jun 15, 2010 at 4:56 AM, MichaleHjulskov wrote:
> Im sorry to say that I only understand some of these technical terms.
> I really try to, but its very geeeky from my perspective.
> (My Django inviroment is hosted at djangohosting.ch)
>
> So I hope that you (or someone else) will explain
Hi Karen
My good friend just told me to take a look here and define a function
on upload_to that filters special chars from filenames.
http://docs.djangoproject.com/en/1.2/ref/models/fields/#django.db.models.FileField.upload_to
Do you aggree? Would that be the an appropriate solution to solve th
On Tue, Jun 15, 2010 at 7:12 PM, johan de taeye
wrote:
> Hello,
>
> In my application a number of databases are configured with identical
> schemas.
> From a dropdown box on the screen, the user selects the database he/
> she wants to work with. The selected database is stored on the
> cookie.
>
I didn't work with multidb but I think it is possible anyway... try it using
additional middleware... for example.. change dynamically db settings...
etc
On Tue, Jun 15, 2010 at 2:12 PM, johan de taeye wrote:
> Hello,
>
> In my application a number of databases are configured with identical
> sch
can anyone help me?
On 14 jun, 15:45, Waleria wrote:
> I need to save the values of f in a columm and the values of Sfase in
> a other columm for de
> exemple:http://www.srl.caltech.edu/~shane/sensitivity/asteroids/scg_8564.dat
>
> On 14 jun, 15:20, Waleria wrote:
>
> > look my code:http://
On Jun 15, 6:43 am, Saikek wrote:
> Hello *,
>
> I've encountered a problem. I have a Match (football) which contains
> relationship one-to-many with Goals.
>
> class Match(models.Model):
> title = models.CharField(max_length=150)
> body = models.TextField()
> ...
>
> class Goal(models
On Tuesday 15 June 2010 11:13:11 Saikek wrote:
> What is the easiest\smartest way to enable adding Goals from Match
> page ? I've read about Inline, but it doesnt works, because in this
> way we will have loop import.
>
easiest way is to make a custom form covering both models, preferably outside
As your site gets bigger, as mine does, you can choose to split up
your views over multiple .py files based on e.g. functional sections.
I recently created a file named views_admin.py. Following the Django
docs, I also named files based on contents. So a mydecorators.py, etc
( the my.. prefix is to
Hey everyone..
I was trying to customize django's admin interface but a problem has
occurred.
here is my code in change_form.html
{% extends "admin/change_form.html" %}
{% block form_top %}
Insert meaningful help message here...
{% endblock %}
and here is the error
TemplateSyntaxError a
Hello *,
I've encountered a problem. I have a Match (football) which contains
relationship one-to-many with Goals.
class Match(models.Model):
title = models.CharField(max_length=150)
body = models.TextField()
...
class Goal(models.Model):
player = models.ForeignKey(Player)
mo
Interesting, thanks Venkatraman. Just finishing up the tutorial at this
point. Will look at that page.
On Tue, Jun 15, 2010 at 1:32 PM, Venkatraman S wrote:
>
> On Tue, Jun 15, 2010 at 3:54 PM, Sithembewena Lloyd Dube <
> zebr...@gmail.com> wrote:
>
>> @Venkatraman, wouldn't urls.py need views.p
On Tue, Jun 15, 2010 at 3:54 PM, Sithembewena Lloyd Dube
wrote:
> @Venkatraman, wouldn't urls.py need views.py to map to?
>
Depends on how you have structured your app and what is the functionality of
your app.
Refer to http://www.djangobook.com/en/2.0/chapter11/ how you can simply
avoid views.p
Hello,
In my application a number of databases are configured with identical
schemas.
>From a dropdown box on the screen, the user selects the database he/
she wants to work with. The selected database is stored on the
cookie.
An object with the same primary key can be created in each schema by
t
Hello,
i'm pleased to announce the second release of django-modeltranslation, a
Django app used to translate dynamic content of existing models to an
arbitrary number of languages without having to change the original model
classes.
It uses a registration approach (comparable to Django’s admin
The previous author is right Django is a framework to build systems
and not an already built system like a Content Management System, like
Joomla. If you do want a comparison you have to compare a Django built
CMS like : http://www.django-cms.org/.
I don't know the reasons for your comparison but
The previous author is right Django is a framework to build systems
and not an already built system like a Content Management System, like
Joomla. If you do want a comparison you have to compare a Django built
CMS like : http://www.django-cms.org/.
I don't know the reasons for your comparison but
The previous author is right Django is a framework to build systems
and not an already built system like a Content Management System, like
Joomla. If you do want a comparison you have to compare a Django built
CMS like : http://www.django-cms.org/.
I don't know the reasons for your comparison but
I have a site that has quite a few Django based pages plus login etc.
and I certainly had to structure the code over multiple modules. I
suggest that you do both a top-down and a bottom-up design (actually,
iterate between these).
Start with a top-down view which is the urls - list those and plan
@Venkatraman, wouldn't urls.py need views.py to map to?
On Tue, Jun 15, 2010 at 11:01 AM, Venkatraman S wrote:
>
> On Tue, Jun 15, 2010 at 10:25 AM, Joel Klabo wrote:
>
>> I am working on a simple site right now and the views are pretty easy.
>> Usually just iterate a loop of objects. But, I am
Hi,
we have several django applications in the same project and in one of
them, for some reason, we can't get the translated name for the model
form fields.
We have no idea why this application doesn't behave like the other
ones.
In order to see the translated label for the modelform field we ha
To use custom SQL see this for reference:
http://docs.djangoproject.com/en/dev/topics/db/sql/
To create a templatetag see this for reference:
http://docs.djangoproject.com/en/dev/howto/custom-template-tags/
On Mon, Jun 14, 2010 at 10:08 PM, Cole743 wrote:
> Hello again,
>
> My last question
On Tue, Jun 15, 2010 at 10:25 AM, Joel Klabo wrote:
> I am working on a simple site right now and the views are pretty easy.
> Usually just iterate a loop of objects. But, I am trying to figure out
> how a website with all different kinds of data, including a sign in
> form, is setup in django. I
By the way I have updatet to the latest release :o)
On 14 Jun., 01:22, Karen Tracey wrote:
> On Sun, Jun 13, 2010 at 6:18 PM, MichaleHjulskov wrote:
> > Hi Karen, I did not know there was a new release, sorry.
>
> > So if I just install the new release, it will solve the problem just
> > like t
Hi again Karen
Im sorry to say that I only understand some of these technical terms.
I really try to, but its very geeeky from my perspective.
(My Django inviroment is hosted at djangohosting.ch)
So I hope that you (or someone else) will explain a 1 2 3 procedure
for me to fix it, so that our use
> File "/usr/lib/python2.3/site-packages/sorl/thumbnail/utils.py",
> line 36, in all_thumbnails
> if os.path.isfile(os.path.join(path, file)):
>
> File "/usr/local/lib/python2.6/posixpath.py", line 68, in join
> path += b
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
Hello,
I have a situation where I would like to do some validation on a many-
to-many field in a model before it is saved. When the validation fails
the model should not be saved and result in an appropriate error.
However to be able to do anything with a many-to-many field the
primary key of the
60 matches
Mail list logo