Re: Question about tutorial2

2006-12-08 Thread Jeremy Dunck
On 12/8/06, chasfs <[EMAIL PROTECTED]> wrote: > > > Eventually restarting the server fixed it, but it took a while to > > > figure out. Is this a bug? > > > > I think there must be some other issue, because Tabular/TABULAR has no > > effect on the schema or any other persistent value. > Unfortunat

Re: Question about tutorial2

2006-12-08 Thread chasfs
Jeremy Dunck wrote: > On 12/8/06, chasfs <[EMAIL PROTECTED]> wrote: > > > > I've gone through the tutorials but had a bit of a problem when I > > changed the Choice's ForeignKey incorrectly half way through Tutorial > > 2. I typed in "Tabular" rather than "TABULAR". Once I did that, I > > couldn

Re: Question about tutorial2

2006-12-08 Thread Jeremy Dunck
On 12/8/06, chasfs <[EMAIL PROTECTED]> wrote: > > I've gone through the tutorials but had a bit of a problem when I > changed the Choice's ForeignKey incorrectly half way through Tutorial > 2. I typed in "Tabular" rather than "TABULAR". Once I did that, I > couldn't get the Add Poll to work, even

Question about tutorial2

2006-12-08 Thread chasfs
I've gone through the tutorials but had a bit of a problem when I changed the Choice's ForeignKey incorrectly half way through Tutorial 2. I typed in "Tabular" rather than "TABULAR". Once I did that, I couldn't get the Add Poll to work, even though I corrected the typo. Eventually restarting the

Re: Multiple models on one form

2006-12-08 Thread Russell Keith-Magee
On 12/9/06, Brian Morton <[EMAIL PROTECTED]> wrote: > > I am trying to write a custom form that will handle updates for several > models. What is the best way to do this? Do I have to write a custom > manipulator to handle the data? Or can I create a hybrid view of > several different default m

Re: TemplateDoesNotExist, in spite of "File Found" message

2006-12-08 Thread Jeremy Dunck
And the permissions? On 12/8/06, Dave Lowe <[EMAIL PROTECTED]> wrote: > > Update: I changed the order of the template loaders, so that fs loader > is after the app loader... Same result. Here's the error as proof: --~--~-~--~~~---~--~~ You received this message b

Cannot resolve keyword 'caption' into field

2006-12-08 Thread Rob Slotboom
I get this error in admin when saving a new article. Can someone please help me? Complete model... from django.db import models from django.core import validators class Article(models.Model): pub_date = models.DateTimeField('date published') published = models.BooleanField() headlin

Multiple models on one form

2006-12-08 Thread Brian Morton
I am trying to write a custom form that will handle updates for several models. What is the best way to do this? Do I have to write a custom manipulator to handle the data? Or can I create a hybrid view of several different default manipulators? --~--~-~--~~~---~

Re: TemplateDoesNotExist, in spite of "File Found" message

2006-12-08 Thread Dave Lowe
Update: I changed the order of the template loaders, so that fs loader is after the app loader... Same result. Here's the error as proof: Using loader django.template.loaders.app_directories.load_template_source: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django

Re: Django and mod_python issues

2006-12-08 Thread Jeremy Dunck
On 12/8/06, brandon <[EMAIL PROTECTED]> wrote: > > Hi I'm using the same setup. However I'm pretty new to python and > django. Which django version/revision are you using? > I have C:\Program Files\xampp\htdocs as my default directory > > Where should I place django? Somewhere on the python pat

Re: Odd behavior using __range lookup

2006-12-08 Thread Adam Fast
Thanks Chris, I've looked at it a little, but we're wanting something with more capabilities than I've seen in satchmo. I'm still trying to figure this thing out. I changed my urls entry to (r'^shopbyrange/(?P[-\w]+)/(?P\d+)-(?P\d+)/$', 'djangoecomm.products.views.searchbyattributerange'), to

Re: Django and mod_python issues

2006-12-08 Thread brandon
Hi I'm using the same setup. However I'm pretty new to python and django. I have C:\Program Files\xampp\htdocs as my default directory Where should I place django? I placed it in C:\Program Files\xampp\htdocs\python\ but can't get the 'import django' working properly... sadly i have to use win

Re: Deafult and hidden poll

2006-12-08 Thread RajeshD
> It is not working. When I try to add something by panel it sais that I > have to fix some errors, and those error is fact that, those 3 > field(ocena s_ocen l_ocen) that are not displayed in panel are empty. > Default=0 isn't working - and my question is why? You need editable=False instead of

Re: How would I add a custom widget in the admin for a ManyToMany relationship?

2006-12-08 Thread Adrian Holovaty
On 12/8/06, naitsirhc <[EMAIL PROTECTED]> wrote: > I'm kind of surprised that I didn't find > mention of the 'raw_id_admin' in my previous searches - is it > relatively new? Nope, it's not new -- raw_id_admin has been around since before Django was open-sourced. Adrian -- Adrian Holovaty holov

Re: How would I add a custom widget in the admin for a ManyToMany relationship?

2006-12-08 Thread naitsirhc
Thank you very much for your help. I should be able to modify this to suit my needs perfectly. I'm kind of surprised that I didn't find mention of the 'raw_id_admin' in my previous searches - is it relatively new? I see that it has been involved in some active development in the Django source c

Re: TemplateDoesNotExist, in spite of "File Found" message

2006-12-08 Thread Dave Lowe
Yeah, my view on the sym link is along the lines of "over my dead body." I'll have to look into the apache user/group and possibility of an extra slash somewhere. The line of code for the template is: return render_to_response('home.html', {'main_feature': main_feature, 'recent_headlines': rece

Deafult and hidden poll

2006-12-08 Thread [EMAIL PROTECTED]
Hi, I have some strange problem with django. I have modules.py something like this: class Link(models.Model): nazwa = models.CharField(maxlength=50, verbose_name="Tytul Linka") [...] ocena = models.IntegerField(verbose_name="Ocena", editable="False", default=0) s_ocen = models.Int

Re: TemplateDoesNotExist, in spite of "File Found" message

2006-12-08 Thread Jeremy Dunck
On 12/8/06, Dave Lowe <[EMAIL PROTECTED]> wrote: ... > Anyone know how to fix this without placing a symbolic link to the > template inside the admin templates folder? Gosh, don't do that. :) The admin error is incidental, it just happens to be the last place it looked (since the app loader is

Re: TemplateDoesNotExist, in spite of "File Found" message

2006-12-08 Thread Dave Lowe
TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', ) TEMPLATE_DIRS = ( "/Users/dave/Sites/myproject/templates" ) --~--~

Re: TemplateDoesNotExist, in spite of "File Found" message

2006-12-08 Thread Jeremy Dunck
On 12/8/06, Dave Lowe <[EMAIL PROTECTED]> wrote: > > I'm working on configuring Apache2 + mod_python to serve up my Django > project and finally got to the point where it's recognizing it. But now > I'm running into an issue where it says it can't find the template but > in the error message it st

TemplateDoesNotExist, in spite of "File Found" message

2006-12-08 Thread Dave Lowe
I'm working on configuring Apache2 + mod_python to serve up my Django project and finally got to the point where it's recognizing it. But now I'm running into an issue where it says it can't find the template but in the error message it states otherwise. Here's the relevant portion: Django tried

Re: Timeouts during uploading

2006-12-08 Thread Jeremy Dunck
On 12/8/06, Pythoni <[EMAIL PROTECTED]> wrote: > > Jeremy, > Thank you for the reply. > Yes, FTP could be a solution. Are there any more solutions? Depending on your needs, WebDAV, DropSend, YouSendIt, Creo Tokens, BitTorrent, AllPeers, jungledisk and similar might work. If you're dealing with

Re: Auto generate url patterns

2006-12-08 Thread Waylan Limberg
On 12/8/06, leanmeandonothingmachine <[EMAIL PROTECTED]> wrote: > > I did want to use flatpages but can't for the 2 reasons in my orginal > post, unless I'm wrong about those limitations, in which case flatpages > would be perfect. > > I understand about urls being a collection of patterns, but I

Re: Timeouts during uploading

2006-12-08 Thread Pythoni
Jeremy, Thank you for the reply. Yes, FTP could be a solution. Are there any more solutions? Lad. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Auto generate url patterns

2006-12-08 Thread leanmeandonothingmachine
I did want to use flatpages but can't for the 2 reasons in my orginal post, unless I'm wrong about those limitations, in which case flatpages would be perfect. I understand about urls being a collection of patterns, but I don't see how I can make a pattern that fits when I won't have a set parent

Re: Auto generate url patterns

2006-12-08 Thread Adrian Holovaty
On 12/8/06, leanmeandonothingmachine <[EMAIL PROTECTED]> wrote: > The client is going to provide a list of arbitary urls that they wants > ei: about/, about/history/, contact/, services/, etc... and they need > to be able to add or remove urls using the admin interface, no changing > the url.py fi

Admin Interface Collapse ForeignKey Fields

2006-12-08 Thread Hull, Dave
Django newbie here... I've got a model that has several ForeignKey fields that are all set to edit_inline=True. In the model that has the class Admin: pass code, I'm using fields = ((None, {'classes': 'collapse', '...')}),) in order to be able to Hide/Show s

Re: Auto generate url patterns

2006-12-08 Thread leanmeandonothingmachine
I'll try to be a little clearer with what I need. The client is going to provide a list of arbitary urls that they wants ei: about/, about/history/, contact/, services/, etc... and they need to be able to add or remove urls using the admin interface, no changing the url.py file. So there will be

Re: Timeouts during uploading

2006-12-08 Thread Jeremy Dunck
On 12/8/06, Pythoni <[EMAIL PROTECTED]> wrote: > > I would like to allow users to upload large files about 10MB or larger. > Is there a way how to eliminate timeouts both server and client > timeouts? Not to be snarky, but have you considered FTP or other means? 10MB uploads over HTTP may not wo

404 on date based archives

2006-12-08 Thread DvD
Hi everyone, I keep on getting a weird problem on my project. I use date based generic views to retrieve events for a web site, when I use archive_index and archive month no problems, but when i use archive_day or detail_object I keep on getting a 404. I searched over the mailing list to find

Re: Where to start with the upcoming newforms module?

2006-12-08 Thread Adrian Holovaty
On 12/8/06, Ramdas S <[EMAIL PROTECTED]> wrote: > I am trying Django forms. I just updated to the new svn revision 4186. > > But when I try > > >>> from django import newforms > Traceback (most recent call last): > > File "", line 1, in ? > ImportError: cannot import name newforms I suspect you

Re: Help with creating queryset

2006-12-08 Thread Stephen Mizell
That's awesome! Worked perfectly and is so much easier to manage. Thanks for the quick help, I really appreciate it. On Dec 8, 9:28 am, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > What is the best way to create a queryset for this without doing tons > > of if statements, like: > > > if reque

Re: Where to start with the upcoming newforms module?

2006-12-08 Thread yi huang
This may help you to read the unit tests ;-) Most editor just treat doctest as string. On 12/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > I came across the new 'newforms' page in Django documentation pages. > I am rather happy to get detail

Re: Where to start with the upcoming newforms module?

2006-12-08 Thread Ramdas S
I am trying Django forms. I just updated to the new svn revision 4186. But when I try >>> from django import newforms Traceback (most recent call last): File "", line 1, in ? ImportError: cannot import name newforms What do I need to do? RS On 12/8/06, Adrian Holovaty <[EMAIL PROTECTED]

Re: object(s) vs. values()

2006-12-08 Thread Wolfram Kriesing
>> I realize very often, that I have to decide between using the object >> (s) i.e. >> Pic.objects.get(id=1) >> or the dict that values() returns me, see >> Pic.objects.get(id=1).values() >> >> I have to decide either/or because sometimes I have some additional >> data, >> I want to add

Re: Odd behavior using __range lookup

2006-12-08 Thread Chris Moffitt
> I'm building an e-commerce system and at the moment working on making the > products easily searchable. But when I use a __range lookup, in some > cases I'm sorry I can't help you with your request but I thought I'd point out that there is a project called Satchmo that aims to build an ecommer

Re: Help with creating queryset

2006-12-08 Thread Wolfram Kriesing
> What is the best way to create a queryset for this without doing tons > of if statements, like: > > if request.GET['first_id'] > if request.GET['second_id'] > if request.GET['third_id'] > queryset = > Resource.objects.filter(first__id__exact=request.GET['first_id'], > sec

Re: object(s) vs. values()

2006-12-08 Thread bruno
> > I realize very often, that I have to decide between using the object > (s) i.e. > Pic.objects.get(id=1) > or the dict that values() returns me, see > Pic.objects.get(id=1).values() > > I have to decide either/or because sometimes I have some additional > data, > I want to add to the

Help with creating queryset

2006-12-08 Thread Stephen Mizell
I'm rather new to Django but am getting pretty competent doing most of the basic things. This is not so much a problem, more so trying to find the best way to do something. We are creating a website for searching our resources here in the office. We have an advanced search that allows us to sea

object(s) vs. values()

2006-12-08 Thread Wolfram Kriesing
I realize very often, that I have to decide between using the object (s) i.e. Pic.objects.get(id=1) or the dict that values() returns me, see Pic.objects.get(id=1).values() I have to decide either/or because sometimes I have some additional data, I want to add to the dict, before pas

Odd behavior using __range lookup

2006-12-08 Thread Adam Fast
Hi all, I'm building an e-commerce system and at the moment working on making the products easily searchable. But when I use a __range lookup, in some cases it returns a 404 as if there is no data that matches that criteria, and there is data that matches that criteria. Using the "Logging" middl

Re: Looking to hire

2006-12-08 Thread Jay Parlar
On 12/8/06, Jim Fritchman <[EMAIL PROTECTED]> wrote: > > Hi, all. > > Wagdogs is looking to hire one or more developers to work on Django. > We are a new startup located in the suburbs of Philadelphia, > Pennsylvania and we have so much interest in our company that we need > to get our product to

Looking to hire

2006-12-08 Thread Jim Fritchman
Hi, all. Wagdogs is looking to hire one or more developers to work on Django. We are a new startup located in the suburbs of Philadelphia, Pennsylvania and we have so much interest in our company that we need to get our product to market as soon as possible. We are looking for individuals that h

Re: Where to start with the upcoming newforms module?

2006-12-08 Thread Adrian Holovaty
On 12/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I came across the new 'newforms' page in Django documentation pages. > I am rather happy to get details about the replacement plan, but it is > definitely lacking information about 'what' it will really replace, and in > what > way. > > S

Where to start with the upcoming newforms module?

2006-12-08 Thread django-user
Hi, I came across the new 'newforms' page in Django documentation pages. I am rather happy to get details about the replacement plan, but it is definitely lacking information about 'what' it will really replace, and in what way. So here I am with a few questions: 1) is this module fully operatio

Re: How would I add a custom widget in the admin for a ManyToMany relationship?

2006-12-08 Thread Paul Childs
There is a lot of information in this group about solving this problem. Look at raw_id_admin http://groups.google.com/group/django-users/search?group=django-users&q=raw_id_admin&qt_g=1&searchnow=Search+this+group --~--~-~--~~~---~--~~ You received this message

Re: High Load

2006-12-08 Thread Graham King
Cheng, I use Linode and Gentoo as well ! I'm using Apache and MySQL, with memcached. I've spent a lot of time optimizing my setup, so I'm happy to help. The two most important things for me were: - Reduce database usage. Put some code in django.db.backends.postgresql to print out all

Re: Optimizing Templates

2006-12-08 Thread Jeremy Dunck
On 12/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The problem is most of the templates have something that adjusts > per-user Perhaps I wasn't clear. Unless you're changing the contents of the template files themselves at runtime, the actual contents of the response to the user is tot

Re: Optimizing Templates

2006-12-08 Thread [EMAIL PROTECTED]
On Dec 7, 4:50 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > we have a build script to perform those variables sostitution that you have in the template so that whatever we can fill in at build time the template doesn't need to figure it out at runtime. We h

django - IndicIME and XMLHttpRequest

2006-12-08 Thread Kenneth Gonsalves
hi, i have been trying to get indicIME to work with django - it needs some processing of XMLHttpRequest. I have no clue where to begin. Can anyone suggest how it is to be done. The IndicIME source code is here: http://indicime.mozdev.org/source.html -- regards kg http://lawgon.livejournal

Re: High Load

2006-12-08 Thread Cheng Zhang
在 2006-12-4,下午6:34,graham_king 写道: > What web server are you using in development ? I suspect this > might be > a lighttpd / fastcgi problem. Have you tried Apache / mod_python ? > > Just as a reference I'm managing 90,000+ hits a day on one Apache > on a > UML virtual server, with the loa

Re: DJANGO_SETTINGS_MODULE undefined error

2006-12-08 Thread Baurzhan Ismagulov
On Fri, Dec 08, 2006 at 08:43:42AM -, theju wrote: > Your tip worked, but how do we export variables in Windows (just > curious) If you have bash, just in the same way :) . If not, you can set it in the cmd process you call manage.py from ("set VAR=val"), or system-wide from Control Panel ->

Re: Auto generate url patterns

2006-12-08 Thread Russell Keith-Magee
On 12/8/06, leanmeandonothingmachine <[EMAIL PROTECTED]> wrote: > > Noob question: I've just started getting into django, and wanted to get > opinions on auto generating url patterns from a db. Is that bad > practice, will it slow down the site? Depends on exactly what you are planning, and how e

Re: ORM and case study

2006-12-08 Thread Russell Keith-Magee
On 12/8/06, coulix <[EMAIL PROTECTED]> wrote: > > If create tables without django model classes i guess i wont be able to > use ORM on it right ? Yes, you can still the ORM. Obviously, using Django to create the tables will be the easiest approach, but if you manually (or otherwise external to Dj

Re: DJANGO_SETTINGS_MODULE undefined error

2006-12-08 Thread theju
Thank You Baurzhan, Your tip worked, but how do we export variables in Windows (just curious) -Thejaswi On Dec 7, 8:15 pm, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > Hello Thejaswi, > > On Thu, Dec 07, 2006 at 09:59:28AM -, theju wrote: > > whenever i use the following command (in a pyth

Django and Litespeed?

2006-12-08 Thread todd271828
Has anyone tried running a Django application under Litespeed web server? I've had some luck doing so with fastcgi through flup, but only in threaded mode. Trying to run in prefork mode just gives me 503s. I've asked a similar question on the Litespeed forums, and haven't had any solid response

Timeouts during uploading

2006-12-08 Thread Pythoni
I would like to allow users to upload large files about 10MB or larger. Is there a way how to eliminate timeouts both server and client timeouts? Thank you Lad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang