Django, Dojo and JSON-RPC

2009-04-06 Thread Jani Tiainen
I've been trying to find out nice solution to handle JSON-RPC with Django and Dojo (Dojango). So far not much avail. Has anyone succeeded with this? Care to share what kind of packages do I need to make it working with preferably automated SMD generations. -- Jani Tiainen

Re: Django, Dojo and JSON-RPC

2009-04-06 Thread Jani Tiainen
ted below > solution to me a while ago and I'm happy with it. > > Rob > > On Apr 6, 2009, at 3:14 AM, Jani Tiainen wrote: > >> >> I've been trying to find out nice solution to handle JSON-RPC with >> Django and Dojo (Dojango). >> >> So far not much ava

Re: Run context processor conditionally?

2009-05-07 Thread Jani Tiainen
xt processor only for views defined in that >>>> app's URL conf or something? >>> You can specify extra context processors to use with RequestContext in >>> your view: >>> >>> <http://docs.djangoproject.com/en/dev/ref/templates/api/#id1> >

Splitting monolithic

2009-05-12 Thread Jani Tiainen
o how to split it up in smaller independent apps? Build some core that contains model + business logic that is not application specific and then separate form, JSON-RPC functions and application specific business logic in this same app module?

Plugin technology

2009-05-23 Thread Jani Tiainen
application template: templates/mycore/mycore.html: {% for plugin in allplugins %}{{ plugin.provide_link }}{% endfor %} Any pointers to such apps or snippets that uses this (or similiar) tehcnique would be appreciated. -- Jani Tiainen --~--~-~--~~~---~--~~ You r

Re: Plugin technology

2009-05-23 Thread Jani Tiainen
George Song kirjoitti: > On 5/23/2009 5:13 AM, Jani Tiainen wrote: >> I'm designing application (site) that is supposed to rely heavily on >> pluings. >> >> i didn't found much of references how I can create plugin that can >> provide something useful for

Re: Plugin technology

2009-05-23 Thread Jani Tiainen
Kai Diefenbach kirjoitti: > Hi Jani, > > On 23 Mai, 14:13, Jani Tiainen <rede...@gmail.com> wrote: >> I'm designing application (site) that is supposed to rely heavily on >> pluings. >> >> i didn't found much of references how I can create plugin ... >

Re: Plugin technology

2009-05-23 Thread Jani Tiainen
George Song kirjoitti: > On 5/23/2009 8:53 AM, Jani Tiainen wrote: >> Kai Diefenbach kirjoitti: >>> Hi Jani, >>> >>> On 23 Mai, 14:13, Jani Tiainen <rede...@gmail.com> wrote: >>>> I'm designing application (site) that is supposed to rely

Re: Connecting to Legacy Oracle Tables

2009-05-24 Thread Jani Tiainen
age.py dbshell. You can also edit the generated sql by hand before > running it, if you need finer-grain control. In development version there is also very handy "managed" meta option that works very well with legacy apps when set to 'false'. -- Jani Tiainen --~--~-

Re: reset button question

2009-05-25 Thread Jani Tiainen
6.html -- Jani Tiainen --~--~-~--~~~---~--~~ 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 group, send email

Re: How to pass 2 list as one in template

2009-05-28 Thread Jani Tiainen
em,item1 in combinedlist %} > {{item}} {{item1}} > > {% endfor%} {% endfor %} > You could try that one. Of course, if you can put values in tuples while generating list(s) it would be much more efficient than joining them afterwards. -- Jani Tiainen --~--~-~--~~--

Re: How to pass 2 list as one in template

2009-05-28 Thread Jani Tiainen
Masklinn kirjoitti: > On 28 May 2009, at 15:30 , Alex Gaynor wrote: >> On Thu, May 28, 2009 at 8:11 AM, Masklinn <maskl...@masklinn.net> >> wrote: >> >>> On 28 mai 09, at 14:55, Jani Tiainen <rede...@gmail.com> wrote: >>>> laspal kirjoi

Re: How to load only the body of a page?

2009-06-26 Thread Jani Tiainen
{%% block body_contents %%} {%% include "%s" %%} {%% endblock body_contents %%} """ % template_name ) if context_instance: context_instance.update(dictionary) else: context_instance = Context(dictionary)

Re: MS Word Characters

2009-07-28 Thread Jani Tiainen
racter. Except that it can't be quote but punctuation dash -- Jani Tiainen --~--~-~--~~~---~--~~ 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@googlegroup

Re: javascript variable in url resolver template tag

2009-08-10 Thread Jani Tiainen
Sven Richter kirjoitti: > Ok, i think i understand the problem now. > So i have to hardcode the url in my javascript function? > That was what i wanted to circumvent. No you don't have to. There is two ways, either you just use base URL like {% url url_name %} and send parameters as POST (or

Re: Ajax in Django

2009-08-12 Thread Jani Tiainen
member or are aware of) -- Jani Tiainen --~--~-~--~~~---~--~~ 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 group, send em

Re: Theory: Models/Apps

2009-08-14 Thread Jani Tiainen
a single models.py for > many entities, I would rather to keep separate files for each of entity > .. in a scenario like a huge team is working on a project, this approach > will create unnecessary noise. Any answers? http://docs.djangoproject.com/en/dev/intro/tutorial01/#id3 There is an

Re: Using glovar vars

2009-08-14 Thread Jani Tiainen
e of request (meaning from the moment URL is parsed and reponse is sent to your browser). What happens to your "global" after that? It wouldn't exist on next request. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are

Re: Using glovar vars

2009-08-15 Thread Jani Tiainen
Graham Dumpleton kirjoitti: > > > On Aug 14, 10:13 pm, Jani Tiainen <rede...@gmail.com> wrote: >> Steve Patrick kirjoitti: >> >>> Hi everybody, >>> I´m new in Django and maybe my problem is a bit stupid...I would like >>> to use a global

Re: models with filestore backend (no database)

2009-09-07 Thread Jani Tiainen
o inject new entries to sqlite db is quite trivial. And since sqlite is embededd it doesn't need externel dependencies. And it's been included in python since version 2.5. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Saving Oracle Connection across requests

2009-09-15 Thread Jani Tiainen
le has different values depending of the > process. > > Any ideas how to keep a persistent connection across requests? > > Thanks > > > > > > -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because

Multi table inheritance and reverse lookup

2009-09-22 Thread Jani Tiainen
ry subitem tried. Any better way to achieve same without hitting that much database? -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Multi table inheritance and reverse lookup

2009-09-22 Thread Jani Tiainen
Jani Tiainen kirjoitti: > model.py: > > from django.db import models > > class Order(models.Model): > name = models.CharField(max_length=64) > > def __unicode__(self): > return self.name > > class Product(models.Model): > na

Re: how to open a new page when clicking a url

2009-09-22 Thread Jani Tiainen
li kai kirjoitti: > Hi, > > How to implement this in my template html file? > > When an user clicks an url address, a new webpage will pop up. That is standard behaviour of any browser that I know of. Or did you meant something else? -

Re: how to open a new page when clicking a url

2009-09-22 Thread Jani Tiainen
t; current web browser window. > But I expect it open a new web browser window and jump to the web address. > > Just like this: > We click the search results of google search result, and a new page > will pop up. > > Did I make it clear? > > On Wed, Sep 23, 2009 at 1:

Re: is this a sane way to show total number of objects in pagination?

2009-09-25 Thread Jani Tiainen
ct from DB to Python - which you might not want specially if queryset is large. .count() executes count query on DB side returing only single scalar value to Python. Figure out which one is faster... -- Jani Tiainen --~--~-~--~~~---~--~~ You received thi

Re: What JavaScript framework do you use and why?

2009-09-27 Thread Jani Tiainen
e same thing. Dojango is pretty nice. I just don't use (model)forms all. -- Jani Tiainen --~--~-~--~~~---~--~~ 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@goog

Re: Performing a db operation at session end

2009-09-28 Thread Jani Tiainen
d tell it to user too). Like "your book is reserved for you exclusively next 10 minutes". After that it will be free for next reservation. And buyer might need to wait in queue to get his/her book. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this messa

Re: Does the auto_now attribute do updates even if the same data is inserted?

2009-09-28 Thread Jani Tiainen
uot;10" >>> a.id = "10" >>> a.save() > Yes. Django doesn't have "dirty" flag in models or do field by field compare. So it will always issue insert/update clause when you do "save". -- Jani Tiainen --~--~-~--~~

Re: What JavaScript framework do you use and why?

2009-09-30 Thread Jani Tiainen
Joshua Russo kirjoitti: > On Mon, Sep 28, 2009 at 4:00 AM, Jani Tiainen <rede...@gmail.com > <mailto:rede...@gmail.com>> wrote: > > > Joshua Russo kirjoitti: > > Great links guys, thanks. I'm still in the mindset of frameworks just > > mak

Re: filter magic to support i18n models

2009-10-04 Thread Jani Tiainen
lter) queries, so that the following > statement: > > Product.objects.filter(price=10,language='en') > > to act as > > Product.objects.filter(price=10,producti18n_set__language='en') > > any suggestion ? Have you looked at django-multilingual (in google groups)

Re: ORM

2009-10-07 Thread Jani Tiainen
g else since I'm not sure what you mean by "views" and "triggers" and how they are related to ORM... -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: ORM

2009-10-07 Thread Jani Tiainen
tables and such are generated or it can be done quite easily manually. Could you provide some examples what you're trying to achieve to shed some light here..? -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: how to design mobile version of my site based on django?

2009-10-10 Thread Jani Tiainen
stead of using heavy, large screen pages meant for large display computers. Easiest way is to test your site with mobile and see does it work or not. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: Model Class Inheritance question

2009-10-10 Thread Jani Tiainen
then Planet and Satellite both will be pure concrete classes (then of course you can't have single "satellites" but both inherited concrete classes do need their own reverse relations. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this mes

Re: Distance across a LineString in GeoDjango

2009-10-12 Thread Jani Tiainen
ion. To go beyond that you can use Distance to make math and conversions to another units.. Note that "length" gives linear distance, not spherical so in long distances you get a distorted length. -- Jani Tiainen --~--~-~--~~~---~--~~ You receiv

Re: Distance across a LineString in GeoDjango

2009-10-13 Thread Jani Tiainen
ding on where your measured points are located at!) You might find this page a bit helpful: http://www.uwgb.edu/dutchs/UsefulData/UTMFormulas.htm > On Oct 12, 2:53 am, Jani Tiainen <rede...@gmail.com> wrote: >> HARRY POTTRER kirjoitti: >> >> >> >>> I

Re: does this get or create code ship with django?

2009-10-14 Thread Jani Tiainen
t because I didn't read docs carefully) standard get_or_create actually always creates instance in to database. I first tried to use it just as a template to get object if it didn't existed but it turned out to provide a bit undesired effects, specially with missing null fields... :

Re: hosting from /some/url in apache

2009-10-14 Thread Jani Tiainen
tings.py: LOGIN_URL='//login/' And that's it. Of course you have to keep all your apps using hardcoded urls but use reverse url finding always. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: unable to see SQL even after DEBUG=True in settings

2009-10-16 Thread Jani Tiainen
h that it has executed number of db queries and I > know for sure there must be some sql. But still I don't see any in > connection.queries. what am I doing wrong? Are you sure that querysets are evaluated? Meaning that you actually access them, just create querysets. Also in your e

Re: hosting from /some/url in apache

2009-10-16 Thread Jani Tiainen
Graham Dumpleton kirjoitti: > > > On Oct 15, 5:14 am, Jani Tiainen <rede...@gmail.com> wrote: >> Chris Withers kirjoitti: >>> Hi All, >>> I need to host my django project from /some/folder in my apache instance. >>> I have the following: >&

Re: Stored proderures/functions in Django

2009-10-18 Thread Jani Tiainen
urn value(s) of such database spesific calls. And meanwhile you always can call raw sql to anything you want django supports it. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

Re: Django SAAS projects

2009-10-18 Thread Jani Tiainen
y but we're doing SaaS Django projects and it's project per customer. And each project will have it's own database (Oracle schema usually) so we can scale up pretty much. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: concurrency and threading question

2009-10-21 Thread Jani Tiainen
I need to > ensure that I only have one queue manager running on the server, not > one per visitor. I would be using Apache and either mySQL or sqlite3 > as the database, in case that matters. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message

Re: inspectdb Oracle

2009-10-26 Thread Jani Tiainen
user's tables and I need > also the two views. How can I do? Is it possible? Handcrafing. So you need to construct those two views by hand. Also I suggest that you override save() method to raise exception if someone tries to save something in views acc

Re: Django templates, break a for after an if

2009-10-26 Thread Jani Tiainen
> {% endifequal %} > {% endfor %} > {% endfor %} > > How can I do this? You can't and shouldn't. It's template language, not progamming language. It's function to define _how_ to show data. You need to make that decision in a view which is meant for extracting and p

Login over HTTPS

2009-10-26 Thread Jani Tiainen
total control over my webserver config. -- Jani Tiainen --~--~-~--~~~---~--~~ 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 unsubs

Re: Discovering the ip/port in use by runserver

2009-10-27 Thread Jani Tiainen
l address (localhost), port 8000. Anything beyond that you know since you have to specify it explicitly. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Login over HTTPS

2009-10-27 Thread Jani Tiainen
ack to the > client outside the SSL connect. > > Haven't looked for it yet, but I do want to implement that myself. Lets post > if we find anything :) > > Regards, > > Gerard. > > > > Jani Tiainen wrote: >> I'm trying to get Django to make authenticati

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Jani Tiainen
way to speed this up? > Answer is maybe. First you have to provide model, view and template code you're using to render your code, second the way you measured this 50 seconds. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you

Re: redirect or reload page after pdf file generation.

2009-11-02 Thread Jani Tiainen
TP protocol so what you're asking might not be really possible. With little JS (ajax iframe download) you can achieve that kind of refresh like functionality. But it relies on ajax functionality. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message be

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Jani Tiainen
Low Kian Seong kirjoitti: > On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen <rede...@gmail.com> wrote: >> Low Kian Seong kirjoitti: >>> I have about 3k plus record in my db table and am trying to do a >>> simple render_to_response of a template sending it the r

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Jani Tiainen
Your model was not-so-good Python/Django code style so it was bit hard to read but... Low Kian Seong kirjoitti: > On Tue, Nov 3, 2009 at 3:07 PM, Jani Tiainen <rede...@gmail.com> wrote: >> Low Kian Seong kirjoitti: >>> On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen &

Re: How can we capture the login time in Django

2009-11-03 Thread Jani Tiainen
e it crashed? Of course I'm happy to hear how you resolved such an issues. Login time control is rather easy and you had one solution for that already. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: connection.queries show no queries

2009-11-17 Thread Jani Tiainen
y in your shell process. Try debug toolbar for example to be able to see what actually happens under the hood. -- Jani Tiainen -- 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...@goo

Re: Per-object permissions

2009-11-24 Thread Jani Tiainen
Most promising solution I've seen is django-authority. I haven't (yet) used it but I'm planning to do that at some point. Quick peek revealed that branch you mentioned is a quite outdated, last update is "only" two and half years old.. On Tue,

Re: Translate models

2009-11-25 Thread Jani Tiainen
jango-multilingual which pretty much makes same thing just a bit different way. -- Jani Tiainen -- 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

Re: multilingual flatpages

2009-12-01 Thread Jani Tiainen
her features), multilingual flatpages application. -- Jani Tiainen -- 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 to djan

Re: ModelForm save() cleans data first?

2009-12-01 Thread Jani Tiainen
ture. So answer is yes, it cleans data if it hasn't been cleaned before calling save. -- Jani Tiainen -- 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. T

Re: Django REST

2012-03-04 Thread Jani Tiainen
> To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Jani Tiainen -- You received this message because you are subscribed to the

Re: GeoDjango distance queryset filter with distance value stored within model

2012-03-04 Thread Jani Tiainen
preciated! > > PS: I have posted this also to StackOverflow at > http://stackoverflow.com/q/**9547069/755532?sem=2<http://stackoverflow.com/q/9547069/755532?sem=2> > > Thanks in advance! > > -- > Kind regards > Daniel > > -- > You received this message beca

Re: Django hgwebdir

2012-03-08 Thread Jani Tiainen
ntended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: Problems creating django project in Windows 7

2012-03-08 Thread Jani Tiainen
t use a linux machine as a test server. since it doesn't need a lot of power for that, you can avoid dedicating a real machine by using a virtual one. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: "Dynamyc" modells

2012-03-13 Thread Jani Tiainen
e RDBMS on top of RDBMS. Also all database CRUD operations would be handcrafted still. I would definitely look using those document oriented databases which would allow doing all that fancy stuff without too much sweat. -- Jani Tiainen -- You received this message because you are subscribed

Re: Django is very slow on windows server 2003, mssql database

2012-03-13 Thread Jani Tiainen
lists get's populated from foreignkey / m2m tables which might create quite lot of data. I had fun times with my customer foreignkey to address model with 21 million rows in address... :) -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Dj

Re: Models, field like a list

2012-03-19 Thread Jani Tiainen
Hi, All depends on a few factors will simple foreign key or many to many be correct solution. If single model B can be assigned only on a single model A then foreign key from B to A is right choice. But if requirement is that model B can be assigned multiple times to model A then it's definitely

Re: Running manage.py commands in Windows Power Shell

2012-03-19 Thread Jani Tiainen
Hi, I (and all my other teammates) are have been developing in windows with standard Python (+ Django + lot of other interesting stuff) in WinXP, Vista, Win7. To keep everyone on same line, we use TCC/LE (Take Command Console/LE) which is augmented CMD. Has lot of nice features. And it's free.

Re: Problem with tuncated Admin pages in apache + mod_fcgid

2012-03-19 Thread Jani Tiainen
Hi, Since we use same setup except one part: we use mod_wsgi instead of mod_fcgi. (Since wsgi is considered to be defacto protocol). Could you try to use it? On Mon, Mar 19, 2012 at 7:04 PM, Another Django Newbie < another.xxx.u...@gmail.com> wrote: > > > On Thursday, March 15, 2012 1:05:53

Re: Question about threading a view[REPOSTED]

2012-03-19 Thread Jani Tiainen
e you can still test your long running process but in unit tests you don't test that communication between broker and running system. HTH, Jani Tiainen On Mon, Mar 19, 2012 at 11:17 PM, Arruda <felipe.arruda.pon...@gmail.com>wrote: > Some one also gave me that tip. > I was reading it, b

Re: Question about threading a view[REPOSTED]

2012-03-20 Thread Jani Tiainen
your AJAX call will definitely be terminated (timed out). So that is not a right solution. Using AJAX to query long running status makes a lot of sense though. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Question about threading a view[REPOSTED]

2012-03-20 Thread Jani Tiainen
Hi, Your solution will work perfectly in single process environment (For example with manage.py runserver ) But when you put your app behind webserver you usually invoke several processes. For example if you're using single round-robin loadbalancing over 5 different Django instances. What

Re: Problem with Django starting up

2012-03-21 Thread Jani Tiainen
21.3.2012 7:50, Samuel Muiruri kirjoitti: I can't get the first part to work I assume that you have python installed to c:\python27\ You need to add c:\python27\scripts to your path. Or alternatively: c:\python27\scripts\django-admin.py startproject mysite -- Jani Tiainen -- You

Re: Problem with tuncated Admin pages in apache + mod_fcgid

2012-03-21 Thread Jani Tiainen
20.3.2012 16:45, Another Django Newbie kirjoitti: On Tuesday, March 20, 2012 10:28:49 AM UTC, Another Django Newbie wrote: On Tuesday, March 20, 2012 10:01:36 AM UTC, Tom Evans wrote: On Mon, Mar 19, 2012 at 5:24 PM, Jani Tiainen wrote: >

Re: Basic Random Number Generation

2012-03-21 Thread Jani Tiainen
hoice('0123456789') for i in range(7)] or if you need it: from random import randint # Initializes from current time. def random_int(): return randit(10, 99) Note that pseudorandom generator is only initialized first time import happens. After that you can set it manually using

Re: Basic Random Number Generation

2012-03-21 Thread Jani Tiainen
at 1:01 PM, Jani Tiainen <rede...@gmail.com <mailto:rede...@gmail.com>> wrote: 21.3.2012 9:19, Nikhil Verma kirjoitti: Hi All I want to generate a fix 6-digit random number from a function. eg :- def random_generator(n): #

Re: Problem with tuncated Admin pages in apache + mod_fcgid

2012-03-21 Thread Jani Tiainen
Like this: 'default': { 'ENGINE': '...', 'OPTIONS': { 'threaded': True } } 21.3.2012 11:05, Another Django Newbie kirjoitti: On Wednesday, March 21, 2012 7:18:16 AM UTC, Jani Tiainen wrote: 20.3.2012 16:45, Another Django Newbie kirjoitti: > > > O

Re: where do you host your django app and how to you deploy it?!

2012-04-02 Thread Jani Tiainen
2.4.2012 13:48, fix3d kirjoitti: Where do you host your django app and how to you deploy it?! Please share personal exp. We're deploying to our own application server cluster. And we're using fabric to run actual deployment. -- Jani Tiainen -- You received this message because you

Re: Model validation fails, when inherited model redeclare parent field

2012-04-03 Thread Jani Tiainen
Hi, You'ew hitting limitation of Django ORM which prohibits overriding fields. https://docs.djangoproject.com/en/1.3/topics/db/models/#field-name-hiding-is-not-permitted 4.4.2012 6:34, shiva kirjoitti: Hello! In our apps (that use Django 1.2.7) we use following models: class

Re: Django ORM - query help

2012-04-11 Thread Jani Tiainen
Hi, You're not doing anything wrong. The catch is that since "Thing" can exist without Log you will get outer join. If you want to get along with inner join, you should turn query around and start querying from Log model. I'm just too tired to think how it should be done right now... =) On

Re: Django ORM - query help

2012-04-11 Thread Jani Tiainen
the trick: Log.objects.values('thing').annotate(deletion_date=Max('modified_on')).order_by('-deletion_date') -- Jani Tiainen -- 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@google

Re: Django ORM - query help

2012-04-12 Thread Jani Tiainen
hl=en. I suppose that you have to add all fields. I suggest that you install django-command-extensions and IPython. Run ./manage.py shell_plus and start experimenting. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Django Book

2012-04-12 Thread Jani Tiainen
I don't remeber the exact details, but Django book is not part of Django project but separate project. And apparently authors didn't wanted/had time/whatever reason there is upgraded documentation along Django. It would also require lot of upkeeping different versions of books (since every

Re: DB queries at import time

2012-04-12 Thread Jani Tiainen
and it will be evaluated at the runtime: class MyForm(forms.Form): foo=forms.ChoiceField(choices=mychoices) -- Jani Tiainen -- 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@goog

Re: Django Book

2012-04-12 Thread Jani Tiainen
Btw, you can checkout book as a SVN from http://djangobook.com/svn/trunk/en/ Maybe we, as a community could import that to bitbucket/github and continue maintaining it? On Thu, Apr 12, 2012 at 5:10 PM, Timothy Makobu wrote: > > > On Thu, Apr 12, 2012 at 3:45 PM,

Re: constraining one model's attributes with another's

2012-04-12 Thread Jani Tiainen
> I hope this is clear. > > Many thanks for your help. > > -- > 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 group,

Re: ORA-00918: column ambiguously defined.

2012-04-13 Thread Jani Tiainen
cause 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 group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group

Re: Can't start new project

2012-04-13 Thread Jani Tiainen
t; "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/G4kncIixzIAJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr..

Re: Can't start new project

2012-04-13 Thread Jani Tiainen
day, April 13, 2012 11:51:33 PM UTC-5, Jani Tiainen wrote: > >> Are you using virtual environments? >> >> Since I've been doing all my django development on windows last 3 years >> without any major problems... >> >> On Sat, Apr 14, 2012 at 6:04 AM, Brandy <br

Re: Can't start new project

2012-04-14 Thread Jani Tiainen
ed. > > > On Saturday, April 14, 2012 12:45:32 AM UTC-5, Jani Tiainen wrote: > >> I really suggest you to use virtualenv, it makes your life easier in the >> long run. Also I use a TCC/LE instead of powershell / cmd prompt to mimic >> more unix like environment. &

Re: Can't start new project

2012-04-15 Thread Jani Tiainen
<brandy.norri...@yahoo.com> wrote: > If you would like to read more about the issue, I found the error already > reported on the Python website: http://bugs.python.org/issue7936 > > > On Saturday, April 14, 2012 1:52:00 PM UTC-5, Jani Tiainen wrote: > >> Sounds very goofy

Re: Can't start new project

2012-04-15 Thread Jani Tiainen
nd the problem of windows peculiarities in python invocation. 16.4.2012 1:23, Brandy kirjoitti: I certainly will. Thanks for the advice:) On Sunday, April 15, 2012 2:42:00 PM UTC-5, Jani Tiainen wrote: It's apparently TCC/LE which saves me about all that command execution and arg passing hazzle

Re: problem with syncdb in geodjango tutorial

2012-04-24 Thread Jani Tiainen
seen that error when you try to create new column in postgis database with SRID that doesn't exists in postgis srid definitions. You can check does SRID exist in database: select * from spatial_ref_sys where srid=; I suppose you did provided some SRID when defining column in model... -- Jani Tia

Re: Confused about GeoDjango and PostGIS

2012-04-25 Thread Jani Tiainen
spatial index and recreate it afterwards. Otherwise building index takes just long time. -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: help with "Key 'timeout' not found in "

2012-05-04 Thread Jani Tiainen
HTML form to send post with real submit button. c) Hybrid of a and b. I won't go into details since it would be just a mess. -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You received this message because you are subscribed to the Google Groups &quo

Re: Presentation Viewer on django

2012-05-07 Thread Jani Tiainen
;> > -- > 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 group, send email to > django-users+unsubscr...@googlegroups.com. > For

Re: Presentation Viewer on django

2012-05-08 Thread Jani Tiainen
to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.go

Re: inspectdb+oracle

2012-05-08 Thread Jani Tiainen
but from posts I saw that it also works with oracle somehow. Does anyone know how I could fix this prob? Thx -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You received this message because you are subscribed to the Google Groups "Django us

Re: __contains, ok but contains how many ;-) ?

2012-05-09 Thread Jani Tiainen
> "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users

Re: New Install - django-admin.py ... just gives contest/options but doesn't run?

2012-05-10 Thread Jani Tiainen
ally in win7: http://djangonautlostinspace.wordpress.com/2012/04/16/django-and-windows/ -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: examples of integrating Sencha 2.0 Javascript front end.

2012-05-13 Thread Jani Tiainen
+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Jani Tiainen - Well planned is half done, and a half done has been sufficient before... -- You received this message because you are subscribed to the Google Groups &q

  1   2   3   4   5   6   7   8   >