I tried to add some values to my table from admin site. Table has 3
columns one of integer type and other two of string type. When i tried
to save my entries it giving an error as:
"coercing to Unicode: need string or buffer, int
found"
How to solve it?
--~--~-~--~-
TED]> wrote:
> Vicky wrote:
> > I tried to add some values to my table from admin site. Table has 3
> > columns one of integer type and other two of string type. When i tried
> > to save my entries it giving an error as:
>
> > "coercing to Unicode: ne
On Nov 17, 8:35 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Nov 17, 12:41 pm, Vicky <[EMAIL PROTECTED]> wrote:
>
> > I found the problem.. I used :
>
> > def __unicode__(self):
>
> > function in my model. so it a can
Can we use XML files as templates instead of HTML?
--~--~-~--~~~---~--~~
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 grou
e(t.render(c), mimetype='application/xml')
I verified that the file is in the location. But when i compile it
keeps telling that template file does not exist. What to do?
On Dec 1, 4:57 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> On Dec 1, 2008, at 7:51 PM, Vicky wrote:
I did as you said. Still its giving the same error :(
On Dec 2, 11:38 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-12-01 at 22:20 -0800, Vicky wrote:
> > I tried the code below:
>
> > from django.template import loader, Context
>
> >
Is there a way to use variables like:
{{ content.{{ items}} }}
??
I need do send the object and field names to template and access
content of that field from template. This thing works:
{{ content.name }}
But i need the thing after '.' also to be a variab
I tried to use the code
below:
{% ifequal oftype
'first_name' %}
{% for item in
datas.first_name %}
{{ item
}}
Yea that was the mistake :) it wrks fine nw
On Dec 8, 3:16 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Dec 8, 9:31 am, Vicky <[EMAIL PROTECTED]> wrote:
>
>
>
> > I tried to use the code
> > below:
> >
Is there any way to insert, retrieve, delete and update tables in a
database from templates itself?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
If we send a file by post method to a django function how can we
separate the file from the request?
--~--~-~--~~~---~--~~
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
hey can u plse attach and sent me a sample project that uses forms if
possible. I need to knw wr anw hw to create forms, should we include
anything in settings.py or urls.py?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
uthttp://pinaxproject.com
>
> On Dec 10, 8:16 am, Vicky <[EMAIL PROTECTED]> wrote:
>
> > hey can u plse attach and sent me a sample project that uses forms if
> > possible. I need to knw wr anw hw to create forms, should we include
> > anything in settings.py or url
Is there any way to take out the first letter of a string in django
template system?
ex:
x("Hai") should give o/p as: "H"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
i used this code to send more than one data to url:
http://local/www/app/data/id=1&name=django&phone=23232
but is this the right pattern a url should look like? If not can
anyone tell how can we send them?
--~--~-~--~~~---~--~~
You received th
I am having a model in my application. I tried to get the values form
shell by typing:
from x.models import datasets
but its giving an error:
Traceback (most recent call last):
File "", line 1, in ?
ImportError: can
Is there a way to access the previous value of a for loop in
templates. Can anyone tell the template representation for the python
code like:
for i,j in enumerate(item):
...
--~--~-~--~~~---~--~~
You received this me
ya that's what i need :) thanks a lot :) :)
On Dec 28, 8:06 pm, Daniel Roseman
wrote:
> On Dec 27, 6:20 am, Vicky wrote:
>
> > Is there a way to access the previous value of a for loop in
> > templates. Can anyone tell the template representation for t
Is there any way to create a variable within the templates...?
--~--~-~--~~~---~--~~
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 fr
how can we debug errors in templates? Are there any IDE for this?
--~--~-~--~~~---~--~~
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
command like below is not working... can u suggest a way??
{% for node in nodes %}
{% ifequal nodes[(forloop.counter0)-1].node_type '2' %}
On Dec 29, 9:21 am, Vicky wrote:
> ya that's what i need :) thanks a lot :) :)
>
> On Dec 28, 8:06 pm, Daniel Roseman
> w
Some datas in my database are missing when i view it using models.Am
using MYSql db. The datas that are in database when viewing using
querry browser where not seen when using model to access database. can
anyone help
--~--~-~--~~~---~--~~
You received this message
I using the django to generate xml and to fetch datas from database.
When i run it the response is too slow. it takes nearly 4sec to load
the page. So what can i do to make my program more efficient. Plse
tell me some things to avoid so that it becomes faster
--~--~-~--~~~-
I have a table with an 'id' field (Primary Key). When I insert the
data using admin interface it is asking me for the value of the
primary key field. But I want it to be filled automatically. Is there
a way to do it?
--~--~-~--~~~---~--~~
You received this message b
Thanks a lot man. It worked. I just made it as AutoField :)
On Apr 21, 5:15 pm, Mike Ramirez wrote:
> On Tuesday 21 April 2009 05:07:06 am Anatoliy wrote:
>
> > Try to remove id field from model description. Django handles it
> > automatically.
>
> > On Apr 21, 3:4
On Apr 15, 10:04 pm, Jamie wrote:
> On Apr 14, 9:34 pm, Brian Neal wrote:
>
> > This is how I am doing it (I'm also integrating with Google Calendar):
>
> > tz = pytz.timezone(tz_name) # create timezone
> > local = tz.localize(d) # make naive datetime localized
> > zulu = local.astimezone(F
Hi,
I am new in django. I need to update events from my website to
outlook, Google, yahoo calendars. I have implemented some code from
vObject which download ".ics" file which is OK for outlook. I don't
know how to update event in Google and yahoo calendar.
Please help me.
--~--~
Hi,
I am new in django. I need to update events from my website to
outlook, Google, yahoo calendars. I have implemented some code from
vObject which download ".ics" file which is OK for outlook. I don't
know how to update event in Google and yahoo calendar.
I need functionality like shown in
http
am failing to get apython path on the cmd interface..what could be wrong
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.co
Am interested too
On Thursday, November 23, 2023, Youssef Bachraoui <
bachraouiyouss...@gmail.com> wrote:
> Hi developer i search to make a group on WhatsApp to begin a project
> together anyone interested about that?
>
> --
> You received this message because you are subscribed to the Google Gr
30 matches
Mail list logo