Re: Basic Random Number Generation

2012-03-21 Thread Jani Tiainen
return [choice('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

Re: Basic Random Number Generation

2012-03-21 Thread Jani Tiainen
1:01 PM, Jani Tiainen 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): # do domething

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

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 becau

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 BaseRegistratio

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 Wed,

Re: Django ORM - query help

2012-04-11 Thread Jani Tiainen
uld do 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 grou

Re: Django ORM - query help

2012-04-12 Thread Jani Tiainen
subscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?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 -

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 v

Re: DB queries at import time

2012-04-12 Thread Jani Tiainen
parameter 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-

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, Mario Gudelj wrote: > >> I follo

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

2012-04-12 Thread Jani Tiainen
t; > 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, send email to > django

Re: ORA-00918: column ambiguously defined.

2012-04-13 Thread Jani Tiainen
s 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 more options, visit th

Re: Can't start new project

2012-04-13 Thread Jani Tiainen
ot; 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...@googlegroups.com. > For

Re: Can't start new project

2012-04-13 Thread Jani Tiainen
s are created. " what you exactly mean by that? I feel that I should write short article how to make development in win7 slightly less painful... On Sat, Apr 14, 2012 at 8:19 AM, Brandy wrote: > No, I'm not using virtual environments. > > > On Friday, April 13, 2012 11:51:33 P

Re: Can't start new project

2012-04-14 Thread Jani Tiainen
turday, 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. >> >> Though

Re: Can't start new project

2012-04-15 Thread Jani Tiainen
0:04 PM, Brandy 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. django-admin.

Re: Can't start new project

2012-04-15 Thread Jani Tiainen
d get around 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

Re: problem with syncdb in geodjango tutorial

2012-04-24 Thread Jani Tiainen
jango trunk I've 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 c

Re: Confused about GeoDjango and PostGIS

2012-04-25 Thread Jani Tiainen
. If you have lot's of geometries (1M+) you probably want to drop out 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 becaus

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

2012-05-04 Thread Jani Tiainen
selectable list/dropdown and create real 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 be

Re: Presentation Viewer on django

2012-05-07 Thread Jani Tiainen
ibed 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.goog

Re: Presentation Viewer on django

2012-05-08 Thread Jani Tiainen
ribed 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://grou

Re: inspectdb+oracle

2012-05-08 Thread Jani Tiainen
ite." 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 "Dja

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

2012-05-09 Thread Jani Tiainen
ogle 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.google.com/group/

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

2012-05-09 Thread Jani Tiainen
ess.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 group, send email to django-users@goog

Re: examples of integrating Sencha 2.0 Javascript front end.

2012-05-13 Thread Jani Tiainen
t; 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 "Django users&

Re: Use Django to implement my GUI!

2012-05-13 Thread Jani Tiainen
ed 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 more options, vis

Re: files are downloadable in browser because of apache conf file! help!!!

2012-05-13 Thread Jani Tiainen
subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/xXizu5s--zcJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send em

Deferred fields problem.

2012-05-14 Thread Jani Tiainen
'pk', 'identifier') list_of_models = sort_naturally(qs, 'identifier') sublist_of_models = list_of_models[10:20] for model in sublist_of_models: model.fetch_all_deferred_fields() -- Jani Tiainen - Well planned is half done and a half done has been sufficient before..

Re: Deferred fields problem.

2012-05-14 Thread Jani Tiainen
14.5.2012 14:50, akaariai kirjoitti: On May 14, 2:37 pm, Jani Tiainen wrote: Hi, I have in my database quite a bunch of a models where I do have quite large fields and I'm using .only('pk', 'identifier') to fetch only those two fields - mainly to make serversid

Re: Deferred fields problem.

2012-05-14 Thread Jani Tiainen
I'm still on 1.3.1 but planning to upgrade to 1.4 quite soon. On Mon, May 14, 2012 at 3:50 PM, akaariai wrote: > On May 14, 3:29 pm, Jani Tiainen wrote: > > 14.5.2012 14:50, akaariai kirjoitti: > > > > > > > > > > > > > > > > > &

Re: Use Django to implement my GUI!

2012-05-14 Thread Jani Tiainen
b server, as it will not be used in production for the application deployment. Hope now it's clear for you, and more for the other users. Thanks! 2012/5/13 Jani Tiainen mailto:rede...@gmail.com>> Hi, There is several ways to achieve what you maybe want to do. One of th

Re: Use Django to implement my GUI!

2012-05-16 Thread Jani Tiainen
try to advise me the best way for serving file using python-Django (apache, unicorn, ..)? Thanks again. 2012/5/15 Jani Tiainen mailto:rede...@gmail.com>> Hi, Now it starts to make "sense". I just wonder why are you trying to build something so extremely complic

Re: Use Django to implement my GUI!

2012-05-18 Thread Jani Tiainen
> django-users+unsubscr...@googlegroups.com. >> >>> For more options, visit this group at >> >>> http://groups.google.com/group/django-users?hl=en. >> >>> >> >>> >> >>> >> >>

Re: How to generate secure passwords

2012-05-30 Thread Jani Tiainen
ed content combination already expired. If that's the case, no access is granted to protected content. Then password wouldn't contain any information about it's validity. Only validity checks happens on your side of system - in your code, on your server. -- Jani Tiainen - Well p

Re: App inside another app or nesting in django apps

2012-05-31 Thread Jani Tiainen
e unique and as known app name is last part of module hierarchy. So you can't have two conflicting apps: myapp.subapp <-- appname is subapp myotherapp.subapp <-- appname is subapp -- Jani Tiainen - Well planned is half done and a half done has been sufficient befor

Re: App inside another app or nesting in django apps

2012-05-31 Thread Jani Tiainen
1.6.2012 9:16, Derek kirjoitti: And the Zen of Python? "Flat is better than nested" But don't forget, again Zen of Python: "Namespaces are one honking great idea -- let's do more of those!" On Jun 1, 8:10 am, Jani Tiainen wrote: 31.5.2012 19:22, Ku

Re: Oracle schema not working

2012-06-01 Thread Jani Tiainen
lic) synonyms for tables for user in question. Otherwise you need to prefix with schema name. See also ticket https://code.djangoproject.com/ticket/6148 -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You received this message because you are subscribed

The Prettiest Pink Pony in Town

2012-06-01 Thread Jani Tiainen
Hi, Since summer seems to arrived (I just saw young elk running at the back yard of our office). I decided to type in magical words "pink pony" in youtube search. Here is what I found. Enjoy! http://www.youtube.com/watch?v=vY14EGd71FY -- Jani Tiainen - Well planned is half

Re: Oracle schema not working

2012-06-04 Thread Jani Tiainen
ct * from SoMeTaBle becomes to select * from "SOMETABLE". If you provide quotes Oracle uses table name as is and thus making it case-sensitive. In theory Django should make all names uppercase regradless how you write it. I recall someone to complain strange behavior in cases with Ora

Re: Error creating project from the Command Prompt

2012-06-07 Thread Jani Tiainen
/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 group, send email to django-users@googlegroups.com. To

Re: cad application

2012-06-21 Thread Jani Tiainen
t;cad application" and what's your goal. -- 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 group, send email to django-u

Re: base_url() in django

2012-06-25 Thread Jani Tiainen
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?hl=en. > -- Jani Tiainen - Well planned i

Re: setting up django with virtualenv on windows7

2012-06-25 Thread Jani Tiainen
hon from c:\python27\ directory and not ones within virtualenv. See more in my blog entry how I and my team has done it: 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 rec

Re: Render time

2012-06-26 Thread Jani Tiainen
ribe 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 - Well planned is half done, and a half done has been sufficient before... -- You receiv

Re: interpretting urls

2012-06-28 Thread Jani Tiainen
Hi, Quote from URL dispatcher documentation: "To design URLs for an app, you create a Python module informally called a URLconf (URL configuration). This module is pure Python code and is a simple mapping between URL patterns (as simple regular expressions) to Python callback functions (your v

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Jani Tiainen
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 more options, visit this

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Jani Tiainen
I meant that if for some reason Django sends incorrect content type from a view or something like that your javascript framework might guess incorrectly your ajax request content type and not parse script tags. On Sat, Jun 30, 2012 at 1:51 AM, Jani Tiainen wrote: > It's known limitation

Re: Query with GeoDjango

2012-07-01 Thread Jani Tiainen
-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?hl=en. > -- Jani Tiainen - Well planned is half done, and a half done has be

Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread Jani Tiainen
up/django-users?hl=en. -- 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 more

Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread Jani Tiainen
correct the error{{ form.errors|pluralize }} below. {% endif %} STUDENT RECORD SYSTEM {% csrf_token %} Student Roll no: On Fri, Jul 6, 2012 at 2:49 PM, Jani Tiainen mailto:rede...@gmail.com>> wrote: Print out form.errors it will contain di

Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread Jani Tiainen
_valid() is false. In short form: def studentid(request): if request.method == 'POST' form = Student_loginForm(request.POST) if form.is_valid(): return HttpResponseRedirect(...) else: form = Student_loginForm() return render_to_response(&

Re: Different authentication package

2012-07-09 Thread Jani Tiainen
jango-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?hl=en. > > -- Jani Tiainen - Well planned is half done, and a half done has been su

Re: Different authentication package

2012-07-10 Thread Jani Tiainen
Maybe you should more clearly specify your needs. On Tue, Jul 10, 2012 at 1:33 AM, Melvyn Sopacua wrote: > On 9-7-2012 20:41, Jani Tiainen wrote: > > Are you asking how to write custom authentication backend that can suit > > your needs? > > No, that would be my backup

Re: model sends two requests

2012-07-11 Thread Jani Tiainen
gt; >> >> >> > Sorry my english Thanks! >> -- >> Wulfraed Dennis Lee Bieber AF6VN >> wlfr...@ix.netcom.com >> HTTP://wlfraed.home.netcom.**com/ >> >> -- > You received this message because you

Re: Catch or raise exception designissue

2012-07-11 Thread Jani Tiainen
ot;Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/bQyS-29Lb4QJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegr

Re: Form 'POST' to a database

2012-07-11 Thread Jani Tiainen
r AF6VN > wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/ > > -- > 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 unsub

Re: Form 'POST' to a database

2012-07-13 Thread Jani Tiainen
s discussion on the web visit > https://groups.google.com/d/msg/django-users/-/JTdViX4I6HEJ. > > 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, visi

Re: Catch or raise exception designissue

2012-07-15 Thread Jani Tiainen
uot; (Section 10.4), and 5xx which means "server error" (Section 10.5) But I think all of that is matter of taste... On Sun, Jul 15, 2012 at 12:23 AM, Melvyn Sopacua wrote: > [reformatted] > > On 11-7-2012 20:41, Jani Tiainen wrote: > > On Wed, Jul 11, 2012 at 4:47 PM, Andre S

Re: access the state of a Model object prior to it's modification ?

2012-07-15 Thread Jani Tiainen
ien feo. > > -- > 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...@googlegrou

Re: Query Distance from User

2012-07-15 Thread Jani Tiainen
ot;Django users" group. >>>>> To view this discussion on the web visit https://groups.google.com/d/* >>>>> *msg/django-users/-/_**ERIIZrolmUJ<https://groups.google.com/d/msg/django-users/-/_ERIIZrolmUJ> >>>>> . >>>>> To post to th

Re: access the state of a Model object prior to it's modification ?

2012-07-16 Thread Jani Tiainen
clear the date self.publication_date = None super(self, MyPublicationModel).save(...) On Mon, Jul 16, 2012 at 3:39 AM, Nicolas Emiliani wrote: > > > On Sun, Jul 15, 2012 at 8:10 PM, Jani Tiainen wrote: > >> Hi, >> >> How about telling us what are

Re: Adding Button in admin form

2012-08-17 Thread Jani Tiainen
e possible with custom field though I think it might work better out with totally custom form that looks like admin page where it's very easy to add more control than standard admin does. -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You r

Re: problems in installing django on windows 7

2012-08-20 Thread Jani Tiainen
hanks & Regards Amyth [Admin - Techstricks] Email - aroras.offic...@gmail.com, ad...@techstricks.com Twitter - @a_myth_ http://techstricks.com/ -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You receive

Re: What is the easy way to install DJango?

2012-08-22 Thread Jani Tiainen
ing setting up all kind of stuff is just a breeze. http://djangonautlostinspace.wordpress.com/2012/04/16/django-and-windows/ I also know that there exists virtualenv-wrapper scripts for windows cmd/powershell but never got them working in my environment and I've been too lazy to try to fix

Re: to_field can not use primary key of related object.

2012-08-23 Thread Jani Tiainen
or a particular form field if needed. -- 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 group, send email to django-users@googlegroups.c

Re: What is the easy way to install DJango?

2012-08-23 Thread Jani Tiainen
cially PNG support is a tricky one. Also for few build scripts there seem to be problem of passing different compiler than msvc for windows. So everything is not simple. These parts are way simpler in *nix like environments - except in RHEL... -- Jani Tiainen - Well planned is half done a

Re: Dependent Ajax Form Fields

2012-08-26 Thread Jani Tiainen
. I suggest that you keep validation to happen on form submit rather than when updating two field values. Just find out what is the best way to do that with your JS framework. Try googling "dependent selectboxes should get you going. By adding keyword Django might give even more help. --

Re: Django - change select items display

2012-08-27 Thread Jani Tiainen
options, visit this group at http://groups.google.com/group/django-users?hl=en. You can change it by creating custom field and overriding label_from_instance method. It's documented just below https://docs.djangoproject.com/en/1.3//ref/forms/fields/#django.forms.ModelChoiceField.empty_labe

Re: Static files not loading when debug is false

2012-09-09 Thread Jani Tiainen
s 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?hl=en. > -- Jani Tiainen - Well planned is half done

Re: Static files not loading when debug is false

2012-09-09 Thread Jani Tiainen
jango-admin-option---insecure On Sun, Sep 9, 2012 at 11:30 PM, Jani Tiainen wrote: > I suppose that your frontend webserver is serving files from url /static/ > from path that STATIC_ROOT points to? > > > On Sun, Sep 9, 2012 at 10:23 PM, Karambir Singh Nain > wrote: >

Re: Can't Find libclntsh.so.11.1 With Oracle Backend

2012-09-10 Thread Jani Tiainen
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 - Well planned is half done, and a half done has been sufficient before... -- You received th

Re: Static files not loading when debug is false

2012-09-10 Thread Jani Tiainen
/#runserver HTH. On Mon, Sep 10, 2012 at 3:57 PM, Karambir Singh Nain wrote: > Yeah. during, debug=true, it is serving fine from static_root. But not > when debug is false. > > > On Monday, September 10, 2012 2:01:03 AM UTC+5:30, Jani Tiainen wrote: > >> I suppose that yo

Re: Override save or other options?

2012-09-10 Thread Jani Tiainen
ion of single event by creating overriding events concept. This way amount of data will be kept relatively small, it's much easier to read and modify. Of course drawback is that you need top level mechanisms to work with single calendar entries that map to your database representation. -- J

Re: Iphone applications via django

2012-09-12 Thread Jani Tiainen
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.google.com/group/django-users?hl=en. --

Re: Iphone applications via django

2012-09-12 Thread Jani Tiainen
thx. On Wednesday, 12 September 2012 13:25:07 UTC+3, Jani Tiainen wrote: I'm using Sencha Touch to build mobile interface to Django application. (basically Django serves just REST API, UI is pure JS/HTML5 stuff). Nice thing is that there exists build process to use phonegap with

Re: Model Validation with Exception Handling

2012-09-13 Thread Jani Tiainen
nsubscr...@googlegroups.com>. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- 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: Can i be able to plot a points on maps with geodjango? i figured i can plot polygons on a map but struggling to plot points is it possible? if it is how do i do it or help with a link to informati

2012-09-13 Thread Jani Tiainen
searching and cant find much infor about it. You can. If i can atleast plot a point like points on the map below, that would be great HoustonCrimeMaps How have you tried to do that exactly? -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You

Re: Can i be able to plot a points on maps with geodjango? i figured i can plot polygons on a map but struggling to plot points is it possible? if it is how do i do it or help with a link to informati

2012-09-13 Thread Jani Tiainen
nd 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?hl=en. How are you trying to plot your points? Have you tried to manually insert at

Re: Can i be able to plot a points on maps with geodjango? i figured i can plot polygons on a map but struggling to plot points is it possible? if it is how do i do it or help with a link to informati

2012-09-13 Thread Jani Tiainen
t's javascript library to work with (interactive) maps on a webpage. Now you should have all pieces that allows you to put together stuff that can show your points from a database. -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You re

Re: tastypie - some feedback / comments

2012-09-13 Thread Jani Tiainen
d to any models, querysets or whatsoever django-rest-framework just works with them as well. -- 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

Re: Conditions in template slows down the software

2012-09-14 Thread Jani Tiainen
process your data in a view to be suitable for rendering rather than using template to do data processing. -- 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

Re: how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert

2012-09-16 Thread Jani Tiainen
ill cause a pain after a while. Also what would you show in case of unsuccessful operation? An alert as well? -- 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

Re: GeoDjango and shapefiles

2012-09-20 Thread Jani Tiainen
;s hard to give more details. For example generating maps with shapefiles there is far better solutions than GeoDjango (GeoDjango is great for querying spatially and modifying data) like Mapnik or Mapserver on serverside. On client side there is practically only one really working solution - Op

Re: template rendering progress

2012-09-20 Thread Jani Tiainen
n offer this kind of features since it's property of HTTP protocol and how request/response cycle goes. -- 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 u

Re: Getting Started

2012-09-24 Thread Jani Tiainen
group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/fkNOGLcwvpQJ. > 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.

Re: A lots of foreign keys - Django Admin

2012-09-24 Thread Jani Tiainen
scribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/C_zR-hp12oUJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@go

Re: GeoDjango and shapefiles

2012-09-25 Thread Jani Tiainen
packages can create shapefiles from database if needed. Don't know how symbology works there. -- 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"

Re: A lots of foreign keys - Django Admin

2012-09-25 Thread Jani Tiainen
uesday, 25 September 2012 02:01:17 UTC-4, Jani Tiainen wrote: Actually problem exists in your model. Unless this is legacy database that you can't do anything about. Major performance killer is done by defining all your foreign key fields to be _strings_. Yes. "field_to&

Re: A lots of foreign keys - Django Admin

2012-09-26 Thread Jani Tiainen
s then it runs in 0.01ms Screenshot: http://cl.ly/image/3w3D3g0h3h1A Also I wonder does admin run one query for each FK per row.. [snipsnip] -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- You received this message because you are subscribed

Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
olumn) AttributeError: 'InsertQuery' object has no attribute 'columns' Error is consistent and happens when there is two or more geometry fields on a single model. Same code worked on 1.3 flawlessly. -- Jani Tiainen - Well planned is half done and a half done has been suff

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
different depending on customer (and picked from settings file). I just tried qicly replace it by more common WGS84... Maybe it's Oracle spesific or are you using Oracle as well? On Tue, Oct 2, 2012 at 7:52 AM, Jani Tiainen mailto:rede...@gmail.com>> wrote: Hi, I've se

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
2.10.2012 14:34, Jani Tiainen kirjoitti: 2.10.2012 14:06, George Silva kirjoitti: This is puzzling. I'm on 1.4.1 and I have models with two geometric columns, without a hitch. The only interesting thing I can see is that you are using SRID = settings.4326 on extent. Is that correct?

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
I guess all this is related to special munging required by Oracle: https://code.djangoproject.com/ticket/10888 2.10.2012 15:12, George Silva kirjoitti: Then it's probably Oracle, which is riddled with bugs on the spatial part. I'm using PostGIS. On Tue, Oct 2, 2012 at 8:38 AM, Ja

Re: Django 1.4.1, multiple geometry fields problem

2012-10-02 Thread Jani Tiainen
Then it's probably Oracle, which is riddled with bugs on the spatial part. I'm using PostGIS. On Tue, Oct 2, 2012 at 8:38 AM, Jani Tiainen mailto:rede...@gmail.com> <mailto:rede...@gmail.com <mailto:rede...@gmail.com>>&

reverse funtion returns fully qualified names

2012-10-03 Thread Jani Tiainen
ified URLs with domain names. Is there some middleware or setting that affects in a behaviour we now experience? -- 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 u

Re: reverse funtion returns fully qualified names

2012-10-03 Thread Jani Tiainen
Replying to myself. It was oldish version of django-rest-framework that did mangled prefix. With latest version (0.4.0 in my case) it's fixed. On Wed, Oct 3, 2012 at 10:29 AM, Jani Tiainen wrote: > Hi, > > since we tried to upgrade our systems to work with 1.4 something ver

Re: Trouble with VirtualEnv on Windows

2012-10-14 Thread Jani Tiainen
ngo users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/YuSLHUyt6xIJ. 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,

Re: Trouble with VirtualEnv on Windows

2012-10-15 Thread Jani Tiainen
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?hl=en. -- Jani Tiainen - Well planne

<    1   2   3   4   5   6   7   8   >