a.translations.create(field='bar', translated_text='nada',
> language=Language('Spanish'))
>
> You can get the text for a specific translation like this:
> a.translations.filter(field='bar', language=Language('Spanish'))
:-O
Would it
my fingers for some guy(s) with with
enough time and skills will bite the bullet and start coding.
And now I read what I wrote. Enough time *and* skills? That could be tricky ;-)
Cheers,
--
Carlos Yoder
http://blog.argentinaslovenia.com/
--~--~-~--~~~---~--~~
You r
Thank you Frankie.
I guess I'm OK with the i18n part of the idea. Not so sure about the
'best practises' to implement, though (that was the general idea of
this post).
But many thanks for the links anyway. Regards,
--
Carlos Yoder
http://blog.argentinaslovenia.com/
>> H
and I'm at a loss. I must admit I first too a look at Polyglot, a
plugin for Wordpress, but I really want to stay away from PHP and do
things right.
Could anyone help me a bit on how to approach this? Thanks a million,
and best regards,
--
Carlos Yoder
http://blog.argentinaslovenia.com/
--~
e, and also
temporarily renaming that ADMIN table, etc.
Thanks a lot! I'll keep you posted,
Carlos
On 10/27/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> OK, if we can narrow the possibilities down to a patch mistake, I can
> tell you what I did:
>
> cywgin
> go t
t; been applied correctly. Otherwise, you'd see a different error. Look
> at your \django\db\backends\ado_mssql\intropspection.py
> file. Does the logic in this file match the patch? If you are not
> sure, attach it to the email and I'll take a look at it.
>
> Sean
>
ou post the entire traceback? I don't see this behavior with SQL
> > Server 2000 or MSDE. I may have to get a copy of SQL Server 2005.
>
> I can, the full traceback is rather long:
>
> E:\test>python manage.py syncdb
[snip snip sn
range models' order
> # * Make sure each model has one field with primary_key=True
> # Feel free to rename the models, but don't rename db_table values or field
> name
> s.
> #
> # Also note: You'll have to insert the output of 'django-admin.py
> sq
_testing'
DATABASE_USER = '*'
DATABASE_PASSWORD = '***'
DATABASE_HOST = '192.169.5.8'
DATABASE_PORT = '1433'
Hope this sheds some light!
Best regards and thank you.
On 10/26/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> As soon as I get to
tem and server are
> you using?
>
> You should be able to use either manage.py in the project directory or
> django-admin.py in the directory below the project directory.
> Remember to run django-admin.py with the --settings option so it knows
> where to look for your sett
at this ticket: http://code.djangoproject.com/ticket/2358.
> >
> > I combined that previous patch (2563) with 2358 because my patch was
> > dependent on it. Make sure that you've applied the latest patch
> > (mssql_update5.diff) to your Django installation. If you still
; > Thanks,
> >
> > Sean
> >
> > * Note: the patch relies on the changes in
> > http://code.djangoproject.com/ticket/2358
> >
> >
> >
> > > >
> >
>
--
Carlos Yoder
http://blog.argentinaslovenia.com/
--~--~-~--~~~--
; solution compelling. Thanks for detailing. Plus Im sure that there will
> lots of places where this type of Signals method would be handy.
>
> MerMer
>
>
> >
>
--
Carlos Yoder
http://blog.argentinaslovenia.com/
--~--~-~--~~~---~--~--
started coding webpages by hand back in '96, with CGI (bash), Perl,
PHP, and then ASP (because of market share), and finally I've been
forced to work in ASP.NET for the last 3 years or so. Don't get me
wrong, I prefer C# over VBScript any day, but I was longing for the
sa
bsolute
essence (we do price comparisons for a big catalogue of products).
Has anybody tried to tackle this yet? At all? It's the whole deal:
MSSQL database (I know, I know), IIS6+, C#, a lot of very specific
code, etc.
Is there hope, doctor?
--
Carlos Yoder
http://blog.a
;user'] = request.user
> errors = manipulator.get_validation_errors(new_data)
>
> or this:
>
> new_data = request.POST.copy()
> new_data['user_id'] = request.user.id
> errors = manipulator.get_validation_errors(new_data)
>
> patrick.
>
>
like:
... because it won't work, and you'll get all sorts of crazy errors.
Trust me, I've been there!
Thanks all, and once again, the Django community rocks!
--
Carlos Yoder
http://blog.argentinaslovenia.com/
> Here you go Gábor, it's three views. my_data(request) find out
= {}
# This makes sure the form accurately represents the
fields of the object.
new_data = manipulator.flatten_data()
form = forms.FormWrapper(manipulator, new_data, errors)
rc = RequestContext(request, {
'form': form,
thing, but honestly I'm now sending the
'user' value from request.user's context.
As to changing to a ChangeManipulator, that'd solve part of the
problem only, no? In any case, it's another thing to try out.
Thanks a million, again!
--
Carlos Yoder
http://blog.arge
rocesses, that actually doesn't do much -- and have a real
cron running every minute. It'd give your user a sense of control, but
honestly, it'd be just smoke and mirrors.
I know, I know... =)
--
Carlos Yoder
http://blog.argentinaslovenia.com/
--~--~-~--~~---
nd.
I know, I sound like Luke Skywalker on A New Hope, sorry about that!
Regards,
--
Carlos Yoder
http://blog.argentinaslovenia.com/
-- Forwarded message ------
From: Carlos Yoder <[EMAIL PROTECTED]>
Date: Oct 5, 2006 10:19 AM
Subject: Manipulators problem
To: django-user
rote:
> > in my django app, at some point i have to send out a LOT of emails
> > (several thousand).
> >
> > ...
> >
> > so, are there any other, more elegant/simpler solutions?
>
> put data into DB table, and then have some script on cron which se
=False, default=True)
receive_modif_cars_newsletter = models.BooleanField("Subscribed to
daily 'new cars' newsletter?", null=False, blank=False, default=True)
def __str__(self):
try:
return ("%s"
for column `user_id`Does this run deeper than I thought?Thakns a million for your help,CarlosOn 10/4/06,
Carlos Yoder <[EMAIL PROTECTED]> wrote:
Hello guys,I'm experiencing a weird thing. On my production setup, an OperationalError exception is being triggered while trying to invoke a
Hello guys,I'm experiencing a weird thing. On my production setup, an OperationalError exception is being triggered while trying to invoke an AddManipulator.I've zeroed in down to this (excerpt of my view follows)
def userprofile_add(request): """ Handle adding new userprofiles (one2one rel to U
Just FYI, I cracked it myself.Me gets smarter! =)If anyone googles for this and is in a similar situation, pls let me know.On 10/3/06, Carlos Yoder
<[EMAIL PROTECTED]> wrote:
Hello all, I'm asking for help again, this time with related objects.I need to do what I think is a very
Hello all, I'm asking for help again, this time with related objects.I need to do what I think is a very simple task: allow users to edit their own preferences (using a custom 'admin' like interface).Their own preferences are located in an extension of the User model, as follows:
class UserProfile(
In lieu of using a manipulator for this simple task, you could use yourown HTML form. Have your form submit to a view method that grabs your
product's id/slug from the request.POST MultiValueDict and performs anupdate of your model as needed.Rajesh, thank you very much! I knew it was overkill. Nama
Hello djangonauts!I'm facing the task of writing my first manipulator, and they look extremely cool -- (un)fortunately, my needs are extremely simple. I must allow users to 'reserve' a certain product, by just clicking on a button, which in turn would only need to modify a couple fields in the DB (
>> Any recommendations? I'm brand new to Python and want to learn for
>> use with Django.
> The "Learning Python" O'Reilly book is really, really good - one of
> the best "Learning X" books I've read for any language.
Even better tha
d share it with the world
-- it just took too much effort NOT to do it (imagine all sorts of
silly quirks flying around at the same time).
So there, I'm happy I managed! =)
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received
nteractions in your Django model
> classes your database logic will all be in the same place and
> maintenance should be simple.
>
> Cheers,
>
> Simon
> >
>
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You r
t sl translation
> don't have
> Plural-Forms defined.
>
> --
> Neboj¹a Ðorðeviæ - nesh
Hvala Neboj¹a!
Unfortunately, I believe there's a couple of caveats still here, but
this is definitely a source to investigate!
Regards,
--
Carlos Yoder
http://carlitosyoder.blogspot
OK, I fixed it, by defining a 'computed' method that returns the int
value in str form. So silly!
def prva_registracija_mm_str (self):
return str(self.prva_registracija_mm)
Ohwell :-)
On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> Forgot to s
the
Meta.js property.
Ideas? Help much appreciated,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
t uploaded and saved via admin, but when trying to
accessing them I get:
Page not found:
d:\dev\python23\lib\site-packages\django-0.95-py2.3.egg\django/contrib/admin/media\cars/alfa145_.jpg
That path certainly looks suspicious... ideas?
Mil gracias,
--
Carlos Yoder
http://carlit
he end of the page.
Do you know of a way to configure and alter this behaviour?
Mil gracias,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&q
I guess I found a lead at tests\modeltests\m2m_intermediary\
if anyone knows if that's correct (or wrong as hell), please let me know :-)
On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I'm building a sort of b2b app that lists a car catalogue.
=models.HORIZONTAL)
... but that's not what I mean. I need the special prices to be unique
to Car and Wholesaler.
Could anyone be so kind as to shed some light on how to do this, the Django way?
Mil gracias,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~--
model is not an
> option.
>
> I've been trying all kinds of permutations of filter, entries, count,
> gt, etc, such as:
> Blog.objects.filter(entries__count__gt = 0)
>
> No luck so far.
>
> Can somebody please help me?
>
> Thanks,
> Daniel
>
>
>
Forgot to say, I have the same logic working with no problem, but for
a CharField, so this issue must be related to the field's datatype...
On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> I'm using a object_detail generic view to display some da
I'm sure this is a very
common task (expanding admin choices), isn't it?
Best regards and big thanks,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
gable into
contrib?
Thanks for all the feedback, and I'll get back to work :-)
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gro
Russel, I wrote my last comment before seeing yours. Just so that you know :-)
On 7/14/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> > > The problem is that it's not 1, 2, 3, 4 and others :-). For Russian it's:
> > >
> > > 1 form, if it ends with 1 but
#x27;re stuck
with a dictionary?
Honestly I never saw a proper implementation of a pluralize function,
that was universal enough... can we get a shot at this, at all?
OTOH, the dictionary approach Ivan mentioned would still have to be in
place, since nouns of different genders
a universal way of doing
this -- languages are the very definition of diversity! :-P
What do you think, Russell?
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
nybody done sth like this before? Any clues?
Best regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
g like this
[snip] [snip] [snip]
> And then adding new words that I need to form as necessary.
Interesting... it was kind as I though it'd be. With all my newbie
questions being answered as I thought they would, Django is becoming a
much warmer place :-)
Spasiva! =)
eady faced this?
Best regards and thanks in advance,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
t; })
> >
> > And the template you only need to display the form fields.
> >
> >
> > Search by:
> > Model: {{ filter_form.model }}
> > Gorivo: {{ filter_form.gorivo }}
> >
> >
> >
> >
> > The custom manipulator and associated for
www.no-ip.com
!
On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I have not static ip :(
>
>
> >
>
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subs
ist,
'selected_model_id':selected_model_id,
'selected_gorivo_id':selected_gorivo_id,
'results': results
})
There must be a better way of doing this, right? I'm a terrible newbie
both at Python and Django -
verbose_name_plural = "Modeli"
ordering = ['znamka','opis']
Like a charm, it works.
=)
On 7/13/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> >> class Item(models.Model):
> > > name = models.Charfield(maxlengt
.opis)
class Admin:
list_filter = ['znamka']#
sidebar with handy filters
class Meta:
verbose_name_plural = "Modeli"
ordering = [
> > not Django's fault, but related to sysadmins' ignorance). We *really*
> > need to think of a "providing Django support" tutorial for sysadmins,
> > as we discussed briefly in the last few days... otherwise a lot of
> > people would be scared away from D
I get smarter just by writing to
> this group :)
>
> All I had to do was add the local path of MySQLdb to my .fcgi file
> under my web root directory. So:
> sys.path += ['/homedir/pythondir']
>
>
> >
>
--
Carlos Yoder
http://carlitosyoder.blogspot.
;s fault, but related to sysadmins' ignorance). We *really*
need to think of a "providing Django support" tutorial for sysadmins,
as we discussed briefly in the last few days... otherwise a lot of
people would be scared away from Django because it's "too hard"
o my box in Bluehost. Can
anythone think of an alternative, short of telling support to install
it themselves?
Regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
g a lot
of warnings and dying miserably. Bluehost¶ support guys haven't been
helpful yet, so... I turn to you.
Is there a way around PIL? Can Django use another kind of library? If
not, has anyone got around this? Maybe by getting a precompiled Linux
PIL?
Thanks a lot!
--
Ca
Hello there,
Is there a way to constrain a DateField with a choices tuple? I want
the admin to restrict dates to valid months and years only.
Maybe I should make this happen with two different IntegerFields?
Best regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
Gábor,
I'm reading Jeff's tutorial, and I believe I'm seeing the light at the
end of the tunnel.
Will update later, thank you!
On 7/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote:
>
> Carlos Yoder wrote:
> > Hello guys,
> >
> > I'm having a
for the time to read this, and if you can help me out, you
don't know how big of a Django evangeliser you'll find in me! (at
least in Slovenia, where I'm currently based) =)
Best regards and thanks a million,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~
> i hope this (chaotic) explanation helps. if not, replay :)
> gabor
Gábor yes it's very simple, to-the-point, and a WELCOME reply. Again,
köszönöm szépan to you!!!
Best regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You rec
ls of Django support (if any), and
ceirtanly they'd be more likely to write a no-frills,
sysadmin-to-sysadmin kind of doc...
Anyone? :-)
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subsc
fy this quickly... thanks a lot!!!
--
Carlos Yoder
http://carlitosyoder.blogspot.com
> apache 1.3.something + mod_fastcgi,
> the fastcgi processes are configured as FastCgiServer,
> so they are managed by the apache process.
> the fastcgi instances use flup.
--~--~-~--~-
provide
support for Django, especially geared towards busy ISP admins? It
should certainly help me (selfish selfish selfish), but I'm sure also
other people too.
What do you think?
Warm regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~
I'm personally trying them to understand that it's python code,
nothing that needs to be 'installed', but well, I'm not sure how it
works on their side. Too bad, I need Django hosting for a quick,
simple application, and I need it fast :-(
Ohwell
hank you very much, or should I say köszönöm szépan? :-)
Regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
documentation wizards, is this worth addressing?
Best regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
nd
here: http://www.djangoproject.com/documentation/install/)...?
Can anybody confirm having a Django app running under Apache 1.x +
FastCGI? Is this actually a silly question, since let's say Dreamhost
gives only Apache 1.x support? :-)
Many thanks,
--
Carlos Yoder
http://carlitosyoder.blogspo
vide
Apache 1.x, mod_python (at request), and FCGI. Dunno if they do
lighthttpd, though.
Can anyone please confirm or deny this? Thank you thank you thank you!
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you ar
>
> I have been digging into the docs again and it seems to me that Django
> is flexible enough to handle this without having to dive into the
> source.
>
> Of course it would be nice just to call the save() and delete() methods
> and everyt
julián <[EMAIL PROTECTED]> wrote:
>
> Did you tried Google?
>
> http://www.google.com/search?hl=en&lr=&q=model+method+starts+with+%22_module_%22&btnG=Search
>
> http://www.djangoproject.com/documentation/models/custom_methods/
>
>
> >
>
--
Carlos Yoder
> Okay point taken - I'll stop trying to be 'elegant' and just live with
> the problem and deal with managing this with a 'VehicleType' model and
> several redundant fields.
>
> It is slightly anoying though!
Annoying? I work on Windows, you insensiti
d
> to make sure)
> - do i have to buy at least an one-year subscription? can't i just pay
> for the first month at the beginning? (it seems that you either buy a
> 12month subscription for 7.95$/month, or a 24month one for 6.95$/month)
>
> thanks,
> gabo
P-CGI/0.1b
-
Is there anything else I should ask, or this setup could run Django
successfully? Thanks a lot!
--
Carlos Yoder
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because yo
76 matches
Mail list logo