hi,
i am using the thumbnails app and have a line like this:
i want to pass different widths depending on what the user wants. I
tried this:
but it doesnt parse. Any clues?
--
regards
kg
http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
--~--~---
[EMAIL PROTECTED] wrote:
>
> what character set and collation does django expect when setting up the
> admin site?
I use MySQL's defaults: charset is "latin1", collation is
"latin1_swedish_ci". Everything works properly. But I never tried
non-English admin. Maybe i18n users can provide more in
in trying to unravel my previous post:
http://groups.google.com/group/django-users/browse_thread/thread/b21804c6f176a61c
i am now wondering if i have something set up incorrectly in my
mysql...
my question is..
what character set and collation does django expect when setting up the
admin site?
On 3/11/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
>
> In my templates, I'd like to be able to (for example):
> Given an "object_list" of rateable things, I'd like to
> then get the "Rating" valules for the current user.
> I'm trying to figure out a good way to do this.
>
> I don't see any way in
On 3/11/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
>
> Turns out that I mistakenly had created a class with a __repr__ that
> returned a integer field instead of a "str". When I changed it to
> "return str(self.value)" debug again worked fine.
>
> I don't know if I'd call this a bug or not, but.
> I ALWAYS get the didnt match response!
This is where print statements are a very simple diagnosis of the
problem.
Just print out m.password and request.POST['password'] so that you can
see them too. The problem will probably be very obvious.
-rob
--~--~-~--~~~---
On 3/11/06, Gacha <[EMAIL PROTECTED]> wrote:
>
> There is all my virtualhost config:
>
>
> DocumentRoot /home/gacha
> ServerName gacha.id.lv
> ServerAlias www.gacha.id.lv
> ServerAdmin [EMAIL PROTECTED]
>
>
> AllowOverride All
> Options None
>
On 3/11/06, layik <[EMAIL PROTECTED]> wrote:
>
> I am happy to tell anyone who is trying to do the same mistake I was
> doing for the past day probably!! that, forms are loaded empty for
> something to be put in them and then PROCESSED accordingly.
>
> I was trying to LOAD and PROCESS the form tog
On 3/11/06, Alan Bailey <[EMAIL PROTECTED]> wrote:
>
> So it's not adding all the fields from the class to be displayed?
...
> Hm. Anyone have an idea?
This looks like symptoms of a known problem with the trunk - when a
model includes two related keys with the same table, the trunk has a
f
I am happy to tell anyone who is trying to do the same mistake I was
doing for the past day probably!! that, forms are loaded empty for
something to be put in them and then PROCESSED accordingly.
I was trying to LOAD and PROCESS the form together. so the order is:
direct browser to LOAD the login
Hey there,
I have a django class Person which is obviously information on a person.
Then I have a relation class from Person<->Person that looks like this:
class Sponsorship(meta.Model):
sponsored = meta.ForeignKey(Person, related_name='sponsor', core=True,
edit_inline=meta.TABULAR)
sponsor
Luke Plant wrote:
> >
> > Enter Username:
> > Enter Password:
> >
>
> You've duplicated 'username' there - it might be your problem (though
> it seems unlikely actually). Also make sure there isn't any
> redirection going on. You can check easily if you are running the
> development server
Thanks for the reply, Rob.
I finally figured out one of my problems. Changing the setting in my
global_settings.py file was not affecting my project, so I had to add
the # SESSION # section (which includes SESSION_COOKIE_AGE,
SESSION_SAVE_EVERY_REQUEST, and a few others) to my project-specific
s
As part of developing my first Django app I'd make use of {% debug %}
often to see what's happening. I spent a while yesterday trying to
figure out why, just inserting a debug line in my template caused a
traceback of a rendering exception.
Turns out that I mistakenly had created a class with a
>
> Enter Username:
> Enter Password:
>
You've duplicated 'username' there - it might be your problem (though
it seems unlikely actually). Also make sure there isn't any
redirection going on. You can check easily if you are running the
development server by looking at the output on the cons
On Friday 10 March 2006 13:30, layik wrote:
> this might be stupid to ask but I dont know what (*args) and (**kwargs)
> mean at all!
It's not stupid. It's common in the Python world to use * and ** to send
multiple arguments and keyword arguments to a function.
Hopefully these python interpre
Hi Matt,
All that the SESSION_COOKIE_AGE changes is the expire_date on a
"session" entry in one of your database tables. If you change
SESSION_COOKIE_AGE, but are still logged in, then that date is still
going to be about two weeks in the future.
Try logging out, and setting the COOKIE_AGE to some
Hello,
Almost all jobs demand problem-solving skills as one of the most
desirable skills in a candidate. But there are not many resources that
is devoted to this topic.
So, I have created a website for problem solving skills, please check
it out at http://www.ProblemSolvingSkill.net.
Thanks,
Ba
Hi all,
I am doing well with django so far.I am doing my final year project and
I am a couple of weeks behind my schedule, so please help me.
1. I am trying to use the code from the sessions documentation for a
login view, which is:
http://www.djangoproject.com/documentation/sessions/#examples
In my first Django app I've got the following "rough" model (not
real code, but enough to show what I mean):
class Rateable
some stuff common to all "Rateable" objects
class Rating
who = ForeignKey(User)
what = ForeignKey(Rateable)
values = ...
class People(Rateab
Yeah you're right :)
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROT
There is all my virtualhost config:
DocumentRoot /home/gacha
ServerName gacha.id.lv
ServerAlias www.gacha.id.lv
ServerAdmin [EMAIL PROTECTED]
AllowOverride All
Options None
Order allow,deny
Allow from all
okay.. for whatever reason, i cannot get this to work..
i used the above, and rebuilt all the databases, but i cannot get it to
go..
is there a character set and collation i should be using in the very
beginning?
i dropped the database, and ran init, and built the poll databases
again.. but i a
I'm trying to change the behavior of my session cookies. Currently, if
a user does not log out before closing his browser, then he can return
to the admin anytime within 2 weeks without being prompted to log in
again. Ideally I want the session cookie to be erased when the user
closes his browse
see
http://dev.mysql.com/doc/refman/4.1/en/charset-database.html
http://dev.mysql.com/doc/refman/4.1/en/charset-table.html
e.g.
CREATE DATABASE db_name CHARACTER SET latin1 COLLATE latin1_swedish_ci;
regards,
patrick
Am 10.03.2006 um 14:54 schrieb [EMAIL PROTECTED]:
>
> thanks, patrick.. i fo
thanks, patrick.. i forgot to mention..
i am using mysql on linux on a remote machine for this...
can i do it from the command line on the linux machine?
thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
On 3/10/06, ak <[EMAIL PROTECTED]> wrote:
>
> Thanks a lot but to be honest I already found the answer by looking
> into django/conf/settings.py source code :)
> I hope django guys will write the complete manual some day and noone
> will need to look into their sources
>
right. But in the develop
Thanks a lot but to be honest I already found the answer by looking
into django/conf/settings.py source code :)
I hope django guys will write the complete manual some day and noone
will need to look into their sources
--~--~-~--~~~---~--~~
You received this messag
On 3/10/06, ak <[EMAIL PROTECTED]> wrote:
>
> Hello All
>
> I found that I can set mime type for generated templates by simply
> writing in my views:
>
> return HttpResponse(t.render(c), mimetype='text/html;
> charset=windows-1251')
>
> This is for example if I want russian-only service without i1
On 3/10/06, Rob Slotboom <[EMAIL PROTECTED]> wrote:
>
> Is it possible to add some initial value to a forloop.counter?
>
> This would be handy when using limit and offset.
>
> More general, is is possible to use template vars as values for
> calculations:
> {{ var1 }} + {{ var 2 }}
>
I'v develop
On 3/10/06, Rob Slotboom <[EMAIL PROTECTED]> wrote:
>
> I've added an example view and template at:
>
> http://code.djangoproject.com/wiki/CookBookViews
>
Can you compare your appoach with paginator shipped with django?
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist:
Hello All
I found that I can set mime type for generated templates by simply
writing in my views:
return HttpResponse(t.render(c), mimetype='text/html;
charset=windows-1251')
This is for example if I want russian-only service without i18n. But I
can't find a similar option in render_to_response
On Fri, 2006-03-10 at 02:56 -0800, [EMAIL PROTECTED] wrote:
> Hi All,
>
> My Django based site is running fairly well save for the fact that
> MySQL connectivity keeps going away.
>
> Has anyone else had issues with this?
Yes. Search the list archives for MySQL connection problems and have a
lo
On Fri, 2006-03-10 at 02:41 -0800, Rob Slotboom wrote:
> Is it possible to add some initial value to a forloop.counter?
>
> This would be handy when using limit and offset.
>
> More general, is is possible to use template vars as values for
> calculations:
> {{ var1 }} + {{ var 2 }}
The first t
I've added an example view and template at:
http://code.djangoproject.com/wiki/CookBookViews
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 dj
Hi All,
My Django based site is running fairly well save for the fact that
MySQL connectivity keeps going away.
Has anyone else had issues with this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Is it possible to add some initial value to a forloop.counter?
This would be handy when using limit and offset.
More general, is is possible to use template vars as values for
calculations:
{{ var1 }} + {{ var 2 }}
--~--~-~--~~~---~--~~
You received this message
Russ, that helped! Thank you, tutorial 1 passed and I am getting a big
love to Django :D.
--~--~-~--~~~---~--~~
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
Leeuw van der, Tim wrote:
> The application is a photo-album like application which stores
> directory and image info in a psql database, and creates thumbnails
> using PIL.
>
Ah! This is my beloved threading issue :-). It's not Windows specific.
What happens is Django access one connection fr
PS: I just upgraded mod_python to 3.2.8
but no change. Still crashes about 6 times doing those 39 requests for the
front page.
--Tim
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Leeuw van der, Tim
Sent: vrijdag 10 maart 2006 9:16
To
Hi,
What is the recommended way of running Django on a Windows
server?
I’ve developed a small web-application with Django,
for home-use only, and I want to run it on one of my PC’s – which runs
Windows.
So yesterday I did the first test with Django, Apache,
mod_python and my app
41 matches
Mail list logo