Jeremy Dunck schreef:
>> Or i should be doing this in the settings file and importing this in my
>> files. But then again, i use utility classes and then those would have
>> to import settings to be able to use the same logfile. That doesn't feel
>> right.
>
> After you've done this setup code in
Drat! - I went into auto-reply mode there. You're quite right, it's
oldforms and I haven' updated it for the newforms framework (in fact, I
don't know where to start).
Tone
On Jan 25, 4:25 pm, "Michel Thadeu Sabchuk" <[EMAIL PROTECTED]>
wrote:
> Hi!
>
> > See
> > here:http://groups.google.com/g
Bram - Smartelectronix:
> Michael Radziej wrote:
>> Hi,
>>
>> there's a ticket with a patch about the order_by-Problem:
>>
>> http://code.djangoproject.com/ticket/2210.
>>
>> Does it help?
>
> Knowing it's broken helps a LOT :-)
> I'll try to see if it works w/ the patch.
Please report your resu
Essentially ak pointed out the error. It is expecting 8bit encoding and
the euro is apparently higher than 8 bits (i.e. 20AC is greater than
FF). Just keep plugging around (particularly from the shell & looking
at the db) and you'll probably find it.
-rob
On Jan 25, 10:12 pm, "Christian Schmidt
On 26 Jan., 06:37, "ak" <[EMAIL PROTECTED]> wrote:
> Same thing with national characters ...
> DEFAULT_CHARSET = 'utf-8'
This doesn't solve the problem. The errormessage still appears with the
same traceback.
Any other ideas?
--~--~-~--~~~---~--~~
You received th
Same thing with national characters ...
DEFAULT_CHARSET = 'utf-8'
I think this is a bug somewhere in newforms
On 25 Янв., 23:10, "Christian Schmidt" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've got a problem with putting non unicode signs into a mysql table.
>
> I get an UnicodeEncodeError when an
Joseph Toon wrote:
> My company is interested in building an e-commerce site, possibly built
>
>
Well, when you evaluate the options, take a look at satchmo
http://www.satchmoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Hi,
I had some time to work on the library today. Man, am I learning
about Django :)
So far everything seems to be working out nicely. Changes made since
the previous version:
Translations are cached now and only saved when the master object is.
This makes them behave more like real fields no
My company is interested in building an e-commerce site, possibly built
with Django. If your a developer or have a development team that would
like an opportunity to quote on this project, please email me for the
job requirements. Time frame is to go live in Fall 2007. Thanks!
--~--~-~--
Hi,
I've got a problem with putting non unicode signs into a mysql table.
I get an UnicodeEncodeError when an user puts the Euro Sign () in a
newform Textfield. The Exception raises when when Django want to write
into the MySQL Database.
Do I have to encode (or decode) the string before I put
Hi,
I have a models with a many2many field. I try to use it with
MultiChoiceField in newforms to.? But it doesn't work. I hve this
error :
Exception Type: TypeError
Exception Value:'categories' is an invalid keyword argument for this
function
args
()
f
kwargs
{'categories': [u'
On 1/20/07, Panos Laganakos <[EMAIL PROTECTED]> wrote:
> Indeed, that did it. Though, I'm curious, as there's already content in
> the posts table, shouldn't these show up as I've defined them in the
> template?
Do the Posts already in the table have their pub_date in the future,
by any chance?
Can you post the working urls.py file? Thanks.
On Jan 20, 1:22 pm, "Panos Laganakos" <[EMAIL PROTECTED]>
wrote:
> On Jan 20, 9:11 pm, "Guillermo Fernandez Castellanos"
>
> <[EMAIL PROTECTED]> wrote:
> > Maybe you need the allow_empty=True option in your urls.py.Indeed, that did
> > it. Though, I
Are you using Django's built in dev server? If so, please see the
doumentation concerning why the dev server doesn't serve static files
such as CSS/JPG/GIF/PNG.
I got around this by using Apache/mod_python as the web server...
Try to type the path to the file
On Jan 19, 3:19 pm, "rsie" <[EMAIL
I've got some float fields in my model that default to 0.0.
In my templates, it would be nice to use something like the "if" tag to
display something like "Not set". I do seem to be able to do this with
integer fields that default to zero.
Can I do this with a built-in tag ?
Chris
--~--~-
[EMAIL PROTECTED] wrote:
> It looks like it's because (as you said), I'm returning a string, in
> the exception... so how do I do that?
>
> def add_song(request):
> try:
> f = open('/path/to/songs/'+
> request.FILES['song_file']['filename'], 'wb') # wb = write binary
> f.writ
Answering my own question:
The widget can be declared as part of the field, e.g.
# Field
class MoneyField(MultiValueField):
def __init__(self, currency=(), amount=(), required=True,
widget=None, label=None, initial=None):
widget = widget or MoneyWidget(currency=currency,
amount=amou
I may have missed this in the docs, but using
Meta:
fields = ( { None : ('field2', 'field3', 'field1') }, )
fixes the order of the fields on the admin add page for that class, but
not the order under edit_inline. How would I do that?
Thanks,
Todd
--~--~-~--~~~--
Victor
On 1/25/07, Victor Quiroz <[EMAIL PROTECTED]> wrote:
>
> Is posible install django from egg file?
> Where download this egg file?
>
No, el egg de Django no funcionaba del todo bien y la
ultima versión que incluyó un .egg para ser descargado
fué la 0.90, eso lo podés ver aca:
http://www.
On 1/25/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
[snip]
>
> An object's behavior is determined both by its state (the
> self.__dict__ attribute) and its class (the self.__class__ attribute).
>
> reload() doesn't go change the __class__ of all the objects which were
> created before reload was
On 1/25/07, Victor Quiroz <[EMAIL PROTECTED]> wrote:
>
> Is posible install django from egg file?
> Where download this egg file?
>
Not directly, but this page explains the options for installing:
http://www.djangoproject.com/download/
--~--~-~--~~~---~--~~
You re
Is posible install django from egg file?
Where download this egg file?
PD. Excuseme not talk english
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djang
On 1/25/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> Well, there are a number of things going on here.
>
A demo of not changing existing objects:
>>> class X(object):
...: def y(self):
...: return 1
...:
...:
>>> x = X()
>>> x.y()
1
>>> x.x()
-
On 1/25/07, Tom Smith <[EMAIL PROTECTED]> wrote:
...
> from whatever.models import *
> site = Site.objects.all()[0]
> site.gsearch("fields")
>
> now at this point, if i get an error, because I have used "from
> xxx import yyy" ... I can't reload x or y... which means I have to
Well, there ar
Hi Christian,
I think you are right, I was using a PHP IDE as my editor and when I
reverted to Notepad, it showed a different layout. I modified it and it
worked fine. Really frustrating and such a waste of time.
Is there a popular IDE that makes editing quick and easy?
Tim
--~--~-~--
On 25/01/07, Håkan Johansson <[EMAIL PROTECTED]> wrote:
>
> On 20 jan 2007, at 17:36, [EMAIL PROTECTED] wrote:
> >
> > Håkan Johansson wrote:
> >
> >> While working on a complex form using 'newforms' I had some problem
> >> with 'initial' data.
> >> I have multiple forms using the 'prefix' argumen
It looks like it's because (as you said), I'm returning a string, in
the exception... so how do I do that?
def add_song(request):
try:
f = open('/path/to/songs/'+
request.FILES['song_file']['filename'], 'wb') # wb = write binary
f.write(request.FILES['song_file']['content'])
I'm probably missing some basic python convensions about importing
modules, but...I've been trying to work with my model and get it all
working before working with the views. Normally, when working with
normal python scripts I'd do something like this..
import google_utils as g
print g.sear
On 1/25/07, Benedict Verheyen <[EMAIL PROTECTED]> wrote:
...
> For instance, here are my settings for logging:
...
> logger = logging.getLogger('stats')
...
> Or i should be doing this in the settings file and importing this in my
> files. But then again, i use utility classes and then those would
Michael Radziej wrote:
> Hi,
>
> there's a ticket with a patch about the order_by-Problem:
>
> http://code.djangoproject.com/ticket/2210.
>
> Does it help?
Knowing it's broken helps a LOT :-)
I'll try to see if it works w/ the patch.
Thanks Michael,
- bram
--~--~-~--~~---
Hi!
> See
> here:http://groups.google.com/group/django-users/browse_frm/thread/3328829...
But this uses the oldforms library, it will be deprecated, isn't it?
Is there a way to achieve the same with newforms?
Best Regards,
Michel
--~--~-~--~~~---~--~~
You rec
Search Profiles - FREE! Intimate Dating. Start Chatting within seconds
- http://surl.in/HLMAT238206SVRAKSX
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
Search Profiles - FREE! Intimate Dating. Start Chatting within seconds
- http://surl.in/HLMAT238206SVRAKSX
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
Tipan wrote:
> def codeview(request):
> manipulator = CodeViewManipulator()
> if request.method == 'POST':
> new_data = request.POST.copy()
> errors = manipulator.get_validation_errors(new_data)
> if not errors:
>
> return HttpResponseRed
On 20 jan 2007, at 17:36, [EMAIL PROTECTED] wrote:
>
>
> Håkan Johansson wrote:
>
>> While working on a complex form using 'newforms' I had some problem
>> with 'initial' data.
>> I have multiple forms using the 'prefix' argument to get different
>> keys for them.
>>
>> As far as I know (*please*
I have a problem that is causing me some grief and I can't seem to
found a reason for it. I'm relatively new to Django and Python so it is
likely to be something simple.
I have a function that displays a form and some data from a table. If
the form data is correct, it generates some new lines of
See here:
http://groups.google.com/group/django-users/browse_frm/thread/3328829f1ed7f788/a980f983c5fc1bad
Cheers,
Tone
On Jan 25, 8:01 am, "Praveen Swaminathan"
<[EMAIL PROTECTED]> wrote:
> I am trying to write a form which has multiple elements. One of them is a
> Date field. How do I do it so
Fredrik Lundh schreef:
> Benedict Verheyen wrote:
>
>> In other apps, i use the logging module with a RotatingFileHandler, so
>> that i don't have to worry about log files getting to big.
>> Is there a way to use that package too?
>
> import logging ?
>
>
Well yes, but if i have to do that i
Yes, now I understand. You are doing form_for_model. That is
certainly an issue with the newforms library, likely due to the fact
that it is not finished. For now, you might do what I suggested, or
write a patch to build that functionality into newforms.
On Jan 25, 12:39 am, "ak" <[EMAIL PROTE
Benedict Verheyen wrote:
> In other apps, i use the logging module with a RotatingFileHandler, so
> that i don't have to worry about log files getting to big.
> Is there a way to use that package too?
import logging ?
--~--~-~--~~~---~--~~
You received this
Hi,
when i used the builtin web server, i did my debugging via print messages.
Now that the site has gone into production, i use Apache and so the
print messages
don't show up anymore.
Is there an easy way to reroute these messages to a file or console?
In other apps, i use the logging module wi
Hi,
there's a ticket with a patch about the order_by-Problem:
http://code.djangoproject.com/ticket/2210.
Does it help?
Michael
--
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100
http://www.noris.de - The IT-Outsourcing Company
--~
Is http://www.kindfish.com/
really Dajngo powered, including uploading?
Lad
On Jan 25, 3:54 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 1/24/07, carlwenrich <[EMAIL PROTECTED]> wrote:
>
> > Is there a quick and easy way for users to upload videos the way they
> > do it on you tube? Is the
Waylan Limberg wrote:
> Actually, as you have `related_name` set (to 'stats'), I believe this
> may be what you want:
>
> Book.objects.all().select_related().order_by('-stats__avg_rating')[0:10]
OK, as this failed as well, I made a clean example, from ZERO, and tried
it. Any ideas why this woul
Hello!
Can somebody remind me, whether it is possible to set verbose names
for a Django applications, so that these names would be shown at the
index page of the contributed administration? How to do it if it is
possible?
Regards,
Aidas Bendoraitis aka Archatas
--~--~-~--~~-
Via Zone-H News.
It appears that Saudi Arabia crackers managed to get the passwords of our
registrar (our registrant panel to be precise), accessed the domain
management page and changed the DNS entries, pointing the zone-h domain to
an IP address belonging to the crackers on which they mounted th
I am trying to write a form which has multiple elements. One of them is a
Date field. How do I do it so that it looks like an admin interface
--
Thanks and Regards
Praveen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
47 matches
Mail list logo