On Sep 17, 11:39 am, Karen Tracey wrote:
>
> http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody
>
> Karen
Excellent! Thanks Karen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hello,
I have a user who is trying to upload a large file (> 50MB) to our
Django application. The error that they are getting is:
Request Entity Too Large
The requested resource
/ri/agent/orders/create/
does not allow request data with POST requests, or the amount of data
provided in the request
Hi,
I use custom permissions in my application and do not use the default
permissions. How do I disable the automatic creation of the default
permissions (i.e. when manage.py syncdb is called), while still
enabling creation of custom permissions?
TIA
--~--~-~--~~~---~
On Jul 8, 6:29 am, Jarmo wrote:
> If someone can help me understand what I need to send up in the HTTP
> headers, I would greatly appreciate it.
You need to send the 'sessionid'. It's in request.COOKIES.
--~--~-~--~~~---~--~~
You received this message because yo
On Jul 8, 5:26 am, Bastien wrote:
> I would like to
> have the control of every checkbox the same way I can control the
> fields of a form
I think the easiest way to do this is to create a custom widget.
Here's what I did:
class CheckboxSelectMultiple(widgets.CheckboxSelectMultiple):
"""Simpl
On Jun 11, 8:49 pm, "thsut...@gmail.com" wrote:
>
> This has been trivial in every other framework I've used and I'm sure
> it is in Django as well, but I'm completely stumped. Is there any way
> to do this which doesn't require that I write custom code for every
> form and/or checkbox in my pro
On Jun 10, 10:48 am, NealWalters wrote:
> So I stored the list into my bigtable database. The user goes to page
> 2 or 3 of a five page form, then goes back to the first page where the
> languages were, and now, I need to show the same languages checked
> that he user checked when he was origina
On Jun 10, 2:48 pm, Rowan wrote:
> Here is an English description of what I want to achieve:
> "People who have received mails with tag T, excluding mails in threads
> that they started themselves"
Have you tried using Q objects?
Person.objects.filter(
Q(received_mails__tags=T) & \
!Q(
On Jun 11, 8:43 am, Francis wrote:
> If a link an image in ProductPage and then delete the image later, the
> admin site will tell me that it would also delete the ProductPage. I
> tried it, and it got deleted.
I don't use the admin site that much, but this behavior strikes me as
wrong.
A work
On Jun 11, 6:56 am, shradha wrote:
> hi,
>
> I have created a django application , where my model class is
>
> class Developer(models.Model):
>
> developer_id=models.CharField(primary_key=True,max_length=30)
> developer_name = models.CharField(max_length=100)
> project_id = models.For
On Jun 11, 8:03 am, phoebebright wrote:
> I have spent a good deal time researching this online and in this
> group but can find no clear answer.
I think the reason why is that it depends on what you want to do.
> My instinct is that I should use the former, but do I really have to
> go and wri
On Jun 11, 8:08 am, Francis wrote:
> Is it possible to disable recursive delete?
>
> Because I have some pages models that has a m2m relationship with an
> image/video table. But if I delete an image, I don't want it to also
> delete the page.
I don't think recursive delete is enabled in m2m rel
On Jun 11, 3:13 am, Shuge Lee wrote:
> For some reason, I want to create a static file after user change
> record of DB with admin view, I need to use
> signalhttp://docs.djangoproject.com/en/dev/topics/signals/#topics-signals
Yeah signals would work well.
--~--~-~--~~~-
Have you tried using Django forms? (http://docs.djangoproject.com/en/
dev/topics/forms/)
--~--~-~--~~~---~--~~
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@googlegr
On Jun 10, 6:09 am, Joshua Partogi wrote:
> How do we add request.user.message_set for Anonymous user?
I would imagine that you would play with session data instead to store
that information (see
http://docs.djangoproject.com/en/dev/topics/http/sessions/).
--~--~-~--~~
On Jun 10, 7:59 am, NealWalters wrote:
> Can someone advice if this is the optimal solution?
It's a hard to help you find a solution when you don't try to state
your problem. Just reading your code, it seems if you want to set a
single image depending on what language was selected. Is that all
On Jun 4, 2:45 pm, Matt wrote:
> It looks like you're right and the login page isn't actually logging
> users in.
>
> Any idea why that might be? I'm using the auth.login view and a
> template that looks like this:
Your template code looks fine.
> Any thoughts on what might be going on here?
I get frustrated when I go to an older thread and someone has a link
to dpaste, but the paste no longer exists. The whole point of the
thread is to keep the solution of a particular issue available for
posterity (or at least for a year). Dpaste, by default, doesn't allow
for this[1].
I think usin
On Jun 3, 10:30 am, "eric.frederich" wrote:
> Is there a technical reason that this can't be done? I noticed I can
> set LOGIN_URL in settings but it seems weird that everything else in
> the system seems to work fine except this one piece.
I have to do this as well. But I don't use named url
On Jun 2, 5:00 pm, Matt wrote:
> //views.py
> from django.template import RequestContext
> def detail(request):
> ...
> context = { 'employees': employees, 'entityinfo': entityinfo}
> return render_to_response('results/resultstable.html',
> context_instance=RequestContext(request, conte
> I am trying to figure out if there is a way to pass additional context
> to a template from the view, say I have made a contact page but this
> page needs to access a form, currently I don't know how I would be
> able to do that, that is, to pass the form context to whatever
> template the Page
On Jun 3, 8:20 am, Bastien wrote:
> Yes it seems to be the logical solution. And does this override the
> save() method? I guess yes so I'll have to save the entire form by
> hand.
Well it only overrides the save method if you are using a ModelForm.
If you are, then you don't need to necessarily
On Jun 3, 2:09 am, Bastien wrote:
> Hi,
>
> I have a form where the user chooses her activity and then I
> automatically fill the category field in the database according to her
> activity. My question is where should live the code that do that? I
> want it to be triggered once the user hits th
On Jun 3, 1:16 am, vishy wrote:
> for templates - I had given absolute path of directory on windows,
> for database(using sqlite) - just the name.But, for deployment I had
> to change both the paths. Is there any way which I can avoid this?
>
> thanks
Another method is to sniff the hostname:
fr
Here's my workaround, if anyone else is interested how to overcome
this problem:
http://www.pastie.org/497309
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
How do you create a model form that contains a reverse many-to-many
relationship?
My attempt:
http://pastie.org/497284
failed:
AttributeError: 'RelatedObject' object has no attribute 'unique'
--~--~-~--~~~---~--~~
You received this message because you are subs
Unless things have changed, Django only supports one database
connection at a time. So, you should put them all in one database.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
Hello,
I have been using a Django snippet (http://www.djangosnippets.org/
snippets/901/) to authenticate over LDAP with our Active Directory.
It's been working fine without SSL, but I am having some problems
getting it up and running with SSL. I have the SSL certificate (base
64 encoded) for our
On Sep 24, 5:05 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> > > To really get to the problem, you may need to start up Apache in
> > > single process mode and run it in a debugger. For details see:
>
> > >http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_C...
So I tried mo
I'm trying to switch a field from using the RadioSelect widget to a
HiddenInput widget and am getting the following *template* error:
AttributeError: type object 'Hidden' has no attribute 'attrs'
Here's my code
class MyForm(forms.ModelForm):
date_choice = forms.ChoiceField(choices=[('today',
> The problem is most like because some other Apache module, eg. PHP or
> mod_auth_ldap, is loading an incompatible version/variant of LDAP
> client libraries before the Python ldap module does.
>
> Thus, check what versions of LDAP client libraries Python ldap module
> is compiled against and the
Did you switched from Apache + mod_python to Lighttpd + FCGI? If so,
are you sure it wasn't a problem with mod_python versus Apache in
general? I'm having some issues with mod_python unrelated to
geodjango. It seems there are certain modules that work in the python
interpreter that will cause Apac
Hello,
I am having a problem when using python-ldap with Apache. I added an
authentication backend based on ldapauth.py, and it works fine when
running from the Django server. However, when I use Apache I get the
following error in the Apache error.log:
child pid 2941 exit signal Bus error (10)
Here's my experience with ldapauth.py[1] with AD:
Here is the basic settings[2]:
LDAP_SERVER_URI = 'ldap://ldap.company.com:389'
First of all it seems AD LDAP is pretty picky. I had to play with
several different settings until I found something that worked. There
are two ways to determine the
On Jul 16, 6:19 am, Dan <[EMAIL PROTECTED]> wrote:
> I'm starting the project in two weeks, hopefully, it will be merge then.
Don't worry about it being merged with trunk. From what I understand
changes from trunk are merged into newforms-admin branch on a weekly
basis (that is, if they are follo
On Jul 13, 6:10 am, Darthmahon <[EMAIL PROTECTED]> wrote:
> Alex,
>
> I don't understand what you mean by that? message.users.all prints out
> a list of users based on the many to many. I just want to check if the
> current user is in message.users.all - are you saying I can't because
> I am passi
I had an interesting problem today.
I had some records that were missing in the auto-admin list of one of
my models. The count was correct, but the records were simply not
displayed. When I did a select query from the command line they all
showed up just fine; some of them were simply missing fro
On Jun 16, 9:46 pm, "Ronny Haryanto" <[EMAIL PROTECTED]> wrote:
> Another way (which I personally prefer because it's more explicit and
> clear), is to do it in the view. Don't show the author field in the
> form, because we want to automatically add it before saving.
>
> def add_item(request):
>
On May 20, 3:24 pm, "Gene Campbell" <[EMAIL PROTECTED]> wrote:
> I have used Jira, and I'm looking at Trac today. Is there something
> more Djangonic?
+1 for Trac, especially the latest version: 0.11 (currently in RC 1)
now that they have easy_install it should be no problem getting it
running
In the meantime I did the following:
def save(self):
try:
self.score = int(self.score)
except:
pass
super(Entry, self).save()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
On May 22, 6:29 am, "Scott Moonen" <[EMAIL PROTECTED]> wrote:
> I suspect your problem may be due to the fact that your display value for 3
> is a number rather than a string. Try changing:
>
> CHOICES = [(1, '1'), (2, '2'), (3, 3), (4, '4'), (5, '5')]
>
> to
>
> CHOICES = [(1, '1'), (2,
> > Are you listening on both ports? Check httpd.conf and make sure it has
> > something like this:
>
> > Listen 80
> > Listen 8080
>
> Oh yeah, that's all taken care of. The "test site" is working fine on
> port 8080, separate from the regular port 80 site. My problem is that
> if I change the
On May 21, 4:31 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote:
> How can I access this information from the code?
It's in the request:
http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
--~--~-~--~~~---~--~~
You received this
On May 21, 2:05 pm, Chris <[EMAIL PROTECTED]> wrote:
> I wasn't saying that django was performing bad practice, I was just
> curious as to why id over classes.
>
> Thanks for the input.
>
Well if you are using AJAX it's necessary to have the id of an html
element set, so that the javascript func
Hello I have the following code in my model:
class SomeMode(models.Model):
CHOICES = [(1, '1'), (2, '2'), (3, 3), (4, '4'), (5, '5')]
score = models.IntegerField(choices=CHOICES)
When I change the score in the admin interface it throws this error:
an integer is required
I think this
On May 21, 4:10 pm, Jason <[EMAIL PROTECTED]> wrote:
> Hey folks--
>
> I'm trying to set up a mirror instance of Django on our webserver,
> having grown tired of bringing our whole site down every time I'm
> debugging new code.
Why aren't you debugging on your local machine?
> I've got an Apac
On May 21, 3:07 pm, nobody <[EMAIL PROTECTED]> wrote:
> Thanks!
>
No problem. Good luck.
--~--~-~--~~~---~--~~
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@googl
On May 21, 2:51 pm, nobody <[EMAIL PROTECTED]> wrote:
> I'm going through the "Writing your first Django app" tutorial on
> djangoproject.com but I'm not getting very far, unfortunately.
ok
> >>> p = Poll.objects.get(pk=1)
> >>> p.choice_set.create(choice='Not much', votes=0)
>
> Traceback (most
On May 21, 1:27 pm, Bret W <[EMAIL PROTECTED]> wrote:
> Hey all-
>
> Over the past few evenings, I've put together a simple site for
> submitting and listing job and salary information.
>
Congratulations!
My comments:
* I like the simple design, although some color would be nice.
* There's no
Hello, I'm using the photologue application and would like to redirect
the base site (i.e. '') to 'pl-gallery-list'.
/urls.py
... snip ...
urlpatterns = patterns('',
(r'^photologue/', include('photologue.urls')),
# Uncomment this for admin:
(r'^admin/', include('django.contrib.admin.u
On May 6, 4:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> Well - there is one other way: the default argument on a field. For example:
>
> position = models.IntegerField(blank=True, default=1)
>
> You can also pass a callable:
>
> from datetime import datetime
> ...
> pub_date =
On May 6, 10:40 am, Alen Ribic <[EMAIL PROTECTED]> wrote:
>
> Not to sure though how one registers these signals.
>
This seems somewhat comprehensive:
http://www.mercurytide.co.uk/whitepapers/django-signals/
--~--~-~--~~~---~--~~
You received this message becaus
On May 6, 10:20 am, Alen Ribic <[EMAIL PROTECTED]> wrote:
> > Is there a way I can specify that
> > this code should run only when a model is first saved?
>
> in save() method, you can check if this is a new model like so:
> if self.instance.pk is None:
> # new model
> else:
> # existing
ing the save() method. Within your save, run the pre-save work
> and then return the super.save().
>
> I have suggested a pre_save / post_save hooks for ModelForm with some
> code recently
> here:http://groups.google.com/group/django-developers/browse_thread/thread...
>
> -Alen Ribi
I'd like to set some attributes to some default values before the
model is created. Here's what I have so far:
slots_available = models.IntegerField(blank=True)
position = models.IntegerField(blank=True)
def save(self):
if slots_availalbe == None:
slots_available
55 matches
Mail list logo