Read that patch, but considering that this has not been merged, I
think are soem known issues with this patch. Reading it, I cant figure
out, what the pros, cons are. Any help?
Suppose I do not apply this patch, the is there some way to specify
that django not accept any file above a fixed size.
Hi all,
I'm a bit of a Django noob, coming from -- shudder -- PHP. I'm trying
to make an Ajax page that saves data from a form with a view that
requires authentication. This page also needs a lot of data that
depends on the user. I can't figure out how to get all this data back
together in a way
On Sat, 2008-02-23 at 21:21 -0800, Zack wrote:
[...]
> Why doesn't
> >>> f = TestPersonForm()
> >>> f.as_p()
> have labels generated for all the CharFields as defined in
> PersonField?
Because that's not how MultiWidget works.
You can see from the code that the labels on widgets are created by
SEX GIRLS REMOVE DRASS SEX LIVE
SEX GIRLS REMOVE DRASS SEX LIVE
http://friendfinder.com/go/g945440
SEX GIRLS REMOVE DRASS SEX LIVE
http://adultfriendfinder.com/go/g945440
SEX GIRLS REMOVE DRASS SEX LIVE
http://alt.com/go/g945440 (www.alt.com)
SEX GIRLS REMOVE DRASS SEX LIVE
Hi,
If I have these custom field, widget, and form:
class PersonField(forms.MultiValueField):
def __init__(self, *args, **kwargs):
fields = (
forms.CharField(label='Title'),
forms.CharField(label='First name'),
forms.CharField(label='Middle
Seems .decode('cp1252') fixed everything.
http://effbot.org/zone/unicode-gremlins.htm
Explains some if it.
On Feb 23, 10:36 pm, Michael Newman <[EMAIL PROTECTED]> wrote:
> I have a strange error that I was hoping someone could help with. I
> have a large project that I have incorporated a
I have a strange error that I was hoping someone could help with. I
have a large project that I have incorporated a search functionality
using swish-e. Everything works great until I go to render it to a
template. On some debugging I get a variable that says it has a
length, but no word count and
I am running Mac OS X 10.4, Python 2.4.4, MySQL 14.7 Distrib. 4.1.22
I receive the following error:
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback
Drew Raines wrote:
> Michael Hipp wrote:
>
> [...]
>
>> But I have lots of "data" files that live in and around my Django
>> code and I have to access with them with stuff like:
>>
>> f = open("somedir/myfile.dat", 'r')
>>
>> So how do I make those lines look like that instead of having a
Graham Dumpleton wrote:
> On Feb 24, 11:08 am, Michael Hipp <[EMAIL PROTECTED]> wrote:
>> Malcolm Tredinnick wrote:
>>
>>> On Sat, 2008-02-23 at 16:02 -0600, Michael Hipp wrote:
Where in my Django code files can I set the current working directory
(so that it applies to all my code)?
Michael Hipp wrote:
[...]
> But I have lots of "data" files that live in and around my Django
> code and I have to access with them with stuff like:
>
> f = open("somedir/myfile.dat", 'r')
>
> So how do I make those lines look like that instead of having a bunch of
> absolute paths stuck
$www.200836.com--- why we buy Peking 2008 Olympic Games―
souvenirs
1 low price
2 best quality-- licensed products by Peking Organizing Committee
3 many products to choose
4 most precious―limited circulation
5,we accept all payment methods,such as paypal,credit card,
telegraphic
Hi
I'm using PyAMF with Django. I've just got started with it. My
Django CMS I've setup currently exports XML using render_to_response
to a template in my views.py:
import django.http as http
import django.shortcuts as shortcuts
import models
def xml(request):
# References to Model
I am building a site for a customer, a restaurant owner, who wants to
be able to edit virtually all of the text on the site, including the
home page introductory text, etc. It would be simple enough to create
a model with a single field like this
On Feb 24, 11:08 am, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Malcolm Tredinnick wrote:
>
> > On Sat, 2008-02-23 at 16:02 -0600, Michael Hipp wrote:
> >> Where in my Django code files can I set the current working directory
> >> (so that it applies to all my code)?
>
> >> I'm trying to make sure
Malcolm Tredinnick wrote:
>
> On Sat, 2008-02-23 at 16:02 -0600, Michael Hipp wrote:
>> Where in my Django code files can I set the current working directory
>> (so that it applies to all my code)?
>>
>> I'm trying to make sure that all paths in my Python code are relative
>> paths. But I
On Sat, 2008-02-23 at 15:22 -0800, Lee Hinde wrote:
> Hi;
>
> For an app that describes Wine Competitions, I have a model that
> includes:
>
> class Awardswon(models.Model):
> competition = models.ForeignKey(Competition,
> verbose_name="Competition")
> wine = models.ForeignKey(Wine,
Hi,
I'd like to use the manager method
Tag.objects.usage_for_model(MyModel,
filters=dict(field1__exact='value1')) from the django tagging
application. In my case MyModel has as attribute a foreign key to the
User model.
My problem is that I'd like to filter out the authenticated users (and
in
Hi;
For an app that describes Wine Competitions, I have a model that
includes:
class Awardswon(models.Model):
competition = models.ForeignKey(Competition,
verbose_name="Competition")
wine = models.ForeignKey(Wine, verbose_name="Wine")
awardname = models.ForeignKey(Awardname,
On Sat, 2008-02-23 at 16:02 -0600, Michael Hipp wrote:
> Where in my Django code files can I set the current working directory
> (so that it applies to all my code)?
>
> I'm trying to make sure that all paths in my Python code are relative
> paths. But I think I need to know where I can put
On Sat, 2008-02-23 at 06:42 -0800, PB wrote:
> When trying to add 46.229253 to a floatfield
> I get displayed error:
>
> Please enter a valid decimal number with a whole part of at most -19
> digits
>
> Any ideas?
What happens when you do enter a float with negative nineteen (or fewer)
There is a ticket related to this: http://code.djangoproject.com/ticket/2070
there is a patch that based on the comments should work.
On Feb 23, 2:48 pm, shabda <[EMAIL PROTECTED]> wrote:
> I have a form which allows users to upload files.
>
> The form is,
> class AddFileForm(forms.Form):
>
Where in my Django code files can I set the current working directory
(so that it applies to all my code)?
I'm trying to make sure that all paths in my Python code are relative
paths. But I think I need to know where I can put the cwd change so that
it runs when Django first comes up.
I'm on
Prophet Muhammad the last Messenger in the Bible
http://www.islamhouse.com/p/51912
What the Bible Says About Muhammad
http://www.islamhouse.com/p/53040
According to the Bible, God said to Moses, on whom be peace: I will
raise up for them a prophet like you from among their brothers; I will
put
I have a form which allows users to upload files.
The form is,
class AddFileForm(forms.Form):
"""Add a file."""
filename = forms.FileField()
I am using S3 to store files, my view is something like,
if request.method == 'POST':
addfileform = bforms.AddFileForm(request.POST,
On Feb 23, 9:29 am, Thierry <[EMAIL PROTECTED]> wrote:
> SQL alchemy looks really great.
> And there's even a plugin for Django:http://code.google.com/p/tranquil/
>
> Does anyone here have any experience with implementing this?
> I was thinking of using it for the read operations only.
>
>
http://code.google.com/p/django-assetpackager/
http://www.djangosnippets.org/snippets/405/
http://www.djangosnippets.org/snippets/524/
Cheers
-Brian
On Feb 23, 7:02 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Sat, Feb 23, 2008 at 8:26 AM, Thierry <[EMAIL PROTECTED]> wrote:
> > I've
On Sat, Feb 23, 2008 at 8:26 AM, Thierry <[EMAIL PROTECTED]> wrote:
> I've recently made the switch from Symfony to Django.
> Some interesting code here :)
> When searching around I can't seem to find any javascript and css
> minifier and combiner.
> Can anyone recommend a good one?
Just a
Thats it!
Cheers.
On Feb 17, 2:36 pm, char101 <[EMAIL PROTECTED]> wrote:
> On Feb 17, 8:50 pm, PB <[EMAIL PROTECTED]> wrote:
>
> > File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> > python2.3/site-packages/django/core/management.py", line 1284, in
> > run_shell
> >
When trying to add 46.229253 to a floatfield
I get displayed error:
Please enter a valid decimal number with a whole part of at most -19
digits
Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
SQL alchemy looks really great.
And there's even a plugin for Django:
http://code.google.com/p/tranquil/
Does anyone here have any experience with implementing this?
I was thinking of using it for the read operations only.
Greetz,
Thierry
--~--~-~--~~~---~--~~
Hey,
I've recently made the switch from Symfony to Django.
Some interesting code here :)
When searching around I can't seem to find any javascript and css
minifier and combiner.
Can anyone recommend a good one?
Cheers,
Thierry
--~--~-~--~~~---~--~~
You received
Hey Guys
I'm using the django filebrowser (http://code.google.com/p/django-
filebrowser/) for my django site. When I run it on my local server
using Apache and mod_python I don't have any problems. But when I
attempt to use the filebrowser through fastcgi I get the error global
' _' not defined.
Sorry guys. Brain Freeze. I'm not trying to upload a form, i'm trying
to upload a FILE ... oops.
On Feb 23, 12:31 pm, dbee <[EMAIL PROTECTED]> wrote:
> So I'm trying to upload a form with oldforms, which in itself seems
> tricky enough. But I've also got the added 'benefit' of using multiple
>
So I'm trying to upload a form with oldforms, which in itself seems
tricky enough. But I've also got the added 'benefit' of using multiple
models ...
MODEL:
# Store the people who need reminding of
things
class TeleInt (models.Model):
# Which client does this correspond
to ?
Hmmm ok, can't get this to print anything. When trying to print the
threads array it does this:
[, []]
[, []]
So, it is looping through my friends properly, but it not getting
their threads. To be honest, ideally I just want to print a list of
all the threads my friends are in, and not a list
Thanks, man! That helped me out!
On 23 Feb., 01:54, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2008-02-22 at 16:49 -0800, Carl wrote:
> > Hi there,
>
> > I don't find a solution to this problem even if it sounds quite simple
> > to me. I want to inspect a model, that means a class
I thought I would chime in here as well, having a good deal of code written
for WordPress, and now some experience with Django.
I had originally contemplated the same idea, create a plugin system like
that of WP until I started to understand the power of applications. In my
mind it would be a
38 matches
Mail list logo