Kieran,
It looks like a ticket for my particular problem. While I do use a
"recursive parent field", I hesitated to subclass it. I'll give it a try.
Thanks,
Eugene
"Kieran Holland" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Eugene,
On 05/09/05, Eugene Lazutkin <[EMAIL PROT
Is there a way to relate an object to many of itself.
eg. I have a product and I want to relate a variable number of other
products to it as related products.
I've tried the 'self' method which works for ForeignKey, though
manytomanyfield doesn't like having a string passed to it.
Eugene,
On 05/09/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote:
> One possible solution is to create Category model and subclass it every time
> I need to use it. Subclassed model should live in its own table and
> implement proper getters to get related objects. I don't know if it is
> possible
Hi Folks,
I have a table in my model as follows:
---
class Schedule(meta.Model):
id = meta.AutoField(primary_key=True)
schedule = meta.CharField(maxlength=255, help_text='This takes a
Cron-style format (min hour dom mon dow)')
job = meta.ForeignKe
Let me give an example. I want to have categories for blog entries, e.g.,
News, Development::Web::Django, Politics::Rants, and so on. Category object
may be quite complex (e.g., hierarchical), multiple categories are allowed
(many-to-many). I want different set of categories for my bookmarks, a
pps: get_basic_file_filename() is eq to MEDIA_ROOT :( it contains only
a dir, not the path to the file
i have wrote some app thats have 3 ImageFields.
- model -
name = meta.CharField(maxlength=33)
basic_file = meta.ImageField(blank=False,null=False)
small_file = meta.ImageField(blank=True)
biggg_file = meta.ImageField(blank=True)
in my _post_save(self):
import Image
from project.settings.main impo
2005/9/4, Adrian Holovaty <[EMAIL PROTECTED]>:
> That's a really interesting idea. I think it'd be better to
> "statically" generate the templates a single time, rather than have
> Django create the templates automatically, because the former would
> allow people to custom the templates' look and
On 9/4/05, Rachel Willmer <[EMAIL PROTECTED]> wrote:
> I want to use the generic view mechanism to add/change/delete but I
> don't want to have to write my own form template for each page.
>
> I'd like it to work just like the admin interface does. Is it
> possible/sensible to hook into the admin
I want to use the generic view mechanism to add/change/delete but I
don't want to have to write my own form template for each page.
I'd like it to work just like the admin interface does. Is it
possible/sensible to hook into the admin code which seems to use
add_stage/change_stage to automaticall
2005/9/1, Adrian Holovaty <[EMAIL PROTECTED]>:
> On 9/1/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
[Referring to MS SQL backend]
> > Adrian, will this be accepted or reviewed?
> > http://code.djangoproject.com/ticket/225
> Ah, I'd lost track of that one. Yes, that'll definitely be reviewed
> soon
I want to use 'login_required' decorator in my views to let working at
logged users only. The problem is that 'login_required' is looking for
a match with 'accounts/login/' and it doesn't exists on any 'urls'
module (django.conf.urls.*). I think that it should be added in
django.conf.urls.registra
Long sleepless night + hacking away Django app with Dojo = wrong group. :-)
Sorry.
"Eugene Lazutkin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hello,
>
> While AJAX is all about using Xml to transfer Asynchronously data to
> Javascript, in many cases it's more beneficial
Did you perhaps intend this for the dojo list?
On 9/4/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote:
...
> It means, you cannot use dojo.io.bind({ mimetype: "text/javascript" }),
> which does automatic evaluation of JavaScript because it would fail for
> JSON.
Hello,
While AJAX is all about using Xml to transfer Asynchronously data to
Javascript, in many cases it's more beneficial to use JSON (http://json.org)
instead of XML, when transferring data from server to AJAX application. Many
implementations of JSON are available for different languages. T
I just counterchecked the problem with datetime on a different machine
with a fresh django installation:
It does not work for the postneo tutorial code, too.
Is it a problem with mysql? Or what else may be different? Admin works
for whatever reason on both datetime and foreign keys..
Very big t
16 matches
Mail list logo