Re: How to find what is the current module directory?

2010-12-05 Thread Simon TITE
Ouch, many apologies, I sent the last message to the wrong mailing list! Can an admin delete it please? -- Simon Tite -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@google

How to find what is the current module directory?

2010-12-05 Thread Simon TITE
t;/apps/frontend/modules/homepage/". Can anybody help? -- Simon Tite -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email

Re: Programming error 1064 - possibly bad string length?

2008-06-30 Thread Simon Tite
g an idiot! :) At least now, I'm a *happy* idiot! On Jul 1, 1:57 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 7:36 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 30, 2008 at 7:19 PM, Simon Tite <[EMAIL PROTECTED]> wrote:

Re: Programming error 1064 - possibly bad string length?

2008-06-30 Thread Simon Tite
correction: the mySql command line which works is: UPDATE `app_userprofile` SET `telephone`=("'123 123'") WHERE `app_userprofile`.`id` = 1; On Jul 1, 1:14 am, Simon Tite <[EMAIL PROTECTED]> wrote: > Well, the quotes thing seems perhaps to be a bit of a red herring...

Re: Programming error 1064 - possibly bad string length?

2008-06-30 Thread Simon Tite
e? I suppose it must be, if I spent several hours diving into the Django source, but hopefully somebody knows an easier way? Somebody? Anybody? On Jun 30, 10:32 pm, Simon Tite <[EMAIL PROTECTED]> wrote: > Thanks Scott, for the speedy reply. > > "gender" is defined in models.p

Re: Programming error 1064 - possibly bad string length?

2008-06-30 Thread Simon Tite
ppet you've posted, I wonder how the 'gender' field is > defined.  You are storing the three-character string 'Y' into it (including > single quotes).  Do you expect to be able to store three characters into it, > or only one character? > >   -- Scott > > > > On Mon, Ju

Re: Programming error 1064 - possibly bad string length?

2008-06-30 Thread Simon Tite
> or only one character? > >   -- Scott > > > > On Mon, Jun 30, 2008 at 3:47 PM, Simon Tite <[EMAIL PROTECTED]> wrote: > > > I get the following error when trying to save a model - > > "userprofile.save()" - > > > (1064, 'You have an error

Programming error 1064 - possibly bad string length?

2008-06-30 Thread Simon Tite
I get the following error when trying to save a model - "userprofile.save()" - (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'), `gender` = ("\'F\'",), `hideyear` = (\'0\',), `address` = ("\'97

Re: load external xml and css with varibles?

2008-05-20 Thread Simon Tite
I'm afraid I don't quite understand all of your question, but I can possibly answer part of it, although please bear in mind I'm quite new at Django, so there may be better ways of doing it. On May 19, 11:50 am, sebey <[EMAIL PROTECTED]> wrote: > > I am thinking about making a template that has

Re: Problem about Url

2008-05-20 Thread Simon Tite
Correction to last message: def intropage: query="some default value" page="1" #(default to page 1) if "query" in request.GET: query=request.GET("query") if "page" in request.GET: page=request.GET("page") #go get the

Re: Problem about Url

2008-05-20 Thread Simon Tite
On May 19, 7:32 pm, "free won" <[EMAIL PROTECTED]> wrote: > i found this Problem  when i decide to use Paginator. > > the str    *(?P\w+/)$*     can express    * ?query=xxx* > > so if i wanna express *?query=xxx=1*,  how can I write the str for > urls.py? The part of the url following (and

Re: How to change language by clicking on link (using GET not POST) (set_language redirect)

2008-04-15 Thread Simon Tite
On Apr 15, 8:54 am, prz <[EMAIL PROTECTED]> wrote: > instead of the ponderous ruminations of the the venerous > [EMAIL PROTECTED], here's a trivial > solution > > >           >             >               {% for lang in LANGUAGES %} >               >             {% comment %} >            

How to change language by clicking on link (using GET not POST) (set_language redirect)

2008-04-14 Thread Simon Tite
The documentation on how the user can change the language of a page/ site (from: http://www.djangoproject.com/documentation/i18n/), in the section "The set_language redirect view", gives the following code: {% for lang in LANGUAGES %} {{ lang.1 }} {% endfor %} This of course means the