Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Steve Potter
On Sep 25, 8:27 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 26, 3:59 am, Steve Potter <[EMAIL PROTECTED]> wrote: > > > > > > This sort of odd error can sometimes come up if you have chosen names > > > for directories/modules which clash with standard Python module names. > > > >

Re: Two newform best practice questions

2007-09-25 Thread John M
I use the form_for_instance(instance, form=) and this works great for me, however I found a bug (which is documented), that doesn't actually populate the data, so if you're not getting the POST data, and you just want to display the current instance, you'll need to do a theform =

Re: Two newform best practice questions

2007-09-25 Thread Cat
Thanks Chris I will try your suggestions and see how I go. On Sep 25, 7:04 pm, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > 1) What is best practice to populate a custom form with instance data? > > Use form = Form(data_dict) and you're done. This also triggers > validation, so it might not be

how to avoid ReferentialIntegrity error

2007-09-25 Thread Kenneth Gonsalves
hi, I have a view which extracts words from another table and saves them into the words table. My code is like this: w = Word(word=wd,written=False, language=lng) w.save() since 'word' is unique, to avoid a referential integrity error I do: tst =

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Graham Dumpleton
On Sep 26, 3:59 am, Steve Potter <[EMAIL PROTECTED]> wrote: > > This sort of odd error can sometimes come up if you have chosen names > > for directories/modules which clash with standard Python module names. > > > Where you have in your WSGI script file for mod_wsgi something like: > > >

Re: guid's in python

2007-09-25 Thread kernel1983
base32 base64? On Sep 26, 4:10 am, Alex Koshelev <[EMAIL PROTECTED]> wrote: > http://www.djangosnippets.org/snippets/335/ > > On 25 сент, 00:52, Leo Shklovskii <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I'm trying to represent an Active Directory's user guid in Django. In > > AD, its a 128

Quick Windows reinstallation

2007-09-25 Thread sledopyt
Hello, windows became unstable and slow, can anyone tell me how to reinstall windows quickly and without losing any data? I read somewhere that it's possible to install windows in the unattended mode. How's that? What's needed for that? --~--~-~--~~~---~--~~ You

Quick Windows reinstallation

2007-09-25 Thread sledopyt
Hello, windows became unstable and slow, can anyone tell me how to reinstall windows quickly and without losing any data? I read somewhere that it's possible to install windows in the unattended mode. How's that? What's needed for that? --~--~-~--~~~---~--~~ You

Re: Add field in models django 0.96

2007-09-25 Thread Joe
The easiest way to to this is look at the create table SQL generated by the manager. python manage.py --settings=my_settings sql my_app Then, run the appropriate query once you know the datatype created when you added the column. For example, in postgres: ALTER TABLE myapp_mymodel ADD COLUMN

Re: What's the best way to handle big sets of data?

2007-09-25 Thread Tim Chase
> I'm developing a Django project that's going to handle with > big sets of data and want you to advise me. I have 10 internal > bureaus and each of then has a 1.5 million registers database > and it really looks to keep growwing on size on and on. I > intend to use Postgres. > > The question:

Re: What's the best way to handle big sets of data?

2007-09-25 Thread Richard Dahl
Denormalization can help with that, as can splitting the models up by bureau, although that kind of makes me feel a little dirty. I would consider, (obviously not knowing the details of your requirements), but I would consider building one app and running multiple instances of it as needs

Re: What's the best way to handle big sets of data?

2007-09-25 Thread Bruno Tikami
Hi Richard, I'm more concerned with the query response time... thanks for your fast reply = ) On 9/25/07, Richard Dahl <[EMAIL PROTECTED]> wrote: > > Bruno, > It is difficult to advise based on the information provided. Not sure > exactly what you are concerned with, postgres database size?

Re: What's the best way to handle big sets of data?

2007-09-25 Thread Richard Dahl
Bruno, It is difficult to advise based on the information provided. Not sure exactly what you are concerned with, postgres database size? query response time? network transfer time? All of the above? Each of these impacts can be dealt with differently. Perhaps if you provided some detail on

What's the best way to handle big sets of data?

2007-09-25 Thread Bruno Tikami
Hi fellows, I'm developing a Django project that's going to handle with big sets of data and want you to advise me. I have 10 internal bureaus and each of then has a 1.5 million registers database and it really looks to keep growwing on size on and on. I intend to use Postgres. The question:

Re: guid's in python

2007-09-25 Thread Alex Koshelev
http://www.djangosnippets.org/snippets/335/ On 25 сент, 00:52, Leo Shklovskii <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to represent an Active Directory's user guid in Django. In > AD, its a 128 bit integer that I can pull out with using the ldap > library. When I access the guid, python

Re: GoFlow: a workflow engine for django, available now as a django contrib

2007-09-25 Thread Michael Radziej
On Mon, Sep 24, MiloZ wrote: > > You can here dowload the workflow engine contrib; a demo django > project is included > http://django-goflow-en.blogspot.com/ Oops, French-- It would be very nice to have an English description, at least a short description. I can read a tiny bit of French,

Re: Add field in models django 0.96

2007-09-25 Thread Richard Dahl
Xan, as far as the sql code, it depends on what backend db you are using. Perhaps I am behind the times, but what differences are there in the 0.96models to the latest svn trunk? I am currently developing an app that I began pre - 96 and do not recall having to modify the models as I updated, I

Add field in models django 0.96

2007-09-25 Thread Xan
Hi, I use django 0.96. I have a simple model and I just want to add one field to my existing model. How can I do that? I think that I can't do that without SQL code. But unfortunely I don't know it. Anyone could give me a example of SQL code for adding one field to one model? If I only have

Re: guid's in python

2007-09-25 Thread Leo Shklovskii
Thanks Tim! That's a cool way of looking at it. I don't actually need to pass the uuid to a browser via JSON, I just need to store the uuid as a member field of an object in my db and be able to provide a fixture with it. What I've ended up doing is importing the uuid library (which can be

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Steve Potter
> > This sort of odd error can sometimes come up if you have chosen names > for directories/modules which clash with standard Python module names. > > Where you have in your WSGI script file for mod_wsgi something like: > > sys.path.append('/usr/local/django') >

How to use SplitDateTimeWidget (getting TypeError)

2007-09-25 Thread Kyle Fox
I'm trying to use a SplitDateTimeWidget for a forms.DateTimeField field, but keep getting TypeError: "expected string or buffer" The traceback leads to `strptime.py`, which has `found = format_regex.match(data_string) `. The local variables are: data_string = [u'2007-09-29',

Re: guid's in python

2007-09-25 Thread Tim Chase
>> I've been able to dig into this a little bit more and it >> looks like django.utils.simplejson.decoder doesn't support >> the '\x' escape character. Is this an intentional omission, >> a bug in Django, or just me misunderstanding Python? > > JSON does not support the '\x' escape; see json.org

Re: url config problem

2007-09-25 Thread qwerty
"I have set up django with mod_python on apache successfully" What do you mind by set up django inside Apache? You mean that mod_python read and works ok with your Python files, or that a Django project you've made is already working in that Apache server. In any case, I'll look for what

Re: url config problem

2007-09-25 Thread [EMAIL PROTECTED]
Swati, Whatever location apache is using for handling django won't be given to django's root url config. I can post more about this tonight. Lucy http://www.ThoughtAndMemory.org On Sep 25, 12:21 pm, swati <[EMAIL PROTECTED]> wrote: > Hi All, > > I am very much new in django. I am facing some

Re: django book out date

2007-09-25 Thread James Bennett
On 9/25/07, Jalil <[EMAIL PROTECTED]> wrote: > Anyone know when the django book is comming out ? I though it was suppose > to come out last month. > I am going outside the country and I would like to get my hands on this book > before leaving. The only people who would have reliable information

url config problem

2007-09-25 Thread swati
Hi All, I am very much new in django. I am facing some problem when editing the urls.py. I have tried modifying the url pattern to run a simple application to display current date and time. When I test the application through the django development server, its giving me expected result, but when

Re: documentation - missing menus on the right side

2007-09-25 Thread Kenneth Gonsalves
On 25-Sep-07, at 8:29 PM, Kenneth Gonsalves wrote: > are the menus on the right side in the documentation missing, or is > it just something wrong with my browser? become ok now -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

Re: Union/join of two queryset?

2007-09-25 Thread AndyB
That's AND and OR to those of us who never had to learn set theory ;-) On Sep 24, 9:49 pm, jake elliott <[EMAIL PROTECTED]> wrote: > hi francesco > > cesco wrote: > > I have two QuerySets and I need to join them to pass them as first > > parameter to the ObjectPaginator class. > > How can I do

ThoughtAndMemory.org competition for django programmers (win a video iPod)

2007-09-25 Thread [EMAIL PROTECTED]
Yo, What is ThoughtAndMemory.org? It's a system for contributing and retrieving information on how companies effect the world, as well as a system for empowering shoppers with this information so that they can make informed purchases, thereby holding companies accountable for their actions. We

django book out date

2007-09-25 Thread Jalil
Anyone know when the django book is comming out ? I though it was suppose to come out last month. I am going outside the country and I would like to get my hands on this book before leaving. Thanks --~--~-~--~~~---~--~~ You received this message because you are

documentation - missing menus on the right side

2007-09-25 Thread Kenneth Gonsalves
hi are the menus on the right side in the documentation missing, or is it just something wrong with my browser? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because you are

Re: Add/change detail pages will throw an exception, newforms-admin, svn version 6407

2007-09-25 Thread Rob J Goedman
Super, in today's version (r6424) of newforms-admin the 2nd issue has also been resolved! From the ticket trail I'm not sure if this is the final resolution, but it sure works again. Thanks for all the hard work, Rob On Sep 22, 2007, at 11:01 AM, Rob J Goedman wrote: > Hi Russ, > >

foreign key drop downs - again

2007-09-25 Thread paulh
Use of the django default forms routines form_for_model, form_for_instance on a model that has a foreign key that references a table with a large number (thousands) of rows results in two problems. One, you get an appreciable (5 seconds on a local network using postgres and apache) delay while

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread yml
Hello Steve, Sometimes ago when I first try to use mod_wsgi I have written a wiki page there: * http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi It is a step by step procedure that I have followed to configure mod_wsgi. It might help you to get your application up and running

Re: new app to manage comments

2007-09-25 Thread Benoit Chesneau
On Sep 25, 2:39 pm, "Benoit Chesneau" <[EMAIL PROTECTED]> wrote: > Hi all, > > I just opensourced comments today for all, let me know what do you > think about it and how to improved it. It's under ISC License. > > Comments is a django application used on Friendsnippets >

new app to manage comments

2007-09-25 Thread Benoit Chesneau
Hi all, I just opensourced comments today for all, let me know what do you think about it and how to improved it. It's under ISC License. Comments is a django application used on Friendsnippets (http://www.friendsnippets.com) to let members to add their comments to snippets. It works with

Re: guid's in python

2007-09-25 Thread James Bennett
On 9/24/07, Leo Shklovskii <[EMAIL PROTECTED]> wrote: > I've been able to dig into this a little bit more and it looks like > django.utils.simplejson.decoder doesn't support the '\x' escape > character. Is this an intentional omission, a bug in Django, or just me > misunderstanding Python? JSON

django templates , markdown, textile, reST which to use ?

2007-09-25 Thread kan
Hello, Here is my scenario. I am using django to hold all dynamic portions of our website. For example, .list of members, projects etc. I would like to use svn to allow users to commit to various portions of their website. Right now it is setup that you can commit xhtml files and all associated

Re: View didn't return an HttpResponse object?

2007-09-25 Thread Ryan K
Ok thank you! I've taken care of the superfluous code and thought it was something silly I was missing. Thanks! On Sep 25, 11:25 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > if not request.GET.get('avatarkey',''): > > raise Http404 > > elif

Singapore Real Estate - Buy , Sell , Rent ,invest Singapore Property

2007-09-25 Thread Spytips
Singapore Real Estate - Buy , Sell , Rent ,invest Singapore Property Buy, sell and rent Singapore real estate: private property, residential apartments, commercial and industrial properties. HDB flats for sale and rental. Foreign investors, buyers, tenants or relocating expats can easily find

Re: Data truncated for column 'text' at row 1

2007-09-25 Thread Andrey Khavryuchenko
SD> Data truncated for column 'text' at row 1 [...] SD> The POSTing works 'cause when I return to the site I can see the post. SD> I guess this has something to do with unicode or something, but I SD> don't really know where to look. SD> Any hint is really appreciated! This means

Re: dictionary access in templates

2007-09-25 Thread AndyB
Django templates use the dot syntax for several purposes: object attributes, dictionary lookups, list indexes and method calls. Have a look here: http://www.djangoproject.com/documentation/templates/#variables (note that you can't pass parameters to method calls so only methods calls that don't

Re: View didn't return an HttpResponse object?

2007-09-25 Thread Tim Chase
> if not request.GET.get('avatarkey',''): > raise Http404 > elif len(request.GET['avatarkey']) != 36: > raise Http404 Just as a side-note, these two are a bit redundant. I'd suggest either if 'avatarkey' not in request.GET or

Re: View didn't return an HttpResponse object?

2007-09-25 Thread Chris Hoeppner
return render_to_response (...) El mar, 25-09-2007 a las 10:14 +, Ryan K escribi�: > > from django.http import HttpResponse, Http404 > from django.template import RequestContext > from django.shortcuts import render_to_response > > def verify_sl(request): > if request.method == 'GET':

View didn't return an HttpResponse object?

2007-09-25 Thread Ryan K
from django.http import HttpResponse, Http404 from django.template import RequestContext from django.shortcuts import render_to_response def verify_sl(request): if request.method == 'GET': if not request.GET.get('avatarkey',''): raise Http404 elif

Re: Using a Single Sign-on Server with Django

2007-09-25 Thread Andrey Khavryuchenko
NAA> Does anyone know of a single sign-on server that can be used with NAA> Django? Similar to the approach taken by Cosign NAA> or Pubcookie but without the fluff that is NAA> LDAP and Kerberos. Just a simple database of users and passwords to

strange UnicodeDecodeError after update to latest trunk

2007-09-25 Thread frank h.
Hello all ever since updating to latest trunk (past merge of unicode-branch), I get spurious UnicodeDecodeErrors sometimes accessing my views. I have posted about this problem earlier in the wrong group, django- developers:

Re: Two newform best practice questions

2007-09-25 Thread Chris Hoeppner
> 1) What is best practice to populate a custom form with instance data? Use form = Form(data_dict) and you're done. This also triggers validation, so it might not be exactly what you want. Though, it's the only way I know of. > 2) What is the recommended way to create a single custom form that

Save Your Liver.................

2007-09-25 Thread Juicy Hilton
Fatty Liver May Result From Eating Quick-Burning Carbs *Diets rich in rapidly-digested carbohydrates

Re: How would I construct this query using Django?

2007-09-25 Thread Jonathan Buchanan
On 9/25/07, Michael <[EMAIL PROTECTED]> wrote: > > Using SQLite I can pull out the data I want using a query along the > line of: > > select * from event where date(event_date) in > ( > select date(event_date) from event > group by 1 order by 1 desc > limit 5 > ); > > Now, the problem is >

hacking,anti-hacking,registry tweaks,compter tricks

2007-09-25 Thread e.expelliarmus
check this out buddies. kool website for: * hacking and anti hacking tricks * anti hackng tricks. * registry tweaks * orkut tricks * small virus * computer tricks and loads of different tricks... www.realm-of-tricks.blogspot.com www.registrydecoded.blogspot.com

Re: got an unexpected keyword argument 'max_digits'

2007-09-25 Thread Sebastian Dahlgren
What Django version are you using? Is that the SVN version? On Sep 25, 8:46 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i have a model with : > > score = models.DecimalField(max_digits=4, decimal_places=2, > blank=True, null=True) > > when i issue: python manage.py

got an unexpected keyword argument 'max_digits'

2007-09-25 Thread [EMAIL PROTECTED]
i have a model with : score = models.DecimalField(max_digits=4, decimal_places=2, blank=True, null=True) when i issue: python manage.py syncdb in command line, got this error: D:\djangopro\mysite>python manage.py syncdb Error: One or more models did not validate:

Some New User Questions & Suggestions

2007-09-25 Thread staff-gmail
somehow my earlier post got stuck into another thread. As a new user, here are some suggestions & questions: Startup: It is important to note in the documentation that with some distros (ie ubuntu) you need: $ django-admin.py startproject myproject then to create an application: $ cd

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Graham Dumpleton
On Sep 25, 3:26 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > On Sep 24, 6:16 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > > Are you sure that the user Apache is running as has permissions > > > to read directories/files under the missed user's home dir?. > > > The permissions