Re: Would Django be a good framework for developing and engineering/science application

2006-12-16 Thread Kamil Wdowicz
2006/12/14, T. Size <[EMAIL PROTECTED]>: > > > I guess the next thing for me to do is to spend alot of > time with the documentation and built a couple of simple apps/tutorials > to flush out my understanding of how Django will work. > > a lot of time... not really, django was my first contact

Re: Get next object

2006-12-16 Thread Kamil Wdowicz
quickly: {{ current_object.id|add:"1" }} but u havent access to methods of next object if it doesn't exist, but you can hardcode a link to object. 2006/12/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Hey Everyone, > > Wondering if anyone can help me out here. Is it possible to get the > next

Re: Why does Django think my browser isn't accepting cookies?

2006-12-16 Thread Kamil Wdowicz
I had it before, once. Restart everything! 2006/12/16, Jeremy Dunck <[EMAIL PROTECTED]>: > > > On 12/15/06, DavidAtEcodata <[EMAIL PROTECTED]> wrote: > > > > This seems to be a known problem but no-one has offered a solution as > > What URL are you requesting? > > > so I'm convinced this is

Re: displaying thumbnails in admin

2006-12-06 Thread Kamil Wdowicz
the worst idea is: class Picture(models.Model): file = models.ImageField(upload_to=settings.MY_MEDIA, blank=True, null=True) entry = models.ForeignKey(Entry) def filename(self): if os.name == 'nt': return

Re: Say hi.

2006-11-28 Thread Kamil Wdowicz
Hi 06-11-28, Jarosław Świerad <[EMAIL PROTECTED]> napisał(a): > > I just want to say: Hi to all. > > I'm a new django user and hopefully this is a right place to stay and > set/get informations! > > See You in net, > > Messer. > > > > --~--~-~--~~~---~--~~ You

Re: Django and CRM or ERP

2006-11-17 Thread Kamil Wdowicz
I'm building kind of CRM.. Project manager, client base and Invoice system. 2006/11/17, Picio <[EMAIL PROTECTED]>: > > Just courious if Is there anyone that have built or will build a CRM > or an ERP using Django? > Thanks > Picio > > > > --~--~-~--~~~---~--~~

Re: Generating slug for words with accents

2006-11-16 Thread Kamil Wdowicz
Polish: ą = a ć = c ź or ż = z ę = e ó = o ł = l ś = s ń = n 2006/11/17, zenx <[EMAIL PROTECTED]>: > > Spanish info: > á é í ó úshould be a e i o u > ü should be u > ñ should be n > > I think that's everything in spanish ;) > > > > >

Acces to model object inside model

2006-11-16 Thread Kamil Wdowicz
It is possible to access, and do a query inside models.py ? Something like this: class Tag(models.Model): #props... def _get_count(self): return Tag.objects.all().count() counter = property(_get_count) Do you know what I mean ?

Re: How does the forloop really work?

2006-11-15 Thread Kamil Wdowicz
or try this: {% for a in list|slice:"1" %} {{ something }} {% endfor %} {% for a in list|slice:"1:3" %} {{ something }} {% endfor %} {% for a in list|slice:"3:" %} {{ something }} {% endfor %} a little bit better i think 2006/11/14, Julio Nobrega <[EMAIL PROTECTED]>: > > Ugly, but I

get_absolute_url syntax error ?

2006-11-13 Thread Kamil Wdowicz
class Page(models.Model): title = models.CharField(maxlength=200) pub_date = models.DateTimeField('Publication date') content = models.TextField(blank=True) category = models.ForeignKey(Category, blank=True) seo = models.ForeignKey(Seo, blank=True) slug =

Re: Add to Favourites type feature?

2006-11-11 Thread Kamil Wdowicz
Make a relation ManyToMany between user and article, adding to favorite (in your example) is creating record with userId and ArticleId. 2006/11/11, Jamie Pittock <[EMAIL PROTECTED]>: > > Sorry, I didn't mean add to your browser favourites. > > I meant more of a feature built into a website

filter records without parent

2006-11-08 Thread Kamil Wdowicz
Hello, I need all records of _Category_ that doesn't have _parent_: In my model: # class Category(models.Model): #... code here parent = models.ForeignKey('self', blank=True, null=True, related_name='child_set') ## all_categorys =