Re: Need for an internationalization/translation system not request-based

2009-08-13 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-08-13, o godz. 04:31, przez Malcolm Tredinnick: >> As translation.activate() is process-wide, this approach is not >> safe in multithreaded environment if using static translation (not >> request-based). > > This is not correct. The translation.activate() call is

Re: Need for an internationalization/translation system not request-based

2009-08-13 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-08-12, o godz. 17:11, przez Andrea Zilio: > I'm sorry, can you explain a little bit this problem? Or where I can > get info about it? > > On Aug 12, 3:48 pm, Jarek Zgoda wrote: >> Wiadomość napisana w dniu 2009-08-12, o godz. 13:00, przez Enrico >> Sartorello: >> >

Re: Inheritance at runtime (per model instance)

2009-08-13 Thread Thomas Guettler
Hi Malcolm, Malcolm Tredinnick schrieb: > On Wed, 2009-08-12 at 14:24 +0200, Thomas Guettler wrote: >> Hi Malcolm and others, >> >> Malcolm Tredinnick schrieb: > [...] > > >>> You already have the content type table for referring to other model >>> objects. Why not use that so that you can mai

Re: Deploying django on apache - cant access database

2009-08-13 Thread consiglieri
Graham, I'll take a look at mod_wsgi. But first i have to figure out proper urls and settings for css and javascript. Once again thanks a lot. Thomas On 12 Aug, 11:09, Graham Dumpleton wrote: > On Aug 12, 3:43 pm, consiglieri wrote: > > > > > > > Thanks Graham! > > > The absolute path was

Re: Need for an internationalization/translation system not request-based

2009-08-13 Thread Enrico Sartorello
Nice information, so we can go ahead working with activate() :-) Let me ask you one more question: in your code, i see you're using django.util.translation.get_language(), it's not a documented function and according to django policies it can be changed or removed in any new release. Perhaps it's

Re: Need for an internationalization/translation system not request-based

2009-08-13 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-08-13, o godz. 09:38, przez Enrico Sartorello: > Nice information, so we can go ahead working with activate() :-) > > Let me ask you one more question: in your code, i see you're using > django.util.translation.get_language(), it's not a documented > function

Django for workflow

2009-08-13 Thread Caisys
Hi Everyone, I would like to develop a small internal tool in my company for telesales agents to fill in orders of different products then finance can approve them and send them to the shipping department. I was going to use php and dreamweaver but I have some python and django knowledge. My impre

Re: django-tinymce not appearing in admin

2009-08-13 Thread diogobaeder
Hehehehe... indeed, it's a curious problem... Well, I'll try to stick to your posting suggestions, then. About the TinyMCE, I'm getting some errors, but it must be some typo somewhere... I'll post the results here when I make the changes. Thanks! Diogo On Aug 12, 9:27 pm, Kenneth Gonsalves

adapt admin interface

2009-08-13 Thread Sven Richter
Hi everybody, i have two questions regarding the admin interface. 1. Is it possible to make on column be dependent of the choice of another one? For example, i have to columns in my model: Party and Politician. If i choose a party now i want only the politicians belonging to that party to be show

Re: Need for an internationalization/translation system not request-based

2009-08-13 Thread Malcolm Tredinnick
On Thu, 2009-08-13 at 10:11 +0200, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2009-08-13, o godz. 09:38, przez Enrico > Sartorello: > > > Nice information, so we can go ahead working with activate() :-) > > > > Let me ask you one more question: in your code, i see you're using > > django.

Re: override _display_login_form

2009-08-13 Thread Davo
After some digging it seems that in new django (SVN) the function is located somewhere else. This worked for me. - from django.contrib.admin import sites def _redirect_login(request, *args, **kwargs): return HttpResponseRedirect('http:

One-to-many relationship (the opposite of many-to-one)

2009-08-13 Thread Fredde
Hi! I am using the Site app to serve multiple sites with shared content in the same django project. Now I want to be able to assign a owner company for each site to display different copyright info, etc. So what I would like to do is to add a ForeignKey to the site model without having to create

Dynamically adapting admin page for editting xml data?

2009-08-13 Thread spacetaxi
Hello fellow djangonauts, I'd like to implement an admin page (field, widget, template... whatever) to edit xml-formatted contents of TextFields. Every child node of the xml data has to be editable in a *separate* TextField. Simple example: I want to store some information about books, but for e

Re: One-to-many relationship (the opposite of many-to-one)

2009-08-13 Thread spacetaxi
Hi Fredrik, you could define a customized subclass of Site: -- from django.contrib.sites.models import Site class Company(models.Model): name = models.CharField(max_length = 30) url = models.CharField(max_length = 100) class CompanySite(S

Re: adapt admin interface

2009-08-13 Thread Sven Richter
Uhm, yes, i already asked my first question here on that list. I just thought that mail never got posted, thats why i asked once more. So the first one is answered on: http://groups.google.com/group/django-users/browse_thread/thread/110f0d4e3c146fdc I suspect that the answer to question two is bas

Re: ModelForm limit m2m choices

2009-08-13 Thread spacetaxi
Hello alain31, On 12 Aug., 21:41, alain31 wrote: > [...] > How can I use a custom QuerySet for the choices of field1  ? I think it should work like this: myform = MyForm(..) myqueryset = myform.base_fields['field1'].queryset myqueryset = myqueryset.filter_by(somefield='somevalue') myform.b

Re: Strange problem with LDAP authentication backend

2009-08-13 Thread David De La Harpe Golden
stupidgeek wrote: > David, you are a champ, thank you. > I find it strange that this made the difference, since this line is in > the docs: > > "The get_user method takes a user_id -- which could be a username, > database ID or whatever -- and returns a User object." > We-ell, the "user_id" it

Re: Django for workflow

2009-08-13 Thread Russell Keith-Magee
On Thu, Aug 13, 2009 at 4:21 PM, Caisys wrote: > > Hi Everyone, > I would like to develop a small internal tool in my company for > telesales agents to fill in orders of different products then finance > can approve them and send them to the shipping department. I was going > to use php and dreamw

Re: is Django a good choice for a LAN app?

2009-08-13 Thread roberto
snfctech, As far as I know, Django doesn't have an option to set more than one database. If I am mistaken, please, let me know. I am not sure if there is any project to add this capability in the future tough. Maybe you should investigate a bit more in the site (djangoproject.com). Regards. On Au

Re: ModelForm limit m2m choices

2009-08-13 Thread alain31
Hi, sorry for the first duplicate and incomplete posts (eepc keyboard ...) My problem actually was to pass an dynamic argument to define queryset 'somevalue' (because ModelForm uses class atributes...). I solved it writing a function: def getModel(somevalue) class MyForm(ModelForm) my

Re: is Django a good choice for a LAN app?

2009-08-13 Thread Jonas Obrist
From what I read on django-developers, multi-db support is being actively worked on. roberto wrote: > snfctech, > As far as I know, Django doesn't have an option to set more than one > database. If I am mistaken, please, let me know. > I am not sure if there is any project to add this capabili

admin problems with the docu

2009-08-13 Thread quant
hi i am pretty new to django and i started to check the docu out to see how it works and i had a problem to get the admin interface working... i followed all the steps from the doco and if i set the options in the urls.py on i got many errors ans nothing work anymore i set the following in the

Using Psycopg2 on Windows

2009-08-13 Thread James Walmsley
Hi, I'm trying to get started with Django, and everything was going wonderfully until I tried to use models (and I had to set up postgreSQL). I've installed psycopg2 from the provided compiled binaries, but when I run: manage.py runserver I get the following errors: Error loading psycopg2 mod

serializing

2009-08-13 Thread elminio
Hello, I have problem with serialization of querysets. I use methos: json = serializers.serialize('json', [Grade.objects.get(pk=pk)]) return HttpResponse(json, content_type='application/json; charset= %s' % settings.DEFAULT_CHARSET) And I get this error: 'Grade' object has no attribute

Re: admin problems with the docu

2009-08-13 Thread Alexandru-Emil Lupu
HI! the doc is updated for the 1.1 version .. try this urlpatterns = patterns('', (r'^admin/',admin.site.root), ) see more here: http://code.djangoproject.com/ticket/10050 Alecs On Thu, Aug 13, 2009 at 3:52 PM, quant wrote: > > hi > > i am pretty new to django and i started to check the d

Complex model produces > 400 queries with one pageview

2009-08-13 Thread tom
Hi, i want to save a lot of data (measurement values). The structure is, that i have dataloggers (which produce data), sensors (are connected to the datalogger with foreignkey), and projects. every logger is connected to one project (foreignkey). then, there is a app called Data. i have the foll

Re: Django for workflow

2009-08-13 Thread Tim Chase
> I would like to develop a small internal tool in my company for > telesales agents to fill in orders of different products then finance > can approve them and send them to the shipping department. I was going > to use php and dreamweaver but I have some python and django > knowledge. My impressi

Psyco

2009-08-13 Thread Jonas Obrist
Hi djang-users Is anyone using psyco in django? Does it work and is it useful (as in: do you get great speed improvements)? Jonas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Psyco

2009-08-13 Thread Torsten Bronger
Hallöchen! Jonas Obrist writes: > Is anyone using psyco in django? Does it work and is it useful (as > in: do you get great speed improvements)? I've once seen a benchmark indicating considerable improvements of Django performance with psyco, but only on 32 bit systems. On 64 bit, psyco was a

Re: Dynamically adapting admin page for editting xml data?

2009-08-13 Thread spacetaxi
On 13 Aug., 11:53, spacetaxi wrote: > I'd like to implement an admin page (field, widget, template... > whatever) to edit xml-formatted contents of TextFields. Every child > node of the xml data has to be editable in a *separate* TextField. Ok guys, just in case anybody is interested: I got this

Re: admin problems with the docu

2009-08-13 Thread Karen Tracey
On Thu, Aug 13, 2009 at 9:49 AM, Alexandru-Emil Lupu wrote: > HI! > the doc is updated for the 1.1 version .. > try this > > urlpatterns = patterns('', >(r'^admin/',admin.site.root), > ) > > see more here: http://code.djangoproject.com/ticket/10050 > Indeed, since the Django version shown on

Re: noob question about part 2 of the tutorial

2009-08-13 Thread egrommet
Star! Thanks for that, I'd tried doing it and failed - but wasn't sure where it was going wrong. Have done it now and am moving onwards. Cheers On Aug 10, 11:17 am, nostradamnit wrote: > It means you remove the line that says admin.site.register(Choice), as > the choices will be integrated in t

Re: Complex model produces > 400 queries with one pageview

2009-08-13 Thread Daniel Roseman
On Aug 13, 2:59 pm, tom wrote: > Hi, > > i want to save a lot of data (measurement values). The structure is, > that i have dataloggers (which produce data), sensors (are connected > to the datalogger with foreignkey), and projects. every logger is > connected to one project (foreignkey). then, t

Re: Psyco

2009-08-13 Thread Jonas Obrist
Torsten Bronger wrote: > Hallöchen! > > Jonas Obrist writes: > > >> Is anyone using psyco in django? Does it work and is it useful (as >> in: do you get great speed improvements)? >> > > I've once seen a benchmark indicating considerable improvements of > Django performance with psyco, but

Re: Error: ce is not defined

2009-08-13 Thread Sonal Breed
Hello Joost, everyone, I am trying to add specllchecker in tinymce toolbar. I installed PyEnchant package and in settings.py have added following:- TINYMCE_DEFAULT_CONFIG = { 'plugins': "table,spellchecker,paste,searchreplace, emotions, inlinepopups", 'theme': "advanced", 'cleanup_on_startu

Is there any way to automatize caching of particular model?

2009-08-13 Thread Evgeny
Hi, is there any right way to automatize caching of instances of particular model, e.g. User from standard auth middleware? My users are referenced by a lots of objects in templates and I'm trying to avoid unnesessary queries (including select_related()). --~--~-~--~~~-

Re: Psyco

2009-08-13 Thread Matthias Kestenholz
On Thu, Aug 13, 2009 at 5:35 PM, Jonas Obrist wrote: > > Torsten Bronger wrote: >> Hallöchen! >> >> Jonas Obrist writes: >> >> >>> Is anyone using psyco in django? Does it work and is it useful (as >>> in: do you get great speed improvements)? >>> >> >> I've once seen a benchmark indicating consid

Reloading a page with new data

2009-08-13 Thread Thomas Scrace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, My app has a page where you can enter new data into the database through a form. All is working well, except that some of the fields require a choice from a drop down menu. If the choice for these fields the user wants is not already in the

Re: Error: ce is not defined

2009-08-13 Thread Sonal Breed
Hello all, All I needed to was add spellchecker in editor_template.js's theme_advanced_buttons1 and that gave me the button in toolbar. Thanks in advance, Sonal. On Aug 13, 9:05 am, Sonal Breed wrote: > Hello Joost, everyone, > > I am trying to add specllchecker in tinymce toolbar. > I install

Spellchecker gives error when clicked with empty textarea.

2009-08-13 Thread Sonal Breed
Hello all, I installed Pyenchant package and have spellchecker in the tinymce toolbar. The spellchecker button works fine when there is some text in associated text area. However, when I click the button with empty text area, following error is displayed in a dialog box: Error response: Error ru

Easy question

2009-08-13 Thread George Laskowsky
Hi, I was wondering about forms (and modelforms), what is the difference between passing it an object (in the 'instance' attribute) and passing it an dictionary with the same data (in the 'initial' attribute)? Thanks -- George Laskowsky Ziguilinsky --~--~-~--~~~---

how do you put logged-in user.username in model's textbox default value ?

2009-08-13 Thread Rami
Hi al, how can you put the logged-in user.username in model's textbox default value ? You don't have the "request" object in a model. ex: class PizzaOrder(models.Model): submitter = models.CharField(max_length=50, default=' ...,< logged- in username >') thanks. --~--~-~--~~-

Re: Psyco

2009-08-13 Thread Jonas Obrist
Matthias Kestenholz wrote: > On Thu, Aug 13, 2009 at 5:35 PM, Jonas Obrist wrote: > >> Torsten Bronger wrote: >> >>> Hallöchen! >>> >>> Jonas Obrist writes: >>> >>> >>> Is anyone using psyco in django? Does it work and is it useful (as in: do you get great speed improvemen

Re: Psyco

2009-08-13 Thread Igor Sobreira
On Thu, Aug 13, 2009 at 12:35 PM, Jonas Obrist wrote: > > Torsten Bronger wrote: > > Hallöchen! > > > > Jonas Obrist writes: > > > > > >> Is anyone using psyco in django? Does it work and is it useful (as > >> in: do you get great speed improvements)? > >> > > > > I've once seen a benchmark indic

Re: Psyco

2009-08-13 Thread David De Sousa
searching "psyco django" in your friend, google brings http://code.djangoproject.com/wiki/PsycoMiddleware maybe you should read it. On Fri, Aug 14, 2009 at 13:04, Igor Sobreira wrote: > > > On Thu, Aug 13, 2009 at 12:35 PM, Jonas Obrist wrote: >> >> Torsten Bronger wrote: >> > Hallöchen! >> > >>

Re: Psyco

2009-08-13 Thread Jonas Obrist
Igor Sobreira wrote: > > > On Thu, Aug 13, 2009 at 12:35 PM, Jonas Obrist > wrote: > > > Torsten Bronger wrote: > > Hallöchen! > > > > Jonas Obrist writes: > > > > > >> Is anyone using psyco in django? Does it work and is it useful (as >

django-rosetta issue

2009-08-13 Thread Gilles Bassière
Hi list, I've installed the django-rosetta app in my project. It works pretty well except that it seems to give precedence to its own translations. For example, in the admin interface "Home" is translated as "Racine" in french. This translation comes from: $project/rosetta/locale/fr/LC_MESSAGES/

Securing files held by FileField.

2009-08-13 Thread stupidgeek
Hi there, So I'm practically done with my first django site (i've worked with PHP for years, and I'm so glad I found django), but I am having some trouble with securing files; let me explain: I've written a faculty review system, with tight checks on access for reviews, based on committees, etc.

Remove unique from user model

2009-08-13 Thread Vitaly Babiy
Hello Guys, So I need to remove the unique flag off the username field in the user model. I already extend the auth user model but I can't override the username field. ( Django does not allow this ) What is the best way to do this? Thanks Vitaly Babiy --~--~-~--~~~--

Re: Psyco

2009-08-13 Thread Igor Sobreira
On Thu, Aug 13, 2009 at 2:50 PM, Jonas Obrist wrote: > [...] > > > > Caching isn't really an options since I only have VPS with very little > RAM and from reading the docs good caching is done with memcached... > which uses loads of RAM. Once I have the app stable and everything I'll > write som

Re: Psyco

2009-08-13 Thread Jonas Obrist
Igor Sobreira wrote: > > > On Thu, Aug 13, 2009 at 2:50 PM, Jonas Obrist > wrote: > > [...] > > > > Caching isn't really an options since I only have VPS with very > little > RAM and from reading the docs good caching is done with memcached... >

Re: Securing files held by FileField.

2009-08-13 Thread Javier Guerra
On Thu, Aug 13, 2009 at 1:00 PM, stupidgeek wrote: > I've written a faculty review system, with tight checks on access for > reviews, based on committees, etc. Each review contains a document, > held by a models.FileField, and I would like to restrict access to the > file; ie not put it under my D

over-riding queryset for admin inlines

2009-08-13 Thread smcoll
i'm having trouble getting some instances to show up as inlines in the admin. Since i'm managing multiple sites from one domain, many of those instances won't show up because the condition in their default manager ("is it on this site?") fails. i'd like my admin to use `objects` for everything,

Re: Securing files held by FileField.

2009-08-13 Thread BenW
If you want to prevent hotlinking to your documents or illicit access, then I would suggest writing a view that generates a unique URL per access. For instance, a user hits your view, they get a randomly generated link to access the file. You store that random link in their session as a one-to-o

Re: Reloading a page with new data

2009-08-13 Thread Margie
I have been able to mimic the admin behavior in my own app. I started off with the admin js functions showAddAnotherPopup and dismissAddAnotherPopup. Study these in the context of how they are used in the admin app and they should get you going. The best method for me was to use firebug and p

Re: Easy question

2009-08-13 Thread Margie
When you pass in an instance, when you later use the form.save() method, it will save any new data back to that instance. IE, if you pass in both an instance and POST data, it will basically give you a form that merges the instance data with the POST data, and now you can just save back to the in

if forloop.counter

2009-08-13 Thread When ideas fail
Hello, i know you can have things like {% if forloop.last %} but is it possible to have an if statement that matches the value of a forloop counter so it would be like: {% if forloop.counter = 6 % } or similar and how could i do that? Thanks --~--~-~--~~~---~--~

mass-updating question

2009-08-13 Thread Jonas Obrist
Hi django-users I try to do as much as I can in ORM without python looping etc. So I wonder if the following code could be done in one update: for parent in thread.forum.allparents.all(): parent.postcount += 1 parent.lastpost = post parent.save() Basically do something like: threa

Re: if forloop.counter

2009-08-13 Thread Jonas Obrist
When ideas fail wrote: > Hello, i know you can have things like {% if forloop.last %} > but is it possible to have an if statement that matches the value of a > forloop counter > so it would be like: > > {% if forloop.counter = 6 % } > > or similar and how could i do that? > > Thanks > > > > {%

Re: mass-updating question

2009-08-13 Thread Alex Gaynor
On Thu, Aug 13, 2009 at 2:51 PM, Jonas Obrist wrote: > > Hi django-users > > I try to do as much as I can in ORM without python looping etc. So I > wonder if the following code could be done in one update: > > for parent in thread.forum.allparents.all(): >    parent.postcount += 1 >    parent.last

Re: mass-updating question

2009-08-13 Thread Jonas Obrist
Alex Gaynor wrote: > On Thu, Aug 13, 2009 at 2:51 PM, Jonas Obrist wrote: > >> Hi django-users >> >> I try to do as much as I can in ORM without python looping etc. So I >> wonder if the following code could be done in one update: >> >> for parent in thread.forum.allparents.all(): >>parent.

Notify about a bug

2009-08-13 Thread Peter2108
I just ran into bug #6138 which is two years old now. There is a patch supplied but it has not made it into the version I am using (1.1 rc1, 11,332). Is there anyway to tell the Django Trace to notify me by email when this bug is updated? Thanks, Peter --~--~-~--~~~--

Cursor resource cleanup?

2009-08-13 Thread Joshua Russo
Do you need to do any cleanup of resources when you use a cursor (closing of connection/cursor)? I have the following method, do I need to do anything to cleanup resources? def get_next_NumOrd(self): from django.db import connection cursor = connection.cursor() cursor.execute("SELECT COALESCE(

Re: Securing files held by FileField.

2009-08-13 Thread stupidgeek
Thanks to both of you for the advice - Ben, yours seems to be like a step four to Javier's solution. I like it, but will only say I'll maybe try it once I've got the serving done Javier's way. Javier, could you post some example code? I'm pretty sure this is bang- on what I want, although as I sa

using Max()

2009-08-13 Thread neri...@gmail.com
Hello, Do I need t convert the value returned from Max() to an int, or am I using it incorrectly? I'm getting this template error: Caught an exception while rendering: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right synta

Re: Securing files held by FileField.

2009-08-13 Thread Javier Guerra
On Thu, Aug 13, 2009 at 3:43 PM, stupidgeek wrote: > Thanks to both of you for the advice - Ben, yours seems to be like a > step four to Javier's solution. I like it, but will only say I'll > maybe try it once I've got the serving done Javier's way. what i get from Ben's comment is more like my s

Re: new session ID is created for every request from IE 7

2009-08-13 Thread humble
Hi Malcolm Thanks for your suggestion. I did to try using a FQDN to configure IE for cookies. I am still seeing requests coming in from IE do not carry a cookie.. What am I doing wrong? On Aug 12, 9:48 pm, Malcolm Tredinnick wrote: > On Wed, 2009-08-12 at 19:21 -0700, humble wrote: > > Hi,

Re: Django, CMS, CSS newbie question

2009-08-13 Thread eldonp2
Thanks. I've gone through the book and done the tutorial on djangoproject.com Basically, my qyestion is still not answered - how do I start with a CSS template and bring Django and Django-CMS in afterward? The problem is with learning Python, HTML and Django, it will take a long time before I ge

Re: Django, CMS, CSS newbie question

2009-08-13 Thread Matthias Kestenholz
On Thu, Aug 13, 2009 at 11:55 PM, eldonp2 wrote: > > Thanks. > > I've gone through the book and done the tutorial on djangoproject.com > > Basically, my qyestion is still not answered - how do I start with a > CSS template and bring Django and Django-CMS in afterward? The problem > is with learnin

Re: is Django a good choice for a LAN app?

2009-08-13 Thread snfctech
@Torsten: Grüß Gott! Agreed, I'm sold that the web client/server model is the way to go for my project. @Jonas: Thanks for the tip! I found the multi-db thread. Looks like multi-db support is just around the corner, and I probably wont need it for a few months, so I think I'm going to give Dja

Re: if forloop.counter

2009-08-13 Thread When ideas fail
Thanks! On 13 Aug, 20:52, Jonas Obrist wrote: > When ideas fail wrote: > > Hello, i know you can have things like {% if forloop.last %} > > but is it possible to have an if statement that matches the value of a > > forloop counter > > so it would be like: > > > {% if forloop.counter = 6 % } > >

am i missing something ?

2009-08-13 Thread Nicolas Aggelidis
hi to all, i am a real newbie when it comes to django(4days). I have the following question: Let's say i have the following files #views.py from django.contrib.auth.models import User def aview(request): a_user = User.objects.filter(username="djanog") users = User.objects.all() ret

how much python do i need to know to learn/use Django?

2009-08-13 Thread snfctech
I currently know zero Python and want to start a project with Django ASAP. I've got the opportunity through my work to either take a 5-day Python bootcamp or a Django bootcamp - not both. I don't anticipate having a whole bunch of time to brush up on Python before the Django class - but is that

Re: how much python do i need to know to learn/use Django?

2009-08-13 Thread Jonas Obrist
snfctech wrote: > I currently know zero Python and want to start a project with Django > ASAP. I've got the opportunity through my work to either take a 5-day > Python bootcamp or a Django bootcamp - not both. > > I don't anticipate having a whole bunch of time to brush up on Python > before the

Re: Reloading a page with new data

2009-08-13 Thread Tom
Thanks Margie, that has set me off on the right direction. Like yourself I do not have much experience with javascript, but I guess this is a great time to learn! I will investigate both the admin javascript and jquery to see what the best option is. I will report back once I have something use

Re: Notify about a bug

2009-08-13 Thread Karen Tracey
On Thu, Aug 13, 2009 at 4:08 PM, Peter2108 wrote: > > I just ran into bug #6138 which is two years old now. There is a patch > supplied but it has not made it into the version I am using (1.1 rc1, > 11,332). Is there anyway to tell the Django Trace to notify me by > email when this bug is updated

Re: using Max()

2009-08-13 Thread Karen Tracey
On Thu, Aug 13, 2009 at 5:01 PM, neri...@gmail.com wrote: > > Hello, > > Do I need t convert the value returned from Max() to an int, or am I > using it incorrectly? I'm getting this template error: > > Caught an exception while rendering: (1064, "You have an error in your > SQL syntax; check the

Reorder models in admin application

2009-08-13 Thread Keith Gray
Can anyone tell me how to reorder the list of models shown in the admin interface for a particular application? For example, I have the following models in my proposal application: Clients, Expenses, Proposals, Rates, Subtasks, Tasks, and Works. Currently they appear in alphabetical order. I wou

Re: am i missing something ?

2009-08-13 Thread Karen Tracey
On Thu, Aug 13, 2009 at 8:25 PM, Nicolas Aggelidis wrote: > > hi to all, i am a real newbie when it comes to django(4days). > I have the following question: > > Let's say i have the following files > > #views.py > from django.contrib.auth.models import User > > > def aview(request): >a_user =

Does Django use prepared statement when generating SQL for postgresql?

2009-08-13 Thread Continuation
If not, is there a way to do it? --~--~-~--~~~---~--~~ 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

Theory: Models/Apps

2009-08-13 Thread Vadivel Kumar
I have recently started on Django .. going awesome .. I know, this question might have popped out several times before, but since Google does not yield me any results, I am writing this post. However, do point out resources if any in this mailing list. 1. What is the fundamental difference of APP

Problem with getting setting up apache server for django

2009-08-13 Thread NiJoMi
Hi I am a complete novice with Django, and have run into a problem getting it to run on a wamp server. I have managed to install Python v2.6.1, WampServer2, mod_wsgi, PostgreSql, psycopg2 and Django onto WindowsXP Professional SP3 in order to make a local development server. I am able to create a

"django-pagination" and generic.views.date_based.archive_index()

2009-08-13 Thread tezro
The question is that "django.views.generic.date_based.archive_index()" takes an optional argument "num_latest" which is 15 by default. Setting it manually to num_latest=10 is way off to correct to me. It works. I suppose that it even doesn't retrieve all the tons of data from the DB, but w

Re: Problem with getting setting up apache server for django

2009-08-13 Thread Graham Dumpleton
On Aug 14, 3:08 pm, NiJoMi wrote: > Hi > I am a complete novice with Django, and have run into a problem > getting it to run on a wamp server. > I have managed to install Python v2.6.1, WampServer2, mod_wsgi, > PostgreSql, psycopg2 and Django onto WindowsXP Professional SP3 in > order to make a

ANN: django-email-extras

2009-08-13 Thread opensou...@citrus.com.au
Hello django-users, My company has allowed me to open source another small django application I've built that I've named django-email-extras. What it does is provide some extra features around sending email such as PGP encryption with key management and using the django templating system to send