On 03-Nov-07, at 8:57 PM, Sander Dijkhuis wrote:
> I often have to reload one project because I've updated the code.
> Currently, I use `/etc/init.d/apache2 reload`
why dont you do apache2ctl graceful?
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~--
FWIW, the Python 2.5 source code violates its own documentation if
this is in some way meant to define a standard. That is, in zip and
bz2 modules, they raise IOError's with only a string value and no
errno.
Graham
On Nov 4, 9:32 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> FWIW, it has bee
Also, note that I just put up a new patch for adding a
DurationField[1] and I just blogged about it as well.[2] Hopefully
this will help you out.
-Gul
[1] http://code.djangoproject.com/ticket/2443
[2] http://gulopine.gamemusic.org/2007/11/storing-passages-of-time.html
--~--~-~--~~--
More likely then to be an application issue than something with
mod_wsgi.
Beyond wrapping the WSGI entry point for Django and dumping out
request headers and response headers and confirming that any cookie
stuff is correct, not sure what to suggest.
Graham
On Nov 3, 11:23 am, "Tiger Uppercut" <
You might at least try mod_python 3.3.1 instead of the older
mod_python 3.2.10. The newer version fixes a lot of problems including
memory leaks.
Graham
On Nov 4, 10:48 am, Eugene Morozov <[EMAIL PROTECTED]> wrote:
> Hello,
> I've applied patch from #2070 and I have disastrous result. I'm trying
On Nov 4, 2:27 am, Sander Dijkhuis <[EMAIL PROTECTED]> wrote:
> On our Apache server, we're hosting multiple Django projects. The
> Apache configuration is like this:
>
> PythonAutoReload Off
>
> ServerName first.example.com
>
> SetHandler python-program
> Set
On Sun, 2007-11-04 at 04:08 +0100, Stefan Foulis[spiderware gmbh] wrote:
> 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 d
On Sat, 2007-11-03 at 21:40 -0500, Tim Chase wrote:
[...]
> I know it's generally bad form to change
> configuration settings between testing/development/production,
> but such isolated changes make appropriate functionality
> available when needed and remove it when a proven solution works.
Well
On 11/2/07, crybaby <[EMAIL PROTECTED]> wrote:
> I want to display the form even when the user is not logged in, but
> want to allow them to do form submission. So when they post the data,
> @login_required decorator is called on one of the view functions. Now
> user logs in and I want the earli
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:
f
I guess you have to use session to store the data, check if user is
authenticated inside the view, if not redirect to login page. Also set
the hidden input type so that after the logging in, it will be routed
back to the original view.
--~--~-~--~~~---~--~~
You re
Malcolm,
Thanks for taking the time to look into my questions.
>> I'd like to build some automated tests as I go along, but I'm not
>> sure how to go about building a test harness that creates a
>> temporary model with my field-type, creates a table in the DB
>> with that field in it, and then p
Hello,
I've created a django website where I sell many different products,
that differ by color, manufacturer, size, price, shape, etc... I'm
wondering what the best way to implement a search box would be. I'd
want this search box to return only the products that relate to what
the user searches
On Sat, 2007-11-03 at 14:32 -0700, Sean Perry wrote:
> I have a html form which will create an instance of a model plus its
> m2m relations. So you have something like:
>
> MainModelField1
> MainModelField2
> MainModelField3
> ...
> m2mModelField1a, m2mModelField1b, m2mModelField1c
> m2mModelFi
On Sat, 2007-11-03 at 10:58 -0500, Tim Chase wrote:
> Using this section of the Master Class notes found here
>
> http://toys.jacobian.org/presentations/2007/oscon/tutorial/#s103
>
> I've been working to create a custom field-type for consolidating
> some of my work that was previously duplicate
On Sat, 2007-11-03 at 08:38 -0700, Dokter Bob wrote:
> Dear people,
>
> After upgrading our Django distribution we found that it seems
> inpossible to log out of the admin interface.
> Are we the only ones experiencing this problem? Should I file a bug?
Logout works fine, in general (I just test
On Sat, 2007-11-03 at 13:13 +, omat wrote:
> Here is the traceback:
>
> Traceback (most recent call last):
> File "update_feeds.py", line 171, in process_feed
> process_entry(entry, fpf, feed, postdict)
> File "update_feeds.py", line 119, in process_entry
> feed.tags))
> File "/
On Sat, 2007-11-03 at 14:51 +, omat wrote:
> I have experimented both with the subject and the message. They both
> expose the same problem when the name contains non-ascii chars.
>
> As a hack, I started using the slug field instead of the name field
> both in the message template and the su
On Sat, 2007-11-03 at 13:06 -0500, Carl Karsten wrote:
> birkin wrote:
> > This issue of how to best organize private and local django settings
> > came up at a recent hackfest I attended. Some googling revealed
> > postings by Adrian and others that essentially noted that it's
> > reasonable to a
> So is my only solution to read and serve the file
> using django ? Or is there a mod_python extension that can do this
> more efficiently ?
Perhaps Amazon S3 would serve your needs?
http://www.amazon.com/gp/browse.html?node=16427261
--~--~-~--~~~---~--~~
You r
I have a custom security model, where users are given object level
permissions on html pages etc. However I have large media files which
I would like to control access to. For example I have a video file
which I want to serve only to certain users if they have permission.
If I serve using static_s
Hello,
I've applied patch from #2070 and I have disastrous result. I'm trying
to upload a 12Mb PNG file. Apache starts eating memory rapidly,
consuming several Gb in seconds and I have to kill it (if I have
enough time to log in as root and find pid of the httpd process).
I'm using Django trunk (
Hello,
I've applied patch from #2070 and I have disastrous result. I'm trying
to upload a 12Mb PNG file. Apache starts eating memory rapidly,
consuming several Gb in seconds and I have to kill it (if I have
enough time to log in as root and find pid of the httpd process).
I'm using Django trunk (
I fixed it by reinstalling Django. I still don't know what the problem
was, but it's working now :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-u
FWIW, it has been noted as an issue with mod_python that using IOError
directly isn't good, although for slightly other reasons.
https://issues.apache.org/jira/browse/MODPYTHON-92
That it isn't using IOError correctly in as much as no errno is
present adds to why it shouldn't do as it is. It
I have a html form which will create an instance of a model plus its
m2m relations. So you have something like:
MainModelField1
MainModelField2
MainModelField3
...
m2mModelField1a, m2mModelField1b, m2mModelField1c
m2mModelField2a, m2mModelField2b, m2mModelField2c
...
hidden_count
In my view
When I use a DateTime field in my model, the admin automatically
creates a little javascript date picker.
How do I get the same date picker in my user forms? I am using the
form_from_model method with newforms.
Thanks!
/alex
--~--~-~--~~~---~--~~
You received th
On Nov 2, 2007, at 6:02 AM, James Bennett wrote:
> Personally I wonder if this is due to a conception that the *project*
> is somehow the deliverable; I can understand how that conception would
> be easy to form from the documentation, and I've suggested more than
> once that the docs should empha
Breakpoint works if you set it and run in debug mode (click the bug
button, not the play button), don't run it in run mode and expect
breakpoint to work. That's what I was doing.
Now I have one more problem:
I have selected a form object and a variable to watch and set the
breakpoints, but when
>
> def clean_guess_the_number(self):
> if self.max_number > self.cleaned_data['guess_the_number']:
Change that to:
if self.max_number < self.cleaned_data['guess_the_number']:
> raise forms.ValidationError('Your Number have to be lower
> or equal to Max Number.')
>
tnx, works even with internationalized data!
Damir
On Nov 3, 7:38 pm, RajeshD <[EMAIL PROTECTED]> wrote:
> > Question is how to show query from database on template with localized
> > output
>
> Try this in your template (assuming p is a person model instance
> available to your template):
>
>
Take a look at your Tag model's __unicode__ method (or paste your Tag
model here). I suspect that's where the problem is.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
> Question is how to show query from database on template with localized
> output
Try this in your template (assuming p is a person model instance
available to your template):
{{ p.get_gender_display }}
See: http://www.djangoproject.com/documentation/db-api/#get-foo-display
Also, another sugge
It's still a bit early in GeoDjango's life and functionality.
Conversation has been occasional and with a relatively small number of
participants.
I haven't heard any complaints about the topics for discussion. I
agree that GIS stuff may be a bit out of scope for dj-u, but as it
pertains to bugs
lets say i have a model
from django.utils.translation import ugettext_lazy as _
class Person (models.Model):
GENDER = (
(0, _('Male'),
(1,_('Female')
)
name = models.CharField(maxlength=100)
gender = models.IntegerField(choic
lets say i have model
.
.
class Person (models.Model):
CHOICE = ( (0,_("m"),
(1,_("f"))
gender = models.IntegerField(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
On 11/3/07, omat <[EMAIL PROTECTED]> wrote:
> "repr(sbj)"= str: u'new tag: Arkada\u015flar\u0131n'
The str: prefix on that looks a little odd. I'm also confused how you got
repr(sbj) if (as according to the traceback) the exception occurs on the
line preceding the assignment of sbj?
What exact
birkin wrote:
> This issue of how to best organize private and local django settings
> came up at a recent hackfest I attended. Some googling revealed
> postings by Adrian and others that essentially noted that it's
> reasonable to assume that different programmers will choose to handle
> this dif
I have the same problem, breakpoint is not working when you set it
inside eclipse and call the urls from the browser. This is how I have
my setup:
c:c:\my_web_projects\mysite <- this folder contains the stuff like
manage.py, settings, apps folder for each apps
My breakpoint and watching variab
Why is there no list specific to GeoDjango? ... I am sure the rest of
the general Djangonauts don't need to see discussions about
Projectsions, EPSG codes and the like ;) Can we just set one up on
google groups?
Jeff
On 11/3/07, tlp <[EMAIL PROTECTED]> wrote:
>
> You can post to list and put Geo
This issue of how to best organize private and local django settings
came up at a recent hackfest I attended. Some googling revealed
postings by Adrian and others that essentially noted that it's
reasonable to assume that different programmers will choose to handle
this differently, and, as Malcol
You can post to list and put GeoDjango in the subject line.
- Travis
On Nov 3, 9:17 am, "Jeffrey Johnson" <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
>
> Is there a specific group or list for users of GeoDjango. We just
> started an implementation, and I want to know where I can turn to for
> hel
Using this section of the Master Class notes found here
http://toys.jacobian.org/presentations/2007/oscon/tutorial/#s103
I've been working to create a custom field-type for consolidating
some of my work that was previously duplicated across several
models. The field-type in question is a "Parti
I originally planed to go there, but O'Reilly conferences are simply
too expensive so I had to reschedule my November :-/
On 11/2/07, RKnobelspies <[EMAIL PROTECTED]> wrote:
>
> If there´s interest i could offer to arrange a Django meet-up next
> week alongside the conference schedule. Feel free
Dear people,
After upgrading our Django distribution we found that it seems
inpossible to log out of the admin interface.
Are we the only ones experiencing this problem? Should I file a bug?
If you have any questions regarding our setup please ask.
Thanks,
Dokter Bob
--~--~-~--~~-
On our Apache server, we're hosting multiple Django projects. The
Apache configuration is like this:
PythonAutoReload Off
ServerName first.example.com
SetHandler python-program
SetEnv DJANGO_SETTINGS_MODULE first.settings
PythonInterpreter first
Hello everybody,
I whipped up a new widget/field pair to allow a user to upload
multiple files in one shot using newforms. It also allows the user to
add more file input boxes if more files need to be uploaded. I've
written more about it on my blog [1]. It's a first attempt, so I'd
love some f
I have experimented both with the subject and the message. They both
expose the same problem when the name contains non-ascii chars.
As a hack, I started using the slug field instead of the name field
both in the message template and the subject and it works fine, but
the problem is still there.
.
.
.
.Brigitta Bulgari free video clips. Movie gallery
.
.
.
.Brigitta Bulgari scene 1
.
. http://lika.quotaless.com/video1.html
.
.
.
.Brigitta Bulgari scene 2
.
. http://lika.
On 11/3/07, omat <[EMAIL PROTECTED]> wrote:
>
>
> Here is the traceback:
[snip]
So, it is during the rendering of the template that things go kerflooey:
File "/srv/django/sites/haberrobotu/aggregator/models.py", line 199,
> in mail_new_tag
> msg = t.render(c)
...in which case the conte
Hi Everyone,
Is there a specific group or list for users of GeoDjango. We just
started an implementation, and I want to know where I can turn to for
help and/or help others out.
Thanks,
Jeff
--~--~-~--~~~---~--~~
You received this message because you are subscri
On 11/3/07, crybaby <[EMAIL PROTECTED]> wrote:
>
>
> Validation checks the number entered by the user is between the range
> and this check is done in "def clean_guess_the_number". This is not
> working.
>
> Seems like "def clean_guess_the_number(self)" never executed when you
> post the data and
Typo: "str" in "isinstance(str, unicode)" should be "sbj"
On 3 Kasım, 15:13, omat <[EMAIL PROTECTED]> wrote:
> Here is the traceback:
>
> Traceback (most recent call last):
> File "update_feeds.py", line 171, in process_feed
> process_entry(entry, fpf, feed, postdict)
> File "update_fee
Here is the traceback:
Traceback (most recent call last):
File "update_feeds.py", line 171, in process_feed
process_entry(entry, fpf, feed, postdict)
File "update_feeds.py", line 119, in process_entry
feed.tags))
File "/srv/django/common/tagging/managers.py", line 39, in
update_tags
Validation checks the number entered by the user is between the range
and this check is done in "def clean_guess_the_number". This is not
working.
Seems like "def clean_guess_the_number(self)" never executed when you
post the data and when form.is_valid() called.
class GuessForm(forms.Form):
On Sat, 2007-11-03 at 07:01 -0500, James Bennett wrote:
> On 11/3/07, omat <[EMAIL PROTECTED]> wrote:
> > sbj = u'new tag: %s' % (instance.name)
>
> You might want to read this:
>
> http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickChecklist
>
> There's a warning a
On Sat, 2007-11-03 at 11:41 +, omat wrote:
> Hi All,
>
> I have a function that sends mail to managers every time a new tag is
> created, connected to post_save of a Tag model via dispatcher.
>
> def mail_new_tag(instance):
> t = loader.get_template('app/new_tag_email.txt')
> c = Con
On 11/3/07, omat <[EMAIL PROTECTED]> wrote:
> sbj = u'new tag: %s' % (instance.name)
You might want to read this:
http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickChecklist
There's a warning about using this style of string interpolation under
Python 2.3 which may
Hi All,
I have a function that sends mail to managers every time a new tag is
created, connected to post_save of a Tag model via dispatcher.
def mail_new_tag(instance):
t = loader.get_template('app/new_tag_email.txt')
c = Context({'tag': instance})
msg = t.render(c)
sbj = u'new t
On Sat, 2007-11-03 at 03:55 -0700, [EMAIL PROTECTED] wrote:
> i want to filter some object related to current logined user in
> forms.py, the key code is:
> choices = [(str(x.id), x.name) for x in
> Category.objects.filter(user__id__exact=request.user.id)]
>
> but i got this error:
> Exception T
i want to filter some object related to current logined user in
forms.py, the key code is:
choices = [(str(x.id), x.name) for x in
Category.objects.filter(user__id__exact=request.user.id)]
but i got this error:
Exception Type: NameError
Exception Value:global name 'request' is no
RajeshD wrote:
>
> On Nov 2, 4:05 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I am sure there is something absolutely simple, but I guess I am missing it.
>> I need to display some content/ news articles over 3 columns on a home page,
>> where the order is latest stories coming in
Thanks,
I shall try this
Ramdas
On 11/3/07, RajeshD <[EMAIL PROTECTED]> wrote:
>
>
> Disregard the overflow:hidden piece in my CSS above. It's not needed:
>
>
> .article {width:32%;float:left;}
> .clear_all {clear:both;}
>
>
> >
>
--~--~-~--~~~---~--~~
You receiv
Hi,
Please click the link to find the concept for Earthquake resistant
building...
http://www.createthefuturecontest.com/pages/view/entriesdetail.html?entryID=533
Thanks
Anand
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
64 matches
Mail list logo