Re: newforms confirmation page, displaying input data

2007-12-05 Thread James Bennett
On Dec 6, 2007 1:13 AM, wideback <[EMAIL PROTECTED]> wrote: > I am trying to display the data input using a newform on a new page > after it is verified. I am looking at the 'Complex template output' > code given in the newforms documentation. However I do not want to > display the input field wi

newforms confirmation page, displaying input data

2007-12-05 Thread wideback
I am trying to display the data input using a newform on a new page after it is verified. I am looking at the 'Complex template output' code given in the newforms documentation. However I do not want to display the input field with data (what '{{ field }}') displays but rather just the data. Does

Re: "Between" bug when using SQLite?

2007-12-05 Thread James Bennett
On Dec 5, 2007 9:56 PM, Doug Van Horn <[EMAIL PROTECTED]> wrote: > I opened: > > http://code.djangoproject.com/ticket/6141 I didn't see this until just now, but it's actually an issue that's already been reported. I've closed your ticket as a duplicate, with a pointer to the original report (and

Re: Is there a better way to do this with the DB API?

2007-12-05 Thread globophobe
On Dec 6, 10:29 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-12-05 at 15:34 -0800, globophobe wrote: > Probably an easier question to answer if we could see the models > involved (and perhaps an English description of what you are wanting to > achieve). My gut feeling is that t

Re: "Between" bug when using SQLite?

2007-12-05 Thread Doug Van Horn
On Dec 5, 8:29 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote: > On Dec 5, 5:31 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote: > [snip snip snip] I opened: http://code.djangoproject.com/ticket/6141 and added some patches. Hopefully it'll get looked at and accepted. doug. --~--~-~--~~--

Re: Combating submission form Spam

2007-12-05 Thread James Bennett
On Dec 5, 2007 6:50 PM, Darryl Ross <[EMAIL PROTECTED]> wrote: > One of the websites I run has started getting spam via the contact form. > > What is the recommended way of dealing with this? Do I need to go the > route of using something like django-captcha? Shameless plug: my contact-form appli

Re: Django Book

2007-12-05 Thread James Bennett
On Dec 5, 2007 8:41 PM, etank <[EMAIL PROTECTED]> wrote: > Is the code for the http://www.djangobook.com/en/beta/ available > anywhere for download? I am wanting to write some documentation for > Foresight Linux and I like the way that this site works. Any help that > you provide would be great.

Django Book

2007-12-05 Thread etank
Is the code for the http://www.djangobook.com/en/beta/ available anywhere for download? I am wanting to write some documentation for Foresight Linux and I like the way that this site works. Any help that you provide would be great. --~--~-~--~~~---~--~~ You received

Re: Strange FastCGI problems

2007-12-05 Thread Graham Dumpleton
On Dec 6, 12:40 pm, TP <[EMAIL PROTECTED]> wrote: > I thought I needed multiple Apache's since I frequently have several > concurrent requests. The actual dynamic python processing is quick, > but since clients could be connected for relatively long (slow > connections, etc), I thought I'd need mu

Re: "Between" bug when using SQLite?

2007-12-05 Thread Doug Van Horn
On Dec 5, 5:31 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote: > I'm running into a funny issue when testing with SQLite3 (Python 2.5). > > I have a model with the following (simplified): > > class Event(models.Model): > event_title = models.CharField() > event_from_date = models.DateField()

Re: Strange FastCGI problems

2007-12-05 Thread TP
I thought I needed multiple Apache's since I frequently have several concurrent requests. The actual dynamic python processing is quick, but since clients could be connected for relatively long (slow connections, etc), I thought I'd need multiple Apache's talking to each. Since Django says it's no

Re: Combating submission form Spam

2007-12-05 Thread Darryl Ross
John Lenton wrote: > recaptcha: > http://recaptcha.net/ Looks like an interesting project, I will check it out. Thanks. Regards Darryl signature.asc Description: OpenPGP digital signature

Re: Is there a better way to do this with the DB API?

2007-12-05 Thread Malcolm Tredinnick
On Wed, 2007-12-05 at 15:34 -0800, globophobe wrote: > I've read the documentation. I admit to being more than a little > deficient with databases. Can anybody suggest a better way? > > if len(study) < 20: > exclude = user.study_set.filter(stack=stack).values('card') > cards = stack.card

Re: Strange FastCGI problems

2007-12-05 Thread Graham Dumpleton
On Dec 6, 12:04 pm, TP <[EMAIL PROTECTED]> wrote: > I've been using Django for the past few months and had great results > with Apache and mod_python. However, I'd like to try and reduce the > amount of memory that is used by having multiple Apache's each with > their own copy of my application. I

Re: Installation - symlink vs. python setup.py install

2007-12-05 Thread Graham Dumpleton
On 10.5 with a virgin Python 2.5 installation there is no: /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ site-packages If you have it then something has wrongly created it and you probably should delete the whole directory in case it causes problems. The Python 2.3 ins

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
Karen, The ticket says, "If flatpages and DEBUG=False and 404.html doesn't exist it throws the error". I have DEBUG=True, and I'm getting an "Unhandled Exception" error, not the default yellow "Django 404 Error with DEBUG=True" Anyways, the issue now seems to be with the way flatpages handles 5

Strange FastCGI problems

2007-12-05 Thread TP
I've been using Django for the past few months and had great results with Apache and mod_python. However, I'd like to try and reduce the amount of memory that is used by having multiple Apache's each with their own copy of my application. I decided to try mod_fastcgi in Apache and Django's FastCGI

Re: create_object generic view exampe

2007-12-05 Thread Malcolm Tredinnick
On Wed, 2007-12-05 at 13:56 +0100, Florian Lindner wrote: > Hello, > I'm looking for an example on how to use the > django.views.generic.create_update.create_object generic view (with > newforms). Since that generic view hasn't been ported to newforms yet, you're asking for something that is

Re: cache middleware and middlewareorder

2007-12-05 Thread Malcolm Tredinnick
On Wed, 2007-12-05 at 15:26 +0100, Paul Rauch wrote: > hi list, > > I got some Problems with the middlewareorder of cachemiddlerware, > since it does not seem possible to order it the right way. > > >Put the CacheMiddleware before any other middleware that might add > >something to the Vary hea

Re: Combating submission form Spam

2007-12-05 Thread John Lenton
On Dec 5, 2007 9:50 PM, Darryl Ross <[EMAIL PROTECTED]> wrote: > Hey All, > > One of the websites I run has started getting spam via the contact form. > > What is the recommended way of dealing with this? Do I need to go the > route of using something like django-captcha? > > Thanks for any insigh

Re: Order By Calculated Value??

2007-12-05 Thread Darryl Ross
Hi Tane, [untested with Many2Many, but should work, it works for ForeignKeys] In your Entry save() method call the save method of each of your related categories after you do your super().save() {{{ class Entry(models.Model): ... def save(self): if not self.slug: self

Re: Combating submission form Spam

2007-12-05 Thread Joseph Heck
I'd recommend something along those lines - otherwise they'll hit you hard and keep coming! -joe On Dec 5, 2007 4:50 PM, Darryl Ross <[EMAIL PROTECTED]> wrote: > Hey All, > > One of the websites I run has started getting spam via the contact form. > > What is the recommended way of dealing with

Combating submission form Spam

2007-12-05 Thread Darryl Ross
Hey All, One of the websites I run has started getting spam via the contact form. What is the recommended way of dealing with this? Do I need to go the route of using something like django-captcha? Thanks for any insight. Regards Darryl signature.asc Description: OpenPGP digital signature

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Karen Tracey
On 12/5/07, Derek Payton <[EMAIL PROTECTED]> wrote: > > > Apparently there was an issue with my svn. I downgraded to a previous > revision (pre-6778), then back to trunk. Everything is working now, > except flatpages. Here's the error from lighttpd's log: > http://dpaste.com/26918/ > > As per the l

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
Apparently there was an issue with my svn. I downgraded to a previous revision (pre-6778), then back to trunk. Everything is working now, except flatpages. Here's the error from lighttpd's log: http://dpaste.com/26918/ As per the last line in the log, I created a (blank) 404.html in my templates

Re: Installation - symlink vs. python setup.py install

2007-12-05 Thread Graham Dumpleton
Okay, I had a part brain fade there. Was confusing /Library/Frameworks/ Python with /Library/Python. The /Library/Frameworks/Python is what MacPorts uses. Also looks like Python 2.5 on Mac OS X 10.5 sets up sys.path differently, ie., uses shorter /Library/Python/2.5/sites-packages instead of long

(solved) Re: Custom template tag and filters in resolve_variable

2007-12-05 Thread Michal Ludvig
Michal Ludvig wrote: > for the project I'm working on I needed to create a custom template tag, > call it 'mytag'. > > If I use it as {% mytag something %} everything goes fine (where > 'something' is a string passed to the template). > However I can't add any filters to that 'something'. As soo

Re: Installation - symlink vs. python setup.py install

2007-12-05 Thread Greig Rapley
$ sudo port installed does not include python in the list returned, so I assume I am using the OS version. $ which python /usr/bin/python and, $ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" /Library/Python/2.5/site-packages I have been symlinking into /Li

Is there a better way to do this with the DB API?

2007-12-05 Thread globophobe
I've read the documentation. I admit to being more than a little deficient with databases. Can anybody suggest a better way? if len(study) < 20: exclude = user.study_set.filter(stack=stack).values('card') cards = stack.card_set.exclude(id__in=[i.get('card') for i in exclude])[:20-len(stud

"Between" bug when using SQLite?

2007-12-05 Thread Doug Van Horn
I'm running into a funny issue when testing with SQLite3 (Python 2.5). I have a model with the following (simplified): class Event(models.Model): event_title = models.CharField() event_from_date = models.DateField() I create an event on 2008-01-01 (January 1st) and on 2008-01-02 (Januar

Re: django-tagging with latest svn

2007-12-05 Thread erikankrom
On Dec 5, 4:54 pm, Jonathan Buchanan <[EMAIL PROTECTED]> wrote: > erikankrom wrote: > > I'm having trouble getting the latest django svn, and svn unmodified > > versions of both coltrane (http://code.google.com/p/coltrane-blog/) > > and basic blog (http://code.google.com/p/django-basic-blog/) to

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread akaihola
Derek just noticed in IRC that [6895] is still failing on flatpages. --~--~-~--~~~---~--~~ 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 unsubscr

Re: django-tagging with latest svn

2007-12-05 Thread Jonathan Buchanan
erikankrom wrote: > I'm having trouble getting the latest django svn, and svn unmodified > versions of both coltrane (http://code.google.com/p/coltrane-blog/) > and basic blog (http://code.google.com/p/django-basic-blog/) to import > correctly with django-tagging (http://code.google.com/p/django-

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
Chris, [EMAIL PROTECTED]:~/django-trunk$ svn update At revision 6897. Any ideas? Thank you, --Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

django-tagging with latest svn

2007-12-05 Thread erikankrom
I'm having trouble getting the latest django svn, and svn unmodified versions of both coltrane (http://code.google.com/p/coltrane-blog/) and basic blog (http://code.google.com/p/django-basic-blog/) to import correctly with django-tagging (http://code.google.com/p/django- tagging/). Both have depe

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Chris Moffitt
Sounds like this bug - http://code.djangoproject.com/ticket/6063 which was supposed to be fixed in [6895]. Are you sure you have the most recent checkout? -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Order By Calculated Value??

2007-12-05 Thread Tane Piper
Here is my blog application, which contains the two models: from django.db import models from django.db.models import permalink from django.core import urlresolvers from django.contrib.auth.models import User from django.template.defaultfilters import slugify import datetime # Create your models

Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Derek Payton
Hello, I was recently charged with installing a new development server at work, and I'm having some trouble getting Django to work as FastCGI under Lighttpd. The new server is setup identical to the old server, except for some hardware upgrades and we moved from Ubuntu Dapper to Ubuntu Gutsy. Li

Re: Issues trying to Caching a View

2007-12-05 Thread Jeremy Dunck
Try setting your mime type appropriately. HttpResponse(mimetype="application/x-javascript") Notice this in your view-generated-js response: Content-Type: text/html; charset=utf-8 On Dec 5, 2007 3:08 PM, Matt <[EMAIL PROTECTED]> wrote: > > Alright... still haven't figured it out. The Vary: Cookie

Re: Issues trying to Caching a View

2007-12-05 Thread Matt
Alright... still haven't figured it out. The Vary: Cookie header gets added because I am using user authentication stuff and the view depends on the user. But I still want the browser to cache the file. I was thinking of using @cache_control(private=True, max_age=37000) in order to deal with the

about nesh.thumbnails

2007-12-05 Thread Lic. José M. Rodriguez Bacallao
hi folks, I'm using the django app "nesh.thumbnails" for my thumbnails stuff and I got two problems: 1- how can I generate thumbnails for the admin interface using this app, I try this approach: def admin_thumbnail(self): if self.image: return '{%% load nesh.thumbnails %%} ' %

find a man at www.SexDatingPoint.com

2007-12-05 Thread Mr.Drum
find a man at www.SexDatingPoint.com find a man looking for a woman at www.SexDatingPoint.com meet adult male at www.SexDatingPoint.com men seeking women at www.SexDatingPoint.com women seeking men www.SexDatingPoint.com woman seeking man www.SexDatingPoint.com woman looking for man www.SexDatingP

Re: Order By Calculated Value??

2007-12-05 Thread RajeshD
> > Hope that makes sense, as if I can do it this way instead of > calculating it on the view, that would make this inclusion tag so much > easier. What does your Entry model look like? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

earn money

2007-12-05 Thread garfield084
In some pages give opportunities for earn money but all this page u have to take e-mail and read them but with cashfiesta u dont have to read e-mail so u download fiestabar program and setup it.It is little fiesta bar on your desktop when u start it u have point u can save 1500 points in one day a

Re: Problems saving values from SelectDateWidget

2007-12-05 Thread RajeshD
On Dec 5, 10:31 am, Stupid Dustbin <[EMAIL PROTECTED]> wrote: > Thanks for the reply. However, after updating to the latest SVN > version of django. The same error still occurs. :( I am using the same constructs with Django rev #6652 in production. Perhaps you want to downgrade to that revision

Re: Dynamic class definitions

2007-12-05 Thread Marty Alchin
On Dec 5, 2007 12:25 PM, DeliciousPy <[EMAIL PROTECTED]> wrote: > As for Marty's response... > >However, I haven't looked at what it > > would take to actually commit changes to the already-synced tables. I > > have a feeling Django Evolution[2] will help with this, but I haven't > > done any test

Re: View permission for models in the admin

2007-12-05 Thread James Bennett
On 12/5/07, Percy Rodriguez <[EMAIL PROTECTED]> wrote: > Say one of this users has permissions to add/modify/delete model A and > should only > have a read view on model B. Are you suggesting this user should login > into the admin > site for working with model A and login again somewhere else in

Re: View permission for models in the admin

2007-12-05 Thread Percy Rodriguez
On Dec 5, 12:26 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > You could try to adapt admin to do what you're asking, but I really think it > would be easier to write your own views. It's not so hard. Ok, I'll write my own views but where? Outside of the admin? Say one of this users has permi

Re: Help debugging Django/MySQLdb exception

2007-12-05 Thread Karen Tracey
On 12/4/07, Brian Morton <[EMAIL PROTECTED]> wrote: > > > I'm not sure what could be causing this problem. This is a loader > script that is loading a CSV and using the Django ORM to do lookups > and inserts. This is on a workstation with 1GB of memory running > Ubuntu Gutsy (the MySQL server is

Re: Issues trying to Caching a View

2007-12-05 Thread Matt
Alright... I think I might have tracked it down. I think it's an issue with "Vary: Cookie" and it appears their is a fix for making this header only show up when the request varies on the cookie. http://code.djangoproject.com/ticket/3586 Haven't confirmed this yet, but seem like the issue. Matt

Re: View permission for models in the admin

2007-12-05 Thread Karen Tracey
On 12/5/07, Percy Rodriguez <[EMAIL PROTECTED]> wrote: > > > On Dec 5, 11:42 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On 12/5/07, Percy Rodriguez <[EMAIL PROTECTED]> wrote: > > > and it doesn't include any view/read permissions. The Django admin site > > code assumes any User with "is_sta

Re: Dynamic class definitions

2007-12-05 Thread DeliciousPy
> From your description, I don't understand why your models need to be > dynamic. If each Item is defined in terms of it's Type and Fields, > then can you not change the definition on an Item by simply adding new > ItemTypes and ItemFields? If you're talking about using ItemField Classes, I could,

Re: View permission for models in the admin

2007-12-05 Thread James Bennett
On 12/5/07, Percy Rodriguez <[EMAIL PROTECTED]> wrote: > I have a few users with is_staff = True and they can't see any models > they don't > have explicit permissions for. I even tried to access other models and > I get a > "Permission denied" error. Giving any permission -- add, change or delet

Re: View permission for models in the admin

2007-12-05 Thread Percy Rodriguez
On Dec 5, 11:42 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On 12/5/07, Percy Rodriguez <[EMAIL PROTECTED]> wrote: > and it doesn't include any view/read permissions. The Django admin site > code assumes any User with "is_staff" set to True can view/read everything. > It only uses permission

Re: Django Snippets-contact form

2007-12-05 Thread mike
Gul You hit the nail right on the head...thanks a bunch. On Dec 5, 10:52 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > I doubt the problem is with base.html itself, but there might still be > a mismatch of block names. > > contact.html is expecting the following blocks to be defined in base

Re: Help debugging Django/MySQLdb exception

2007-12-05 Thread Thejaswi Puthraya
> self.errorhandler(self, exc, value) > File "/var/lib/python-support/python2.5/MySQLdb/connections.py", > line 35, in defaulterrorhandler > raise errorclass, errorvalue > _mysql_exceptions.InterfaceError: (0, '') >From what I could make out from the PEP 249[1], you seem to have a probl

Re: Django Snippets-contact form

2007-12-05 Thread Marty Alchin
I doubt the problem is with base.html itself, but there might still be a mismatch of block names. contact.html is expecting the following blocks to be defined in base.html: * fulltitle * header * extrahead * content-wrap While thankyou.html is expecting the following blocks instead: * billboar

Re: Django Snippets-contact form

2007-12-05 Thread mike
if i include something like this at the top it will load the admin media, but nothing will be below it {% extends "admin/base_site.html" %} {% block content %} {% load adminmedia %} {% endblock %} On Dec 5, 10:42 am, mike <[EMAIL PROTECTED]> wrote: > On Dec 5, 10:36 am, Jarek Zgoda <[EMAIL PROT

Re: modelling and multiple fields as primary key

2007-12-05 Thread mtrier
Override the save method in the model. Do the lookup and set the status accordingly. Am I missing something? Michael Trier blog.michaeltrier.com On Dec 5, 8:26 am, turbofart <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to model a simple application. It will consist of 2 models: > > - docume

Re: Django Snippets-contact form

2007-12-05 Thread mike
On Dec 5, 10:36 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > mike napisał(a): > > > I have been trying to implement the contact form from the Django > > Snippets page found here. > > >http://www.djangosnippets.org/snippets/261/ I'm able to make it all > > work together, but the contacts.html pag

Re: View permission for models in the admin

2007-12-05 Thread Karen Tracey
On 12/5/07, Percy Rodriguez <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > I'm quite new to Django but so far I'm making progress using and > customizing the admin interface. Last nite I realized there is no view > or read only permission on models, the closest thing I found was "Can > change pe

Re: Django Snippets-contact form

2007-12-05 Thread Jarek Zgoda
mike napisał(a): > I have been trying to implement the contact form from the Django > Snippets page found here. > > http://www.djangosnippets.org/snippets/261/ I'm able to make it all > work together, but the contacts.html page, is blank unless i remove > the{% extends "base.html" %} part.

Re: Django Snippets-contact form

2007-12-05 Thread mike
Here is the contacts.html page {% extends "base.html" %} {% block fulltitle %}Contact me!{% block title %}{% endblock %}{% endblock %} {% block header %} header of course {% endblock %} {% block extrahead %} {% endblock %} {% block content-wrap %}

Django Snippets-contact form

2007-12-05 Thread mike
I have been trying to implement the contact form from the Django Snippets page found here. http://www.djangosnippets.org/snippets/261/ I'm able to make it all work together, but the contacts.html page, is blank unless i remove the{% extends "base.html" %} part. After removing it I can see

Re: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-05 Thread Karen Tracey
On 12/5/07, AY <[EMAIL PROTECTED]> wrote: > > > Good Morning, Thanks for reply my request! Can you show me where/how > to detect the error in psycopg module and how to fix the problem. I > have completed the following steps without any problem. (1) install > Python 2.5.1 windows installer (Python 2

Re: Problem with the django tutorial

2007-12-05 Thread andy baxter
I thought I had - in fact I'm pretty sure I remember doing it, but when I looked it wasn't there, so thanks for this. It's now working OK. andy ChaosKCW wrote: > Hi > > It works for me, > > Did you add your application to the settings.py as per a previous > step ? > > On Dec 5, 3:36 pm, andy ba

Re: Problem with the django tutorial

2007-12-05 Thread ChaosKCW
Hi It works for me, Did you add your application to the settings.py as per a previous step ? On Dec 5, 3:36 pm, andy baxter <[EMAIL PROTECTED]> wrote: > Hello, > > I've been working my way through the django tutorial. I'm really > impressed with what django can do, but I've hit a problem - I'm

Re: Dynamic class definitions

2007-12-05 Thread Matt
> I want to be able to change the definition of an existing class (and > the associated parts of the DB) during runtime, from a web interface. > I'll describe the model I want to implement... > Say I have three classes: Item, Item Type, (and possibly) Item Field >From your description, I don't

View permission for models in the admin

2007-12-05 Thread Percy Rodriguez
Hi everyone, I'm quite new to Django but so far I'm making progress using and customizing the admin interface. Last nite I realized there is no view or read only permission on models, the closest thing I found was "Can change permission". Any ideas on how could I implement that in the cleanest p

Problem with the django tutorial

2007-12-05 Thread andy baxter
Hello, I've been working my way through the django tutorial. I'm really impressed with what django can do, but I've hit a problem - I'm now on the part of part 2 of the tutorial where it says to add the following lines to your mysite/polls/models.py: class Poll(models.Model): # ... cl

Re: Problems saving values from SelectDateWidget

2007-12-05 Thread Stupid Dustbin
Thanks for the reply. However, after updating to the latest SVN version of django. The same error still occurs. :( On Dec 1, 12:17 am, RajeshD <[EMAIL PROTECTED]> wrote: > On Nov 29, 4:51 am, Stupid Dustbin <[EMAIL PROTECTED]> > wrote: > > > Hi, encountered a problem recently withSelectDateWidget

Re: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-05 Thread AY
Good Morning, Thanks for reply my request! Can you show me where/how to detect the error in psycopg module and how to fix the problem. I have completed the following steps without any problem. (1) install Python 2.5.1 windows installer (Python 2.5.1.exe) (2) install TortoiseSVN-1.4.5.10425-win-svn

Re: Order By Calculated Value??

2007-12-05 Thread Tane Piper
Yes, What I wanted to do was have a field in my Category model called num_entries, and every time an Entry model was saved, I wanted to increment this by one - but I could not work out how to access the Category model to update just one field per entry (for example if my entry is in Blog and Djang

Re: Another new Django site

2007-12-05 Thread [EMAIL PROTECTED]
Sometimes the small hint is the one that makes all the difference. On Dec 4, 4:27 pm, John M <[EMAIL PROTECTED]> wrote: > Wow, thanks for the compliment, but I hardly know django at all but > did give you that one SMALL hint on your question I recall. > > Neat site, good luck with it. > > John >

Using Oracle support and Synonyms

2007-12-05 Thread ChaosKCW
Hi Just a quick one, if you wish to keep your django instance data seperate from your production data and still use all the nice nifty ORM and admin interface, you can just add synonyms to your django user, then make the following change from USER_TABLES to USER_OBJECTS in the db code and it all

Re: ORA-00911: Invalid charatcer

2007-12-05 Thread ChaosKCW
Oracle is working brilliantly now based on my tests. This is a great addition! On Nov 30, 7:36 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On 11/30/07, Da Martian <[EMAIL PROTECTED]> wrote: > > > > > Aha, so there is a fix? Its just not in 0.96.1? That was indeed going to > > be my very nex

Re: Order By Calculated Value??

2007-12-05 Thread RajeshD
Hi, > > I'm wondering if there is any way possible to get this value in my > inclusion tag? You can use the "extra" method to bring in your entry counts into the query set. See the following for an example: http://www.djangoproject.com/documentation/db-api/#extra-select-none-where-none-params-n

Re: create_object generic view exampe

2007-12-05 Thread Ryan K
Try the Django book http://www.djangobook.com/en/beta/chapter09/#s-create-update-delete-generic-views. On Dec 5, 7:56 am, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > I'm looking for an example on how to use the > django.views.generic.create_update.create_object generic view (with > new

Microsoft Developer.

2007-12-05 Thread Klaire
Microsoft Developer. http://www.freerealms.fr/microsoft Job . --~--~-~--~~~---~--~~ 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 unsubscri

Re: Initializing a selection (choice) field

2007-12-05 Thread Karen Tracey
On 12/5/07, Nader <[EMAIL PROTECTED]> wrote: > > > Hallo > > I have two applications in a project. One of the the field in one > application is a "choice" field. The content of this choice field has > to be assigned by some attribute of other application's field. With an > example it will be more c

cache middleware and middlewareorder

2007-12-05 Thread Paul Rauch
hi list, I got some Problems with the middlewareorder of cachemiddlerware, since it does not seem possible to order it the right way. >Put the CacheMiddleware before any other middleware that might add >something to the Vary header (response middleware is applied in reverse >order). The following

Re: Installing Django on VPS with 128mb ram

2007-12-05 Thread walterbyrd
On Dec 4, 8:53 pm, "Chris Moffitt" <[EMAIL PROTECTED]> wrote: > On my blog post here > -http://www.satchmoproject.com/blog/2007/sep/25/optimizing-django-vps-... > > I wrote some of my tips for configuring MySQL to use less memory. I also > have some general thoughts on vps setup for django app

**Amazing New Google Site for Today's Information**

2007-12-05 Thread supremestar
**Click this and u will surely the fun and u will get the information whatever u need today** http://indianfriendfinder.com/go/g906183-pmem http://www.freewebs.com/rajujaya/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

modelling and multiple fields as primary key

2007-12-05 Thread turbofart
Hi, I'm trying to model a simple application. It will consist of 2 models: - document client_number document_number document_date ... (some additional fields) - document_status client_number document_number document_date status_code comment ... (some additional f

Order By Calculated Value??

2007-12-05 Thread Tane Piper
Hi there, At the moment, i'm building a inclusion tag for using on my blog software to show all the categories, kind of like how Wordpress does it. The tag works fine and displays the data, sorted in order of the name: @register.inclusion_tag("blog/category_list.html") def category_list(order="

create_object generic view exampe

2007-12-05 Thread Florian Lindner
Hello, I'm looking for an example on how to use the django.views.generic.create_update.create_object generic view (with newforms). Can anyone point me to a good ressource? Thanks, Florian --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Custom template tag and filters in resolve_variable

2007-12-05 Thread Michal Ludvig
Rune Bromer wrote: > On Dec 5, 2007, at 11:59 AM, Michal Ludvig wrote: > >> Hi all, >> >> for the project I'm working on I needed to create a custom template >> tag, >> call it 'mytag'. >> >> If I use it as {% mytag something %} everything goes fine (where >> 'something' is a string passed to t

Re: Dynamic class definitions

2007-12-05 Thread Marty Alchin
You might take a look at my writeup on dynamic models,[1] which specifically covers a way to specify Django models in a database, which can be changed at run-time. However, I haven't looked at what it would take to actually commit changes to the already-synced tables. I have a feeling Django Evolu

Re: Custom template tag and filters in resolve_variable

2007-12-05 Thread Rune Bromer
On Dec 5, 2007, at 11:59 AM, Michal Ludvig wrote: > Hi all, > > for the project I'm working on I needed to create a custom template > tag, > call it 'mytag'. > > If I use it as {% mytag something %} everything goes fine (where > 'something' is a string passed to the template). > However I can't

Re: Problems loading fixtures using loaddata

2007-12-05 Thread Divan Roulant
Thanks Russell for responding. I'm sorry for replying so late. I have no longer problems with foreign keys. I can't tell what was the problem but outputing fixtures for each model (one file per model instead of one file for all models) don't get me the error anymore. However, I still have problem

WEAK HEARTED DO NOT OPEN?????????ITS ABOUT UR?????????

2007-12-05 Thread nicky
WEAK HEARTED DO NOT OPEN?ITS ABOUT UR? http://cloroo.blogspot.com/ http://closoo.blogspot.com/ http://chroos.blogspot.com/ http://dirido.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Custom template tag and filters in resolve_variable

2007-12-05 Thread Michal Ludvig
Hi all, for the project I'm working on I needed to create a custom template tag, call it 'mytag'. If I use it as {% mytag something %} everything goes fine (where 'something' is a string passed to the template). However I can't add any filters to that 'something'. As soon as I do: {% mytag somet

Initializing a selection (choice) field

2007-12-05 Thread Nader
Hallo I have two applications in a project. One of the the field in one application is a "choice" field. The content of this choice field has to be assigned by some attribute of other application's field. With an example it will be more clear to explain it. Two applications: A and B in a project