I want to use generic view to create my model polls's form html code,
but I found pub_date is split to pub_date_date and pub_date_time, I
want to know if there are some documents remind this. I used below
code:
{% for field in form.fields %}
{{field}}
{% endfor %}
and I want to know how to get f
I'm testing generic view, and I had a FileField in my polls model, but
as I summited, I got a Exception:
TypeError at /polls/add/
string indices must be integers
Request Method: POST
Request URL:http://127.0.0.1:8000/polls/add/
Exception Type: TypeError
Exception Value:
first of all, let me introduce myself:
i´m working as a programmer/designer with vonautomatisch in vienna/austria.
i´m writing my PhD on "cooperative structures". right now, we are writing an
article called "RTFM and teach yourself" for a book about "micro-learning"
which is going to be published
在 2005-11-15 2:56:17,"panos" <[EMAIL PROTECTED]> 写道:
>
> Hi,
>
> is it possible to create new tables not specified in the model at
> runtime?
> If yes then
> a. how can you do that?
> b. can the new tables be accessed using the database API?
>
> Thank you very much
> Best Regards
>
>
Hard to believe no one knows anything about bug marked as critical with
high priority.. Ok, if i re-phrase it, any ETA available except just
Milestone 1.0 ? Because its not so clear when it happens..
On Wednesday 16 Nov 2005 3:11 pm, patrick k wrote:
> i´m writing my PhD on "cooperative structures". right now, we are
> writing an article called "RTFM and teach yourself" for a book about
> "micro-learning"
this is not really necessary, we help anyone on this list - except ppl
who havent passe
Georg,
I wasn't really complaining about not getting a reply, just stating a
fact :-)
Anyway, I did try downloading from
http://www.inoi.fi/open/trac/eunuchs
and it didn't compile for me. Were you using 10.4?
As I said, my problem is solved, but it would be nice to have clear
guidance for oth
Hi Colin.
as a point of reference I use Apache2 + mod-python on my OS/X box and
it works like a charm.
I would recommned people investigate this option as well.
regards
Ian.
On 11/16/05, Colin Howlett <[EMAIL PROTECTED]> wrote:
>
> Georg,
>
> I wasn't really complaining about not getting a reply
Well the docs say that you COULD set it in order to avoid tedious
typing. But since I was just doing a test I wouldn't bother to do
that.
The issue seems to be that django-admin isn't recognizing a settings
passed in as : --setting=myproject.settings
Now I'm doing this again with a new project
and note that the PYTHON_PATH should specify the *parent* directory of
your project.
I just tried it again with DJANGO_SETTINGS_MODULE **not** exported and
passing in django-admin.py --settings=myproject.settings
that does not work, you have to set/export DJANGO_SETTINGS_MODULE
thanks
2005/11/16, limodou <[EMAIL PROTECTED]>:
> I'm testing generic view, and I had a FileField in my polls model, but
> as I summited, I got a Exception:
>
> TypeError at /polls/add/
> string indices must be integers
> Request Method: POST
> Request URL:http://127.0.0.1:8000/polls/add/
> E
Hi,
i saw a Ticket for that, when will it be implemented in Django? :)
Hi,
i saw a Ticket about an Oracle Backend. When will it be implemented in
Django? :)
Hi,
i saw a Ticket about an Oracle Backend. When will it be implemented in
Django? :)
Hi,
I am trying to perform a dictionary lookup within a template, and have
got stuck. I pass a list( dirList ) and a dict ( thumbNames ) to
render_to_response. Within the template I process the list, and print
each occurence of dirList. What I would like to do, is display an
entry of thumbNames
On Nov 16, 2005, at 7:04 AM, Pash wrote:
i saw a Ticket about an Oracle Backend. When will it be implemented in
Django? :)
IIRC there are a few pretty major differences between Oracle and
other RDBMSes that are preventing a Oracle backend from being
"easy". I'll reinstall Oracle and take
Hi all,
does anyone now how to use the {% block nav-global %} tag in
admin/base_site.html? I'm looking to get a nice main menu bar kinda'
thing like on the django site, but I'm not experienced (clever) enough
to figure it out.
/stava
That's just a template block which you can fill in with your own contents (or rename or remove altogether if you choose). Django doesn't do any magic management of public site navigation (unless you use it to build an app that does).
See this section of the template documentation for an overview o
On 11/16/05, felix <[EMAIL PROTECTED]> wrote:
>
> and note that the PYTHON_PATH should specify the *parent* directory of
> your project.
>
> I just tried it again with DJANGO_SETTINGS_MODULE **not** exported and
> passing in django-admin.py --settings=myproject.settings
>
> that does not work, you
limodou wrote:
> I want to use generic view to create my model polls's form html code,
> but I found pub_date is split to pub_date_date and pub_date_time, I
> want to know if there are some documents remind this. I used below
> code:
>
> {% for field in form.fields %}
> {{field}}
> {% endfor %}
>
> Fields can create multiple FormFields.
So you mean Fields is not the same as FormFields, and the splited
FormFields can be combine again as auto saving to DB? But if I want to
manually create a form in template, what rule should I followed with ?
Is there some document?
> This is why iterating
JA wrote:
What I would like to do, is display an
entry of thumbNames based on the value of dirName. Something like:
{% for dirName in dirList %}
{{ dirName }} - {{ thumbNames.{{ dirName }} }}
{% endfor %}
This is not possible by design: Django tries to keep templates off
becoming a pro
On 16 Nov 2005, at 05:53, Adrian Holovaty wrote:
This is fully backwards-compatible. If you want to keep your views in
a "views" directory, that's perfectly all right. The thinking is that
the common case will only need a single file called views.py.
Nice change. The less directory hierarchy
On 11/16/05, patrick k <[EMAIL PROTECTED]> wrote:
> the content-ares should consist of small blocks (film, star, interview ...).
> the site-editor should be able to MOVE these blocks around (change the
> position of the block), EDIT the block (e.g. assigning a different film-ID)
> and DELETING the
On 11/16/05, plisk <[EMAIL PROTECTED]> wrote:
> Hard to believe no one knows anything about bug marked as critical with
> high priority.. Ok, if i re-phrase it, any ETA available except just
> Milestone 1.0 ? Because its not so clear when it happens..
Hey plisk,
I'll put this on my to-do list fo
On 11/16/05, limodou <[EMAIL PROTECTED]> wrote:
> I'm testing generic view, and I had a FileField in my polls model, but
> as I summited, I got a Exception:
Hi limidou,
We can't help you much in this case, unless you paste your URLconf and
models. Go ahead and show us that stuff, and we'll be ab
limodou wrote:
>>Fields can create multiple FormFields.
>
>
> So you mean Fields is not the same as FormFields, and the splited
> FormFields can be combine again as auto saving to DB? But if I want to
> manually create a form in template, what rule should I followed with ?
> Is there some docume
Thanks!
/stava
Hi,
I did an svn up last night and now the admin interface doesn't work.
Here is the error I'm getting:
TemplateSyntaxError at /ctm/admin/
'block' tag with name 'userlinks' appears more than once
Request Method: GET
Request URL:
Exception Type: TemplateSyntaxError
Exception
On 11/16/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> I did an svn up last night and now the admin interface doesn't work.
> Here is the error I'm getting:
Hey Bryan,
Are you using the new-admin branch? I can't recreate this error using trunk.
Adrian
--
Adrian Holovaty
holovaty.com | djangop
On 11/16/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 11/16/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > I did an svn up last night and now the admin interface doesn't work.
> > Here is the error I'm getting:
>
> Hey Bryan,
>
> Are you using the new-admin branch? I can't recreate this
I think I'm missing something fundamental here because this setup just
isn't working.
*deep breath*
I'm getting these errors:
TemplateSyntaxError: Template 'poll_base' cannot be extended, because
it doesn't exist
And no amount of path wrangling can seem to fix it. It can seem to find
the projec
On 11/16/05, Alice <[EMAIL PROTECTED]> wrote:
> I'm getting these errors:
> TemplateSyntaxError: Template 'poll_base' cannot be extended, because
> it doesn't exist
>
> And no amount of path wrangling can seem to fix it. It can seem to find
> the project okay, but not the templates.
If your TEMPL
Is it wise to store a large amount of data in an anonymous session?
For instance, and most applicable to my design, if I store results of
a search in a session like so:
request.session['search_results'] = objects.get_list(name__icontains=query)
And then I can more easily give paged results back
"The only thing that changes is that the Apache user (the user Apache
runs under) needs permission to read your templates."
...
oh. my kingdom for some nicer error messages. This problem has tripped
me up before but not on django. It was the permissions: for some reason
they all have a mixture o
i guess your implying the wrong intention here.
i didn´t want to offend anyone. sorry if i did. just wanted to give some
personal information (with relevance to my question).
>
> On Wednesday 16 Nov 2005 3:11 pm, patrick k wrote:
>> i´m writing my PhD on "cooperative structures". right now, we
i see what you mean.
my ideas was somehow different though.
let´s say my content-area looks like this:
{% block film %}1237{% endblock %}
{% block star %}97{% endblock %}
{% block banner %}{% endblock %}
Jacob Kaplan-Moss jacobian.org> writes:
> would you be up for testing a (possibly buggy) backend if I could get
> one out?
I would like to volunteer as well. Are there unit tests or is that part of
volunteering?
Also, I am curious what the differences are and if versions matter.
On Nov 16, 2005, at 12:58 PM, David S. wrote:
Jacob Kaplan-Moss jacobian.org> writes:
would you be up for testing a (possibly buggy) backend if I could get
one out?
I would like to volunteer as well. Are there unit tests or is that
part of
volunteering?
There are inteed unit tests of t
On 11/16/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> Off the top of my head, the big difference I can think of is that
> Oracle doesn't support LIMIT/OFFSET on queries (you're supposed to
This doesn't suck:
http://e-docs.bea.com/workshop/docs81/doc/en/core/index.html
On 11/16/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> On 11/16/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> > Off the top of my head, the big difference I can think of is that
> > Oracle doesn't support LIMIT/OFFSET on queries (you're supposed to
>
> This doesn't suck:
> http://e-docs.bea.c
Jacob Kaplan-Moss wrote:
Off the top of my head, the big difference I can think of is that
Oracle doesn't support LIMIT/OFFSET on queries (you're supposed to
use a cursor or a temp table).
Oracle has 'rownum' - a virtual field representing the ordinal number of
a row. So you can do this:
On Nov 16, 2005, at 3:10 PM, Jeremy Dunck wrote:
select x from foo limit 10 offset 20
becomes:
select * from (
select x from foo
) where rownum between 20 and 30
Right; the issue is that query rewriting is... scary; making the
backend rewrite your queries for you sucessfully could be diffi
Hi,
I've written a small piece of middleware to prevent Google Web Accelerator
(or any other prefetching client) from prefetching URLs. Since this is my
first piece of middleware, I'd appreciate it if those more experienced
than me could tell me whether it looks sensible, or whether it's flawed
On Nov 16, 2005, at 4:16 PM, Richie Hindle wrote:
I've written a small piece of middleware to prevent Google Web
Accelerator
(or any other prefetching client) from prefetching URLs. Since
this is my
first piece of middleware, I'd appreciate it if those more experienced
than me could tell me
On Wed, 16 Nov 2005 22:16:23 + Richie Hindle wrote:
>
> Hi,
>
> I've written a small piece of middleware to prevent Google Web
> Accelerator (or any other prefetching client) from prefetching URLs.
Can I ask first of all why you are doing this? If you are trying to
conserve your bandwidt
[Luke]
> I know some people want to use links (i.e. HTTP GET requests) which
> have side effects, which is Bad.
[Jacob]
> if an app modifies
> data based on a GET, then the app should be considered broken.
"Logout" is often a link, like it or not. (Amazon, Gmail, Yahoo...)
And yes, server r
2005/11/16, Adrian Holovaty <[EMAIL PROTECTED]>:
>
> On 11/16/05, limodou <[EMAIL PROTECTED]> wrote:
> > I'm testing generic view, and I had a FileField in my polls model, but
> > as I summited, I got a Exception:
>
> Hi limidou,
>
> We can't help you much in this case, unless you paste your URLco
> This isn't very well documented right now.
> See "http://www.djangoproject.com/documentation/model_api/";, under
> DateTimeField:
>
> "the admin represents this as two fields, with
> JavaScript shortcuts. "
But there are no JavaScript shortcuts in output code of generic view,
may be a bug?
>
>
hi.
I have a application where sites would be a great fit for.
but I'm not sure how I make use of them.
is it as easy as just adding a 'Site' Field to my model on all the
tables,/classes
and django takes care of the rest?
or do I need to explictly hard code the views so that 'site' is taken
into
limodou wrote:
>>This isn't very well documented right now.
>>See "http://www.djangoproject.com/documentation/model_api/";, under
>>DateTimeField:
>>
>>"the admin represents this as two fields, with
>>JavaScript shortcuts. "
>
>
> But there are no JavaScript shortcuts in output code of generic
2005/11/17, Robert Wittams <[EMAIL PROTECTED]>:
>
> limodou wrote:
> >>This isn't very well documented right now.
> >>See "http://www.djangoproject.com/documentation/model_api/";, under
> >>DateTimeField:
> >>
> >>"the admin represents this as two fields, with
> >>JavaScript shortcuts. "
> >
> >
On Wednesday 16 Nov 2005 8:26 pm, stava wrote:
> Hi all,
>
> does anyone now how to use the {% block nav-global %} tag in
> admin/base_site.html? I'm looking to get a nice main menu bar kinda'
> thing like on the django site, but I'm not experienced (clever)
> enough to figure it out.
this is wha
On Wednesday 16 Nov 2005 11:26 pm, patrick k wrote:
> i guess your implying the wrong intention here.
> i didn´t want to offend anyone. sorry if i did. just wanted to give
> some personal information (with relevance to my question).
i didnt get offended - when i started reading your post, i first
I'm working on writing instructions for deploying Django at TextDrive,
and so I'm using the Django/lighttpd_FCGI instructions here:
https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoFcgiLighttpd
But I'm seeing something extremely odd with my test deployment; even
though the socket
On 11/16/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> On 11/16/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> >
> > On 11/16/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > > I did an svn up last night and now the admin interface doesn't work.
> > > Here is the error I'm getting:
> >
> > Hey
56 matches
Mail list logo