Re: "For object in object_list: related_list="...

2009-07-29 Thread Daniel Roseman
On Jul 29, 5:18 am, bweiss wrote: > I've got this to work in python shell mode, but am having trouble > translating it into a django view, and am hoping someone can point out > where I'm stuffing up. > > For background, I'm working with a database with two models: > "Employees" and "Projects", jo

Re: ANN: Django 1.1 released!

2009-07-29 Thread Daniel Roseman
On Jul 29, 7:23 am, James Bennett wrote: > Tonight we're extremely proud to announce the release of Django 1.1, > the latest major milestone in Django's development. > > To learn about the new release: > > * Blog post:http://www.djangoproject.com/weblog/2009/jul/29/1-point-1/ > * Release notes:ht

Re: No such Table Error

2009-07-29 Thread Daniel Roseman
On Jul 29, 3:54 am, marcoshernandez wrote: > Im having this error in my application (both admin models and my app > models) I'm almost certain that has to be something with Apache- > mod_wsgi not finding the files... but I just can't find the origin of > the error... > Exception Type: Operationa

Re: ANN: Django 1.1 released!

2009-07-29 Thread PanFei
i will try it On Wed, Jul 29, 2009 at 3:18 PM, Daniel Roseman wrote: > > On Jul 29, 7:23 am, James Bennett wrote: > > Tonight we're extremely proud to announce the release of Django 1.1, > > the latest major milestone in Django's development. > > > > To learn about the new release: > > > > * Blo

Re: "For object in object_list: related_list="...

2009-07-29 Thread bweiss
Thankyou, Daniel - that's done the trick. I can't believe I didn't think of that before. Thanks for the point about aggregation, too - I suspected the way I was doing things was probably not the most efficient, and I'll certainly look into the alternative. Bianca On Jul 29, 5:17 pm, Daniel Ros

Re: custom template tags and template loaders

2009-07-29 Thread krylatij
No, this settings 'django.template.loaders.app_directories.load_template_source' means, that django will look for templates( not tags ) in each(!) application you have in INSTALLED_APPS (if application folder has folder 'templates' ). On Jul 28, 11:23 pm, chefsmart wrote: > Is 'django.template

Re: cannot resolve keyword into field under Apache+mod_python

2009-07-29 Thread blumenkraft
Problem has disappeared after moving admin.autodiscover() from models.py to urls.py. On Jul 29, 4:33 am, Karen Tracey wrote: > On Tue, Jul 28, 2009 at 4:21 PM, blumenkraft wrote: > > > I beg your pardon, my code actually is: > > > def simple_function(user): > >  return UserEditions.objects.get(

encoding question

2009-07-29 Thread alecs
filename = smart_unicode(file.name, encoding='cp1251', strings_only=False, errors='strict') destination = open('%s/%s' % (dir_path, filename), 'wb+') UnicodeEncodeError ('ascii', u'1.3.1.\u0421\u043b.\u041f \u0435\u0440\u0435\u043d\u043e\u0441 \u043e\u0442\u043f \u0443\u0441\u043a\u0430.doc',

Re: encoding question

2009-07-29 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-07-29, o godz. 10:04, przez alecs: > filename = smart_unicode(file.name, encoding='cp1251', > strings_only=False, errors='strict') > > destination = open('%s/%s' % (dir_path, filename), 'wb+') > > UnicodeEncodeError ('ascii', u'1.3.1.\u0421\u043b.\u041f > \u0435\u04

Re: MS Word Characters

2009-07-29 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-07-28, o godz. 21:36, przez cootetom: > Firstly I have characters encoded by MS Word saved into the database > in there encoded form. Retrieving these back from the database is fine > but when I try to use them by generating an RTF or a PDF document then > they disp

Re: ANN: Django 1.1 released!

2009-07-29 Thread Joshua Russo
On Wed, Jul 29, 2009 at 5:23 AM, James Bennett wrote: > > Tonight we're extremely proud to announce the release of Django 1.1, > the latest major milestone in Django's development. > > To learn about the new release: > > * Blog post: http://www.djangoproject.com/weblog/2009/jul/29/1-point-1/ > * R

Re: permalink don't works

2009-07-29 Thread Brian May
On Tue, Jul 28, 2009 at 06:05:25AM -0700, Daniel Roseman wrote: > Your 'view' URL doesn't take args, it takes kwargs. So the lookup > should be: > return ('view', (), {'object_id': self.id}) Is this documented anywhere? I looked through the official documentation at

Re: IDE for Django and Ext JS

2009-07-29 Thread Alexandru Nedelcu
On Tue, 2009-07-28 at 20:20 +0200, Jonas Obrist wrote: > Maybe a good question would be is there any IDE that supports the django > template language? I use Emacs with * django-html-mode: http://code.djangoproject.com/wiki/Emacs * yasnippets: http://code.google.com/p/yasnippet/ It really

Re: ANN: Django 1.1 released!

2009-07-29 Thread Ismail Dhorat
Well done guys! Thanks for all the hard work. On Wed, Jul 29, 2009 at 9:21 AM, PanFei wrote: > i will try it > > On Wed, Jul 29, 2009 at 3:18 PM, Daniel Roseman wrote: > >> >> On Jul 29, 7:23 am, James Bennett wrote: >> > Tonight we're extremely proud to announce the release of Django 1.1, >>

Re: IDE for Django and Ext JS

2009-07-29 Thread Ismail Dhorat
There are a few options: - Komodo Edit - Eclipse with plugin - WingIDE - TextMate (Mac) with django bundle - Coda (Mac) with Django extensions - Netbeans Python EA I have looked at all of these, and found Netbeans the best fit for me since i wanted something that worked on all platforms (Win, Ma

Shameless Plug for local django group

2009-07-29 Thread Ismail Dhorat
1st apologies... for the plug But i am looking to connect with other python/django dev's locally... and I have setup a django group for South Africa. So if you know your boet from your china and your robot from your takkie Feel free to join... hopefully if there is enough of us we ca

Re: custom template tags and template loaders

2009-07-29 Thread chefsmart
I am using the smart_if templatetag from http://www.djangosnippets.org/snippets/1350/ but when i remove the 'django.template.loaders.app_directories.load_template_source' this custom templatetag stops working. I am pretty sure this loader is being used for templatetags as well. On Jul 29, 12:4

Re: Django, multiple domains, multiple locales/languages

2009-07-29 Thread AE
This could solve your problem domain based accounts. http://github.com/CrowdSense/django-muaccounts/tree/master On Jul 24, 3:57 pm, Joshua Russo wrote: > I ran into some conceptual problems with lazy vs non-lazy too. Any global > context needs to be lazy. This includes everything declared outsi

Re: ANN: Django 1.1 released!

2009-07-29 Thread Andy Mikhailenko
Thanks for this excellent software! -- Andy --~--~-~--~~~---~--~~ 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, sen

test if GET is "empty"

2009-07-29 Thread Salvatore Leone
Hello, I need to test if the request.GET is empty or if it holds some variable. So if is empty I can redirect to a page, and if there is some variable (like user_id='2') I can process the request and do something with theese variables. Is there any way or do I have to test for every single v

Re: ANN: Django 1.1 released!

2009-07-29 Thread raynix
Congratulations Django team! On Jul 29, 2:23 pm, James Bennett wrote: > Tonight we're extremely proud to announce the release of Django 1.1, > the latest major milestone in Django's development. > > To learn about the new release: > > * Blog post:http://www.djangoproject.com/weblog/2009/jul/29/1

Re: Full-text search: what to use

2009-07-29 Thread dlvosse...@gmail.com
I've recently adopted the use of xapian for full text search, via the djapian django app which works like a charm. Xapian is written in C++ with python bindings, and with the djapian app u can stay within the django realm; e.g. updating the index can be done with manage.py index.. When using djan

Re: ANN: Django 1.1 released!

2009-07-29 Thread Roman Vorushin
> Tonight we're extremely proud to announce the release of Django 1.1, > the latest major milestone in Django's development. Nice work, guys! Thank you very much! Roman Vorushin On Jul 29, 10:23 am, James Bennett wrote: > Tonight we're extremely proud to announce the release of Django 1.1

[solved]Re: test if GET is "empty"

2009-07-29 Thread Salvatore Leone
I answer my self: all I need is to test the length of the dictionary. if request.method == "GET" and len(request.GET) != 0: #do stuff > Hello, > > I need to test if the request.GET is empty or if it holds some variable. > So if is empty I can redirect to a page, and if there is some variable

Re: IDE for Django and Ext JS

2009-07-29 Thread esatterwh...@wi.rr.com
You might look at Aptana Studio. It's another off shoot of eclipse, but built for web dev. Does all the nice code complete for HTML, Javascript and now even has a JSON editor. Also comes with support for Javascript libraries ( Ext Being one of them ), so it comes built with code completion and do

Re: [solved]Re: test if GET is "empty"

2009-07-29 Thread Eric Abrahamsen
On Jul 29, 2009, at 6:06 PM, Salvatore Leone wrote: > > I answer my self: > > all I need is to test the length of the dictionary. > > if request.method == "GET" and len(request.GET) != 0: Given the way boolean tests go in Python, you should just be able to test for the dictionary itself: if

Re: No such Table Error

2009-07-29 Thread marcoshernandez
mmm!... That's interesting The dbshell says: "Error: You appear not to have the 'sqlite3' program installed or on your path." Like i said, with the runserver everything is fine... that's weird I added the sqlite3 app dir to the path env-var in the OS but the same error raises in "manage.py dbs

Re: ANN: Django 1.1 released!

2009-07-29 Thread rajeesh
Applause! --- Rajeesh --~--~-~--~~~---~--~~ 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

Re: MS Word Characters

2009-07-29 Thread cootetom
I'm generating RTF using the django templating engine. I have some RTF that I generated in OpenOffice and I'm just using the template engine to put the text into it then get the resulting rendered string. For PDF generation I'm using pisa which excepts an encoding parameter, I have passed it utf-8

Re: ANN: Django 1.1 released!

2009-07-29 Thread ankit rai
Congratulates to ALL the user & developers of Django On Wed, Jul 29, 2009 at 5:11 PM, rajeesh wrote: > > Applause! > > --- > Rajeesh > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: user profiles and the admin

2009-07-29 Thread Chris Curvey
Drat. That's not it. I'll keep trying. On Jul 28, 5:01 pm, Asinox wrote: > im new , but i think that u need this part: > > class UserProfileAdmin(UserAdmin): >     inlines = [UserProfileInline] >     list_display = ('user', 'sex','phone') > > regards, > > On Jul 28, 3:01 pm, Chris Curvey wrot

templatetag issue

2009-07-29 Thread Daymien
Hallo, I created a templatetag, wich I use to display some notes on admin index template. With the bildin develop webserver all works fine. But when I start the apache server with mod_wsgi or mod_python it won't work: * Templat

Re: ANN: Django 1.1 released!

2009-07-29 Thread diegueus9
Thanks a lot, for your work in this wonderful framework! On Wed, Jul 29, 2009 at 06:56, ankit rai wrote: > Congratulates to ALL the user & developers of Django > > On Wed, Jul 29, 2009 at 5:11 PM, rajeesh wrote: >> >> Applause! >> >> --- >> Rajeesh >> > > > > > -- Diego Andrés Sa

XML serialization and Unicode

2009-07-29 Thread l5x
Hello, first of all, congratulations! I have a problem. When trying to open template I get following error: Original Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node result = node.render(context) File "/usr/lib/

inspectdb and MySQL

2009-07-29 Thread Juanjo Conti
In http://docs.djangoproject.com/en/dev/ref/django-admin/ i read "inspectdb works with PostgreSQL, MySQL and SQLite. Foreign-key detection only works in PostgreSQL and with certain types of MySQL tables." Could you tell me the preferred MySQL table types? Thanks, -- Juanjo Conti --~--~---

Re: inspectdb and MySQL

2009-07-29 Thread Joshua Russo
On Wed, Jul 29, 2009 at 12:35 PM, Juanjo Conti wrote: > > In http://docs.djangoproject.com/en/dev/ref/django-admin/ i read > "inspectdb works with PostgreSQL, MySQL and SQLite. Foreign-key > detection only works in PostgreSQL and with certain types of MySQL > tables." > > Could you tell me the pr

Re: templatetag issue

2009-07-29 Thread chefsmart
I have a similar issue. I have been stuck on this for too long now. What is happening is that Django is not locating your custom note_tags template tag in your application's templatetag directory, though I don't know why. Try this --- on your production server, copy your note_tags file from your

Re: templatetag issue

2009-07-29 Thread Greg Fuller
Are you missing a __init__.py in the tags directory? On Jul 29, 7:57 am, Daymien wrote: > Hallo, > > I created a templatetag, wich I use to display some notes on admin > index template. > With the bildin develop webserver all works fine. > > But when I start the apache server with mod_wsgi or

sqlcustom example?

2009-07-29 Thread Joshua Russo
I'm confused about how sqlcustom fits into the dbsync process. I ran "manage.py sqlcustom myapp" and it printed the sql properly but that's all it did. Granted that's all the docs say it does anyway, but then how do execute those statements? --~--~-~--~~~---~--~~ Yo

Re: XML serialization and Unicode

2009-07-29 Thread cootetom
I would imagine that the deserialize function tries to encode the input down to ascii. My suggestion would be to find the XML serializer code and see what it is doing with the input string you pass to it. On Jul 29, 2:23 pm, l5x wrote: > Hello, > > first of all, congratulations! > > I have a p

Re: templatetag issue

2009-07-29 Thread chefsmart
In my case, I have the __init__.py just as I do on my development environment. On Jul 29, 6:46 pm, Greg Fuller wrote: > Are you  missing a __init__.py in the tags directory? > > On Jul 29, 7:57 am, Daymien wrote: > > > Hallo, > > > I created a templatetag, wich I use to display some notes on ad

Re: XML serialization and Unicode

2009-07-29 Thread cootetom
To add, something just popped into my head. Have you got DEFAULT_CHARSET = 'utf-8' in your settings.py file. On Jul 29, 2:51 pm, cootetom wrote: > I would imagine that the deserialize function tries to encode the > input down to ascii. My suggestion would be to find the XML serializer > code a

Re: templatetag issue

2009-07-29 Thread Daymien
I have teh __init__.py in the directory, too. I use the newest stabel 1.1 So I will try your solution... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: [solved]Re: test if GET is "empty"

2009-07-29 Thread Salvatore Leone
> Given the way boolean tests go in Python, you should just be able to > test for the dictionary itself: > > if request.GET: > > else: > > > E > mmm I don't think so, I think request.GET is true even if the dictionary is empty, isn't it? so the test will allways return tru

Re: IDE for Django and Ext JS

2009-07-29 Thread Wiiboy
I use Kate for all my stuff, because, although not an IDE, it is one hell of text editor. --~--~-~--~~~---~--~~ 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@googleg

How to send form via email

2009-07-29 Thread el_kolo
Hi, I have a form (class myForm(forms.Form)) with a few fields. I want to send this form to my email account. I have put this form to my template with button SEND. Everything works fine but using send_mail function I can send only ONE field from my from to my email account. send_mail('Subject her

Re: templatetag issue

2009-07-29 Thread Daymien
Your solution don't work for me yet :-( I have been copy the note_tags.py to django/templatetags/ and restartet Apache. But I got the same issue. Is there anything else to do? Regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Simple Pagination Problem

2009-07-29 Thread Aldo
I want to display to my html page Displaying results 1- 10 of 55322 found. Is there something straight forward in the pagination to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: How to send form via email

2009-07-29 Thread Jeremy Boyd
Kolo, I'm not positive this is what you're asking, but it seems to me that a) you might want to build up a string with the message as you'd like it to be displayed. So, for example: subject = field1 + " has sent you a new message" message = " ".join("You have a new message! Here are the form fie

Re: How to send form via email

2009-07-29 Thread Steve Schwarz
On Wed, Jul 29, 2009 at 9:08 AM, el_kolo wrote: > > Hi, > > I have a form (class myForm(forms.Form)) with a few fields. I want to > send this form to my email account. I have put this form to my > template with button SEND. Everything works fine but using send_mail > function I can send only ONE

Re: custom template tags and template loaders

2009-07-29 Thread krylatij
I my case custom tags are still working after i removed ''django.template.loaders.app_directories.load_template_source'' from settings. You can see comment in site-packages\django\template\loaders \app_directories.py: """ Wrapper for loading templates from "templates" directories in INSTALLED_APPS

Re: [solved]Re: test if GET is "empty"

2009-07-29 Thread Luke Seelenbinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There is a more "pythonic" way to test, use request.GET.get(, False) e.g.: if request.GET.get('q', False): etc. That tests the dict for the key 'q' if it's not there, it returns false. Luke Seelenbinder luke.seelenbin...@gmail.com Salvatore Leon

Re: ANN: Django 1.1 released!

2009-07-29 Thread evilek
Good job! Congratulations and thanks ;) --~--~-~--~~~---~--~~ 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: XML serialization and Unicode

2009-07-29 Thread l5x
Hello, On 29 Lip, 15:56, cootetom wrote: > To add, something just popped into my head. Have you got > DEFAULT_CHARSET = 'utf-8' in your settings.py fiile It didn't help. > On Jul 29, 2:51 pm, cootetom wrote: > > > I would imagine that the deserialize function tries to encode the > > input dow

Re: custom template tags and template loaders

2009-07-29 Thread chefsmart
I get the following message. Please note that everything is ok in my development setup, but the same thing doesn't work in my production setup. TemplateSyntaxError at /staff/ 'smart_if' is not a valid tag library: Could not load template library from django.templatetags.smart_if, No module name

Re: Simple Pagination Problem

2009-07-29 Thread krylatij
Read documentation http://www.djangoproject.com/documentation/models/pagination/ --~--~-~--~~~---~--~~ 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

Re: templatetag issue

2009-07-29 Thread chefsmart
Where is your production setup? Webfaction? VPS? And which version of Django are you using? On Jul 29, 7:12 pm, Daymien wrote: > Your solution don't work for me yet :-( > I have been copy the note_tags.py to django/templatetags/ and > restartet Apache. > But I got the same issue. Is there anyth

Re: Re: How to send form via email

2009-07-29 Thread el_kolo
Thank you for your answer but there is error "join() takes exactly one argument (3 given)" "Jeremy Boyd" pisze: > > Kolo, > > I'm not positive this is what you're asking, but it seems to me that > a) you might want to build up a string with the message as you'd like > it to be displayed. So, f

Re: Simple Pagination Problem

2009-07-29 Thread cootetom
Yes, have a read of the documentation. When you create a pagination class you have access to all the variables needed that tell you how many pages there are, what page you are currently on etc. http://docs.djangoproject.com/en/dev/topics/pagination/#topics-pagination On Jul 29, 3:15 pm, Aldo w

Re: Simple Pagination Problem

2009-07-29 Thread Mark
Thanks, but I have been. Its still not clear - To date I have always been displaying "Page 1 of 23. Showing 10 results per page" I am just lost on how to do this. On Jul 29, 3:44 pm, krylatij wrote: > Read > documentationhttp://www.djangoproject.com/documentation/models/pagination/ --~--~

Re: Simple Pagination Problem

2009-07-29 Thread Mark
These seem to be what I am looking for - but they are not available in the template from what I see. page2.start_index() page2.end_index() On Jul 29, 3:51 pm, Mark wrote: > Thanks, but I have been. Its still not clear - To date I have always > beendisplaying > > "Page 1 of 23. Showing 10results

Re: Simple Pagination Problem

2009-07-29 Thread cootetom
You may have to do a bit of computation back on the server in python code to get the data you're after. From the pagination object you know what page you are currently on, you also know how many items are on a page so: last_item = page_num * items_per_page first_item = last_item - items_per_page

Re: Simple Pagination Problem

2009-07-29 Thread Mark
Ye thats what I was afraid of - i was hoping there was something in the Pagination object that would help me out. But I cant see anything. Maybe someone will point it out after I have implemented the above. Thanks. On Jul 29, 3:58 pm, cootetom wrote: > You may have to do a bit of computation b

Re: Simple Pagination Problem

2009-07-29 Thread Alex Gaynor
On Wed, Jul 29, 2009 at 10:04 AM, Mark wrote: > > Ye thats what I was afraid of - i was hoping there was something in > the Pagination object that would help me out. > But I cant see anything. > > Maybe someone will point it out after I have implemented the above. > > Thanks. > > On Jul 29, 3:58 p

[Internationalization] javascript catalog

2009-07-29 Thread Adrián Ribao
Hello, I'm trying to use the javascript catalog in a project. The documentation says: Those translation strings are taken from the application, project or Django core, according to what you specify in either the info_dict or the URL. Well, I need to load the strings from the project. I mean, Al

file upload issue

2009-07-29 Thread Salvatore Leone
Hello again, I know this is probably an already discussed question, but I can't get out of this. I've got a form which may or may not send a file, here is the snippet of my view function: if request.method == POST: #process the form ... if request.FILES: att

Re: file upload issue

2009-07-29 Thread cootetom
Use a modal form for this which includes a file field that has required set to false. http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#topics-forms-modelforms http://docs.djangoproject.com/en/dev/ref/forms/fields/#filefield Easier to let django handle the request then figure it all

Re: inspectdb and MySQL

2009-07-29 Thread Juanjo Conti
2009/7/29 Joshua Russo : > On Wed, Jul 29, 2009 at 12:35 PM, Juanjo Conti wrote: >> >> In http://docs.djangoproject.com/en/dev/ref/django-admin/ i read >> "inspectdb works with PostgreSQL, MySQL and SQLite. Foreign-key >> detection only works in PostgreSQL and with certain types of MySQL >> table

[solved]Re: file upload issue

2009-07-29 Thread Salvatore Leone
Again I found the answer... I forgot to put enctype="multipart/form-data" in my form... sorry for disturbing you. -S Salvatore Leone ha scritto: > Hello again, > > I know this is probably an already discussed question, but I can't get > out of this. I've got a form which may or may not send

Where is the "Else if"... ?

2009-07-29 Thread Asinox
Hi guy, im looking for the simpley if ...else if but i cant see in the django documentation Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Where is the "Else if"... ?

2009-07-29 Thread Fred Chevitarese
Maybe you have to look on the python documentation. http://www.python.org/doc/ 2009/7/29 Asinox > > Hi guy, im looking for the simpley if ...else if but i cant see > in the django documentation > > Thanks :) > > > -- http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux -

Re: IDE for Django and Ext JS

2009-07-29 Thread jvivs
My development pattern at this point consists of Aptana + PyDev for python and Textmate with Django bundles for templating. I'm used to writing javascript in Intellij IDEA, so I really wish they would get their crap together and implement python/django support. Barring that, Aptana's pretty dece

How can I reload attributes from the database

2009-07-29 Thread Fleg
Hi, I have a model mapping tables in a database with several foreign keys. class Scheduler(models.Model): id_schedule = models.AutoField(primary_key=True) id_parent = models.ForeignKey ("Scheduler",db_column='id_parent',to_field='id_schedule') id_object_type = models.Forei

Re: custom template tags and template loaders

2009-07-29 Thread krylatij
And what about other custom tags? I actually have no more ideas, what it can be. --~--~-~--~~~---~--~~ 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.co

Re: Full-text search: what to use

2009-07-29 Thread Kegan
Any thoughts on using PostgreSQL built-in full text search ? On Jul 29, 5:49 pm, "dlvosse...@gmail.com" wrote: > I've recently adopted the use of xapian for full text search, via the > djapian django app which works like a charm. Xapian is written in C++ > with python bindings, and with the dja

Load order for fixtures

2009-07-29 Thread Aaron
Hi all, Is there a way to force the order of apps from which fixtures are loaded? We have fixtures in one app that depend ( via foreign keys ) on fixtures in another app being already loaded. Thanks in advance, Aaron --~--~-~--~~~---~--~~ You received this messa

Re: IDE for Django and Ext JS

2009-07-29 Thread Hank Gay
There's a well-reviewed [Python plugin](http://plugins.intellij.net/plugin/?id=631) for IntelliJ, though the Django front is not as promising. On Wed, Jul 29, 2009 at 12:06 PM, jvivs wrote: > > My development pattern at this point consists of Aptana + PyDev for > python and Textmate with Django b

Re: ANN: Django 1.1 released!

2009-07-29 Thread matt barto
Congrats! Can't wait to try it out. Thanks for all the hard work. On Jul 28, 11:23 pm, James Bennett wrote: > Tonight we're extremely proud to announce the release of Django 1.1, > the latest major milestone in Django's development. > > To learn about the new release: > > * Blog post:http://ww

Re: Unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2009-07-29 Thread Dave MacFarlane
On 28-Jul-09, at 8:40 PM, Karen Tracey wrote: > > I don't know if it's still an issue but I have a vague recollection > of seeing a similar problem mentioned fairly recently, and reported > as fixed by upgrading psycopg2. I'm not up on psycopg2 levels -- is > 2.0.7 the latest? > > You can s

Re: IDE for Django and Ext JS

2009-07-29 Thread Vasil Vangelovski
There's not much benefit in using an IDE like eclipse or netbeans for Python and JS, they are also slow enough to counter productivity. I'd rather waste those CPU cycles for playing random noises in the background. --~--~-~--~~~---~--~~ You received this message be

Re: Where is the "Else if"... ?

2009-07-29 Thread Daniel Roseman
On Jul 29, 4:54 pm, Asinox wrote: > Hi guy, im looking for the simpley  if ...else if but i cant see > in the django documentation > > Thanks :) You need to be slightly less concise in your question. Do you mean in the template language? If so, it doesn't have one, by design. You can ne

Query builder or report builder

2009-07-29 Thread mike
I'm new to django, somewhere between a newbie and novice :-). I'm looking for a query builder front end...middleware or app, and thought I'd ask if anyone knows of such a django app or middleware. I'm trying to avoid re-inventing the wheel, but I'm willing write one if one doesn't exist. I've fo

Re: Query builder or report builder

2009-07-29 Thread Alex Gaynor
On Wed, Jul 29, 2009 at 12:38 PM, mike wrote: > > I'm new to django, somewhere between a newbie and novice :-). > > I'm looking for a query builder front end...middleware or app, and > thought I'd ask if anyone knows of such a django app or middleware. > I'm trying to avoid re-inventing the wheel,

captcha

2009-07-29 Thread ramanathan
how to include captcha code in django ? Regards Ramanathan.M --~--~-~--~~~---~--~~ 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

Re: inspectdb and MySQL

2009-07-29 Thread Joshua Russo
On Wed, Jul 29, 2009 at 2:39 PM, Juanjo Conti wrote: > 2009/7/29 Joshua Russo : > > On Wed, Jul 29, 2009 at 12:35 PM, Juanjo Conti > wrote: > >> > >> In http://docs.djangoproject.com/en/dev/ref/django-admin/ i read > >> "inspectdb works with PostgreSQL, MySQL and SQLite. Foreign-key > >> detecti

Re: captcha

2009-07-29 Thread Gabriel .
On Wed, Jul 29, 2009 at 3:38 PM, ramanathan wrote: > > how to include captcha code in django ? > Did you try google? http://code.google.com/p/django-simple-captcha/ http://seeknuance.com/2008/03/18/integrating-recaptcha-with-django/ -- Kind Regards --~--~-~--~~~-

Re: templatetag issue

2009-07-29 Thread Daymien
My Setup is on the Intranet of my company (SLES 10 SP2 System with apache2 and Django 1.1) --~--~-~--~~~---~--~~ 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

Oracle 11g + mod_wsgi + Apache + Django on Windows 2003 does not work

2009-07-29 Thread tcpipmen
Hi All, I have no problem running Oracle 11g with django on build-in development server and everything is fine. But When I setup with mod_wsgi with Apache I'm getting messages like below. I'm using python 2.6 and installed cx_Oracle-5.0.2-11g.win32-py2.6.msi. ORACLE_HOME is set to "C:\app\Admini

Re: custom template tags and template loaders

2009-07-29 Thread chefsmart
I got no other custom tags. This is pretty confusing. It works perfectly on the django dev server with no code changes. Don't really know enough about the pre-requisites (settings.py, etc) for using custom templatetags, so haven't progressed much in my troubleshooting. On Jul 29, 9:24 pm, krylat

Comment Detail URI

2009-07-29 Thread grElement
One thing I'm trying to do is have an view that shows an individual comment. So for instance I will have a list of comments and then you could link that to a page that pulled up a view that just displayed that individual comment. So I have urls that look something like: mysite.com/document/ch/se

Re: sqlcustom example?

2009-07-29 Thread Joshua Russo
On Jul 29, 12:48 pm, Joshua Russo wrote: > I'm confused about how sqlcustom fits into the dbsync process. > I ran "manage.py sqlcustom myapp" and it printed the sql properly but that's > all it did. Granted that's all the docs say it does anyway, but then how do > execute those statements? For a

django-users@googlegroups.com

2009-07-29 Thread Margie
I have a question about what people recommend when rendering custom widgets. My question relates to whether the rendered widgets should contain their own scripts. Let me use an example. Say I have a table and each row in the table has a date input. To the right of each date input I want to ren

Re:

2009-07-29 Thread Alex Gaynor
On Wed, Jul 29, 2009 at 2:25 PM, Margie wrote: > > I have a question about what people recommend when rendering custom > widgets.  My question relates to whether the rendered widgets should > contain their own scripts.  Let me use an example.  Say I have a table > and each row in the table has a d

Re:

2009-07-29 Thread Vasil Vangelovski
> The way I do it is what you allude to at the end, have a special class > on the inputs and then use the inner Media class of the widget > (http://docs.djangoproject.com/en/dev/topics/forms/media/) to provide > a javascript file that'll automatically add the widget to all of the > items with that

Submitting a form

2009-07-29 Thread When ideas fail
I've created a model form and I was wondering what the correct way to save this was. I've tried adapting the view from the standard django forms docs but maybe it should be different? This is what i have in my view (it says contact form but its a form that should save contacts in a db): class Co

Re: Submitting a form

2009-07-29 Thread Daniel Roseman
On Jul 29, 9:17 pm, When ideas fail wrote: > I've created a model form and I was wondering what the correct way to > save this was. I've tried adapting the view from the standard django > forms docs but maybe it should be different? > > This is what i have in my view (it says contact form but its

Re: Submitting a form

2009-07-29 Thread When ideas fail
Ok thanks seems to work now. On 29 July, 21:27, Daniel Roseman wrote: > On Jul 29, 9:17 pm, When ideas fail wrote: > > > > > I've created a model form and I was wondering what the correct way to > > save this was. I've tried adapting the view from the standard django > > forms docs but maybe it

Re:

2009-07-29 Thread Margie
Ok - yes, that works great for my date widget. So now I have just a tiny .js file that contains this: $(document).ready(function() { Date.firstDayOfWeek = 0; Date.format = 'mm/dd/'; $('.chipvision_date_widget').datePicker();

Django Permissions: Disabling automatic creation of default permissions

2009-07-29 Thread Jashugan
Hi, I use custom permissions in my application and do not use the default permissions. How do I disable the automatic creation of the default permissions (i.e. when manage.py syncdb is called), while still enabling creation of custom permissions? TIA --~--~-~--~~~---~

Re:

2009-07-29 Thread Daniel Roseman
On Jul 29, 10:01 pm, Margie wrote: > Currently each of my autocomplete fields ends up rendering with this > long script containing the contents of that html snippet (but longer > since there are a bunch of other arguments).  Is there a way for me to > use the model that you're describing for thi

  1   2   >